Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Need help importing from Excel document

Featured Replies

I have data in an excel document that was exported from a different database that I would like to import into FM 8.5. The problem is, that the data in excel is not contained in one row or column, but rather, each record is spread out over several rows and columns. I'm having a hard time getting the data to import properly.

I can't figure out how to attach an example of the Excel file I'm talking about, but you can download it here http://files.me.com/djeans/9x426t

That is only a small example, the whole document is 28 pages long.

Any suggestions?

Thanks

D.

Edited by Guest

You could import this into a temp file, find and delete rows that do not carry actual data, then script creating one record (in another table) for each pair or imported rows.

  • Author

Not sure I completely understand what you mean. Can you dumb it down a little for me? (I'm somewhat of a Newbie.)

Thanks.

D

Which specific part is not clear?

  • Author

the import into a temp file and deleting rows is a little confusing.

d

Just open the Excel file in Filemaker - this will create a new file. Then find records that are empty or serve as headers only and delete them. I think this will become clear once you see the imported data.

NOTE:

I am assuming this is a one-time conversion, not something you need to do regularly. Otherwise you'd want to script the find-and-delete part too. But I wouldn't presume to advise on that on the basis of sample data.

  • Author

Ok,

I'll give it a try. It is something that I will need to do fairly regularly, so I'll probably try to figure out how to script it eventually.

Thanks

  • Author

Ok,

I opened the file in Filemaker, and see what you mean about deleting empty rows. What's not clear is how to automate combining data. For instance, if I delete all the garbage rows until the first row with data, the barcode number and description are in row one, but all of the other information that i need is in row (record)2. When I import this into my main database, I'll want all of that data from those two records/rows importing into one record in the main database.

D

Once you have only valid data rows, you can run a script that does roughly:

Go to Record [First ]

Loop

Set Variable [ $barcode ; ]

Set Variable [ $description ; ]

Go to Record [Next ]

Set Variable [ $whatever ; ]

...

Go to Layout [ another table ]

New Record

Set Field [ Barcode ; $barcode ]

Set Field [ Description ; $description ]

...

Go to Layout [ original layout ]

Go to Record [Next, Exit after last ]

End Loop

  • Author

Thanks!!

I'm going to give that a try right now.

d

  • Author

Worked like a charm!!

Thanks.

D

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.