How to reference individual cells in Excel to variable data from records in an external SQL table
Posted
by
user273476
on Super User
See other posts from Super User
or by user273476
Published on 2013-11-12T15:13:22Z
Indexed on
2013/11/12
15:54 UTC
Read the original article
Hit count: 234
microsoft-excel
|odbc
I have a SQL table containing date oriented financial data eg. multiple daily records with fields for Date, Account code and Value. I want to set up dynamic links (formulas) from cells in an Excel speadsheet to this data so when the spreadsheet is loaded the data is fetched from all the relevant records. The spreadsheet has the Account codes on the x axis and Dates on the y. Each day the SQL table has new data in it for the new day and I want the spreadsheet to reference this new data for the column for the new day.
Any ideas? I have seen how you can generally bring in data from a SQL table (in our case using ODBC as it is not MS SQL) but the data is not simply bringing in multiple records as you would a CVS file but specific records in the SQL table referencing to specific cells and columns in the spreadsheet.
© Super User or respective owner