Quote:
Originally Posted by it-iss.com
Have you tried creating a formula which will generate the INSERT statement for you? This is what I usually do. For example:
="INSERT INTO table(field1, field2, field3) VALUES ('" & a2 & "','" & b2 & "', '" & c2 & "');"
You then copy this field down each row and this generates all your INSERT statements. You simply copy and paste each of these into a text file and you are ready to run this to apply the data into your database.
|
Everyone - thanks for the prompt replies. In terms of where I would like my data to live, really I need to have it in (in the proper format) in Excel and SQL since some of my tools will pull from SQL and some need Excel.
Ronan - this is a perfect workaround. Top notch! I just tweaked it a bit to fit the data structure I have:
="INSERT INTO table(field1, field2, field3) VALUES ('" & $C90 & "','" & D$88 & "', '" & D90 & "');"
Since my data has the date in the first column, and the actual data (by region) across multiple columns; this allows me to make a "Region" field and fill it with the data in D88, E88, etc...
Since I am new to SQL I wasn't sure if there was something I could do with setting the data up in seperate tables and then doing joins etc...