Hello all, happy holidays!
I am trying to write a formula or VBA script that will allow me to sum data in a cell across multiple worksheets but be able to set the range of the worksheets. We have a daily summary with metrics broken out on separate sheets for each day. I am trying to automate pulling the weekly data into another file to give as a recap. The sheets are saved as the date (12.11.2024 etc). I am summing data from the same cell for the entire week. '
Doing this manually the formula would be =SUM('[DailyTracker.xlsx]12.8.2024:12.14.2024'!$B$11). What I am trying to do is have two cells where I can define that date range, so I don't have to update the formula each week. I'm going to be doing this with multiple cells so having a single reference point to change that replicates out to the 10 or so metrics I'm trying to pull would save so much time. I've tried doing a combination of SUM and INDIRECT while concatenating the dates, but I can't figure out how to get it to reference another file with those ranges.
I am trying to write a formula or VBA script that will allow me to sum data in a cell across multiple worksheets but be able to set the range of the worksheets. We have a daily summary with metrics broken out on separate sheets for each day. I am trying to automate pulling the weekly data into another file to give as a recap. The sheets are saved as the date (12.11.2024 etc). I am summing data from the same cell for the entire week. '
Doing this manually the formula would be =SUM('[DailyTracker.xlsx]12.8.2024:12.14.2024'!$B$11). What I am trying to do is have two cells where I can define that date range, so I don't have to update the formula each week. I'm going to be doing this with multiple cells so having a single reference point to change that replicates out to the 10 or so metrics I'm trying to pull would save so much time. I've tried doing a combination of SUM and INDIRECT while concatenating the dates, but I can't figure out how to get it to reference another file with those ranges.