Nursing Informatics Book
To chapter 16
Nursing Informatics Home Page

Importing Excel Files into Access

  1. Open Excel and prepare the file in a database format.
    1. In this format the top row will be the row headings, or field names.
    2. Either clear off any cells that you do not wish to import or copy the ones that you do to another worksheet.
    3. Save the file.
    4. Remember the name of the worksheet and the file and its location.
  2. Open Access
  3. Either create a new database, or open an existing one, depending on where you wish to place the Excel file.
  4. On the menu click on File > Get External Data > Import
  5. On the bottom of the Import window drop down the window next to "Files of type:" and select Microsoft Excel.
  6. If the name of the file you wish to import is not visible in the import window, browse to the folder where it is located.
  7. Click on it to select it.
  8. Click on import in the lower right corner of the screen.
  9. Select the worksheet from the pop up window. (Or if you have named a range click on that on the top and select it.)
  10. Click next.
  11. If you get a message that the first row contains some data that can't be used for valid field names click OK to let the wizard assign valid field names. (You can clean this up later.)
  12. If the box "First Row Contains Headings" is not checked, check it. (Assuming of course that this is so. If not, Access will name the fields, Field 1, Field 2, etc.)
  13. Click Next.
  14. Select "In a new table" and click next.
  15. To change the name of a field while importing
    1. Select the field whose name you wish to change by clicking anywhere in that column,
    2. Type a new name in the selected box on the pop-up window.
    3. Continue until all field names are named as you desire.
    4. Click Next.
  16. Make a choice about the primary key as per the window and click Next
  17. Enter the name you wish for this table and click Finish.
  18. You will receive a message that Access has finished importing the file. Click OK. (If the Excel file was not set up properly, and you get an error message, open up Excel and prepare the file as in Step 1.)
  19. If there were blank lines in the Excel file you may wish to delete these "records."

    Last Updated: June 18, 2004

For questions or broken links please email the author .

To top of page

Copyright 2003/2008 Linda Q. Thede
All rights reserved