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.

Excel Import creates blank records

Featured Replies

I've a frequent requirement to import an Excel spreadsheet containing name and address information into an FMP9 database. The import works entirely successfully, but usually creates one or more blank records with no data in them which were not apparently in the original data.

After some head-scratching, I discovered that Filemaker seems to use the 'last cell' information on the worksheet to determine how many rows are actually in the dataset. Depending on the way the user has set up the file (e.g. used the original template, cleared a previous file and reused that, entered the data by hand or from cutting and pasting) depends on where the 'last cell' is on the spreadsheet. Getting the 'last cell' to be the last column and last row in your dataset can be quite fun.

Is there any way of getting Filemaker to ignore the empty rows, or else to limit the number of records imported in the import dialog? Otherwise it looks like I will have to run a post-import script to remove the blank records.

I'm hoping for a meaningful answer as well, as I've encountered this many times. I usually copy/paste the data range into a new worksheet before importing.

You can make it skip records by Validation. Example attached.

MyFile.zip

  • Author

Really neat solution! :)

I'll put that into the database now.

Thanks

Brian

  • 5 years later...

5 years on... and thanks from me! For years I've been writing import scripts with extra steps to find and delete the empty rows. Do I feel stupid.

 

Funny how you ignore parts of Filemaker that you don't realise you need!

 

THANK YOU!

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.