I have a table that is imported from an ever-changing Excel spreadsheet that I need to convert to a usable table structure. The imported table specifies the quantity of dynamic items (columns) to include for each system (rows). The 2 leftmost columns identify the system and are static, the rest of the imported column names (table fields) and quantities change regularly. Actual data is either a number or a blank, i.e. there are no zeroes in the Excel file.
Here’s what I want to accomplish:
1. Import the latest Excel spreadsheet to a temporary table.
2. Iterate through each field in a particular record of the temporary table and, if there is a number in that field, append a new record into a table with structure System identifier 1, System identifier 2, (the 2 leftmost columns in the Excel file and the 1st two fields in the temp table), the current field NAME, and the value in that field.
Does that make sense? Does anyone know how to do that?
Thanks for any hints.
Kathi