- Aug 28, 2001
- 52,844
- 1,049
- 126
say I have the following data in an XLS
name | date JOINED company
________________________
carl | 5/6/10
dan | 6/4/10
earl | 8/15/10
and someone wants me to add a column (data found in a SQL database) that shows all that contain a 'date LEFT company', but obviously not all have left. So in the XLS, I will populate for only those users listed above and some will not have data in the new column.
The most important thing is to populate this XLS with the new column somehow automatically, matching the users found in a SQL pull for date left company. Is there a way in Excel to say "put [this new column of data] that match the names you find in column A"? I find myself needing to update existing XLS' frequently with new data they want added as a new column.
Right now the only thing I can think of is to throw the entire XLS data into a temp table and update the table with the SQL pull results (I use coldfusion to query then update), then copy the whole temp table of results into an XLS again. The problem with this is some XLS have over 10 columns and many rows and I'm not about to throw all that into a temp table (creating numerous inserts and with various data types) just to add a new single column. Is that the only way?
name | date JOINED company
________________________
carl | 5/6/10
dan | 6/4/10
earl | 8/15/10
and someone wants me to add a column (data found in a SQL database) that shows all that contain a 'date LEFT company', but obviously not all have left. So in the XLS, I will populate for only those users listed above and some will not have data in the new column.
The most important thing is to populate this XLS with the new column somehow automatically, matching the users found in a SQL pull for date left company. Is there a way in Excel to say "put [this new column of data] that match the names you find in column A"? I find myself needing to update existing XLS' frequently with new data they want added as a new column.
Right now the only thing I can think of is to throw the entire XLS data into a temp table and update the table with the SQL pull results (I use coldfusion to query then update), then copy the whole temp table of results into an XLS again. The problem with this is some XLS have over 10 columns and many rows and I'm not about to throw all that into a temp table (creating numerous inserts and with various data types) just to add a new single column. Is that the only way?
Last edited:
