Others

How to Split an Imported Excel Table into Related Microsoft Access Tables

Phi Hung VoPhi Hung Vo Nov 25, 2026 871 views

Question details

Split an imported Excel table of names and addresses into related Microsoft Access tables.

How to Split an Imported Excel Table into Related Microsoft Access Tables
Product
Microsoft Access
Device & OS
not provided
Scenario
An Excel spreadsheet contains contact, address, and city information that should be organized into separate tables.
Observed behavior
Contacts, addresses, and cities are stored in separate tables linked by primary and foreign keys, with multiple contacts able to share an address.
Before you start

Check the imported columns for consistent address and city values, including state or country where needed to distinguish locations. Identify a stable source key for each contact; first and last names alone may not uniquely identify a person.

Solution 1Recommended

Create Related Tables and Populate Them with Append Queries

Use a staging table and append queries to normalize the spreadsheet while preserving the relationships between contacts, addresses, and cities.

This design assumes each contact has one current address, but an address can have many contacts. If contacts need multiple addresses, use a separate junction table to link them.

Use consistent values and enough location fields to distinguish cities and addresses before joining records. Avoid spaces in field names to make queries easier to maintain.

1
Import the spreadsheet

In Access, choose External Data > New Data Source > From File > Excel, select the workbook, and import the relevant sheet into a new staging table. Confirm that the column headings and data types are correct.

2
Create the destination tables

Use Create > Table Design to create Cities, Addresses, and Contacts. Give each table an AutoNumber primary key. Add CityID as a Number field with Field Size set to Long Integer in Addresses, and AddressID with the same type in Contacts. Add the relevant city, address, and contact fields, including a stable source contact key.

3
Append distinct cities

Choose Create > Query Design and add the staging table. Include the fields that identify a city, such as City, State, and Country. Use Totals to group the distinct combinations, change the query to Append, select Cities, map the fields, and click Run.

4
Append distinct addresses

Create a query that joins the staging table to Cities on the city-identifying fields. Include Cities.CityID and the fields needed to identify an address, such as HouseNumber and Street. Group the combinations, change the query to Append, select Addresses, map the fields, and click Run.

5
Append contacts

Create a query that joins the staging table to Cities and then to Addresses using the corresponding location and address fields. Include Addresses.AddressID, the stable source contact key, and the contact fields. Change the query to Append, select Contacts, map the fields, and click Run. Review unmatched or ambiguous records before correcting and appending them.

6
Define and check relationships

Open Database Tools > Relationships and add the three tables. Link Cities.CityID to Addresses.CityID and Addresses.AddressID to Contacts.AddressID, selecting Enforce Referential Integrity for each relationship. Open the tables and check that shared addresses and contact counts are correct.

Create Related Tables and Populate Them with Append Queries
Handle duplicates carefully: Do not group contacts by first and last name alone. If no stable contact key exists, review possible duplicates before assigning identifiers. Missing or inconsistent join values can also leave records unmatched.
Free Microsoft Office alternative

Review Your Excel Source Data in WPS Spreadsheet

WPS Office is a free, lightweight Office alternative with a familiar interface for reviewing and cleaning spreadsheet data before importing it into Access. Its Excel format compatibility makes it easy to move existing workbooks into your workflow.

Review names, addresses, and city fields before importing a workbook into AccessOpen and edit Microsoft Excel XLSX and XLS filesUse a familiar spreadsheet interface for an easier transitionWork with a free, lightweight Office suite
microsoft office alternative - wps office

Frequently Asked Questions

Can several contacts share the same address in Access?

Yes. Put AddressID in Contacts as a foreign key, then use Database Tools > Relationships to link it to the primary key in Addresses. Several contact records can reference the same address.

Why shouldn't I use first and last names as a contact key?

Different people can have the same name, and names can change. Retain a stable source contact key where possible and review possible duplicates before creating contact records.

How do I keep cities with the same name separate?

Include additional identifying fields, such as State and Country, when grouping cities in the append query and joining the staging table to Cities.

What if a contact can have more than one address?

Create a junction table containing ContactID and AddressID instead of storing a single AddressID in Contacts. Use Database Tools > Relationships to link the junction table to both parent tables.

Why are some imported rows missing from my append query?

A join may not find a match when city or address values are missing or inconsistent. Review the staging and destination values in Query Design, correct the mismatches, and append the remaining records.