Converting Excel to Access from Spreadsheet format

J

Jeffstahl

I need to link to an excel file, but I need to normalize the spreadsheet data
that contains columns of data that needs to be converted to relational
records. I think I said that right.

Excel file:
Name1 Name2 Name3
File A X X
File B X

Convert to;
File A Name1
File A Name3
File B Name2

Any ideas?
 
K

Ken Snell [MVP]

Use a UNION query to present the data that way.

SELECT T.Field1, T.Name1
FROM TableName AS T
UNION ALL
SELECT U.Field1, U.Name2
FROM TableName AS U
UNION ALL
SELECT V.Field1, V.Name3
FROM TableName AS V;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top