Excel and SQL Server

R

Rob

I need to populate a column in Excel from SQL Server based on data in an
existing Excel column. For example if I have a spreadsheet with employee ID’s
in a column I need to go to SQL Server and populate the employee names
associated with the Employee ID’s into an adjoining column.

I have found plenty of articles on populating a spreadsheet from SQL Server
but nothing on how to use an existing column as part of the join. I
appreciate any help I can get.
 
F

FSt1

hi
you need to declare your excel column a named range then use the excel file
as a data source in your guery joining the excel table with the SQL table
where emp # = emp #.
i've done this when the excel table was in and external file but not with
the table being in the current file but in theory, it should work.

Regards
FSt1
 

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