MadaSchmidt
New Member
- Joined
- Aug 21, 2015
- Messages
- 5
Long story short I have 153 identically formatted .xlsx files which multiple people enter data into. I am creating a 'master report' workbook that needs to pull that data and combine the totals from those sheets.
I'm using excel 2010 on a windows 7 enterprise machine.
The source workbooks have two sheets each, one named matching part of the filename (filenames are 'ABCD 1234.xlsx' and the sheet matches the 1234 of the filename) and one named 'REPORT'.
The source sheets ('REPORT') are laid out as follows:
Three header rows
Column A contains dates from 15 Jan 2015 to 31 Dec 2016 (A4:A720) formatted as DD/MM/YYYY
Column B has weekdays as "MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN" matching the dates (B4:B720)
Columns C:Q and AP:AS have formulas counting data in a second sheet in each workbook based on various criteria. Data is displayed with 'General' format as whole numbers.
Columns R:AO have manually entered whole numbers (number of minutes)
What I need to accomplish on my master report is the following:
Automatically add up the values found in the columns of the 153 'REPORT' worksheets corresponding to their dates.
i.e. for 15/01/2015 add up values of 'REPORT'!$C$4 of book1, book2, book3, book4...book153 and display next to 15/01/2015 in 'MasterReport'!$D$2 (for example) and do the same for 'REPORT'!D:AS.
The master report has a similar layout as the individual reports, but is not identical.
It would be ideal if the module were linked to a button on the master report sheet to trigger the function rather than automatically running it every time the report is opened as it may need to be viewed without updating every time.
I have tried to do this with formulas, but it seems that excel or my laptop do not have sufficient resources to calculate all those formulas, (not to mention typing 153 file location references into a single formula isn't possible as it exceeds Excel's character limit of 8192) so I'm hoping there is a reasonably simple solution using VBA.
I was using =SUMPRODUCT() functions and that seemed to work, but with 153 different source sheets to draw from it just wasn't practical.
The source workbook filenames are 'ABCD 1234.xlsx' where ABCD is the same for all of them, but 1234 is different and they are all stored in the same folder. The master report file is also stored in the same directory.
Any help here would be much appreciated as I've already lost a week trying to figure this out with formulas...
Thanks in advance
I'm using excel 2010 on a windows 7 enterprise machine.
The source workbooks have two sheets each, one named matching part of the filename (filenames are 'ABCD 1234.xlsx' and the sheet matches the 1234 of the filename) and one named 'REPORT'.
The source sheets ('REPORT') are laid out as follows:
Three header rows
Column A contains dates from 15 Jan 2015 to 31 Dec 2016 (A4:A720) formatted as DD/MM/YYYY
Column B has weekdays as "MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN" matching the dates (B4:B720)
Columns C:Q and AP:AS have formulas counting data in a second sheet in each workbook based on various criteria. Data is displayed with 'General' format as whole numbers.
Columns R:AO have manually entered whole numbers (number of minutes)
What I need to accomplish on my master report is the following:
Automatically add up the values found in the columns of the 153 'REPORT' worksheets corresponding to their dates.
i.e. for 15/01/2015 add up values of 'REPORT'!$C$4 of book1, book2, book3, book4...book153 and display next to 15/01/2015 in 'MasterReport'!$D$2 (for example) and do the same for 'REPORT'!D:AS.
The master report has a similar layout as the individual reports, but is not identical.
It would be ideal if the module were linked to a button on the master report sheet to trigger the function rather than automatically running it every time the report is opened as it may need to be viewed without updating every time.
I have tried to do this with formulas, but it seems that excel or my laptop do not have sufficient resources to calculate all those formulas, (not to mention typing 153 file location references into a single formula isn't possible as it exceeds Excel's character limit of 8192) so I'm hoping there is a reasonably simple solution using VBA.
I was using =SUMPRODUCT() functions and that seemed to work, but with 153 different source sheets to draw from it just wasn't practical.
The source workbook filenames are 'ABCD 1234.xlsx' where ABCD is the same for all of them, but 1234 is different and they are all stored in the same folder. The master report file is also stored in the same directory.
Any help here would be much appreciated as I've already lost a week trying to figure this out with formulas...
Thanks in advance