I have a series of spreadsheets all set up using the same layout but with different data in each.
What I need to do is loop through each spreadsheet and take values from certain cells and copy these to a new spreadsheet which will hold all the data.
For each spreadsheet I will always need cells C1 C3 and E4 and these should form the first 3 columns of each row of data I extract.
Then I need to use a lookup table held in another spreadsheet that has 2 columns a date and a column reference to identify the column reference to grab my next piece of data from. The initial date to look up will the next fridays date after todays date. Eg if running it today I would want to look up the column reference associated with 11th march 2011. I then need to take the value from this column (and the date from the lookup) and add this to my row.
So I will end up with each row containing the values of C1 C3 and E4, a date and the value of the appropriate cell for the column.
The next row will have the same data but will have moved on a week and this will continue until the end of the lookup table.
Once all rows have been created these need to be written to a spreadsheet that will combine all the data.
So potentially I could have 89 rows x 52 columns of data for each spreadsheet. Luckily I will only have about 10 spreadsheets to loop through so shouldn't get anywhere near the max no of rows.
To be honest I have never attempted anything of this magnitude in Excel and am a bit of a loss of where to start.
Can anyone help ?
Nick
What I need to do is loop through each spreadsheet and take values from certain cells and copy these to a new spreadsheet which will hold all the data.
For each spreadsheet I will always need cells C1 C3 and E4 and these should form the first 3 columns of each row of data I extract.
Then I need to use a lookup table held in another spreadsheet that has 2 columns a date and a column reference to identify the column reference to grab my next piece of data from. The initial date to look up will the next fridays date after todays date. Eg if running it today I would want to look up the column reference associated with 11th march 2011. I then need to take the value from this column (and the date from the lookup) and add this to my row.
So I will end up with each row containing the values of C1 C3 and E4, a date and the value of the appropriate cell for the column.
The next row will have the same data but will have moved on a week and this will continue until the end of the lookup table.
Once all rows have been created these need to be written to a spreadsheet that will combine all the data.
So potentially I could have 89 rows x 52 columns of data for each spreadsheet. Luckily I will only have about 10 spreadsheets to loop through so shouldn't get anywhere near the max no of rows.
To be honest I have never attempted anything of this magnitude in Excel and am a bit of a loss of where to start.
Can anyone help ?
Nick