Sum Named Range Based on Date Range

shellp

Board Regular
Joined
Jul 7, 2010
Messages
199
Office Version
  1. 2010
  2. 2007
Platform
  1. Windows
Hello

I have a scorecard where there is a data tab and the scorecard tab. For the data I have period (month) column A, days in period (B), Beds (C), numerator (D), denominator (E), calculated value (rate of C/D) and target (G). The numerator, denominator and value all have dynamic named ranges (Period, Occ_N, Occ_D, Occ_val).

On the scorecard worksheet I have the months showing from E to P formatted to MMM. I successfully have the value per month showing using a formula i.e. for April in column E = Index(Occ_val,match(E3,period,false)).

So what I would like is to dynamically create the year to date totals for the 6 months of data in the current file. How do I determine there are 6 months of valid data on the scorecard and then extract from the named range numerator and denominator the same 6 periods of data to sum and come up with YTD. I would like to avoid creating another worksheet to calculate year end/ytd.

One other note is that the data will be many years i.e. this template just needs to have the user change the E to P rows of months to a new year to use so I can't just rely on referring to APR because there could be more than one APR.

Thank you for any assistance you can provide.
 

Attachments

  • Scorecard.jpg
    Scorecard.jpg
    49.3 KB · Views: 30
  • Data_sheet.jpg
    Data_sheet.jpg
    40.3 KB · Views: 26

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

Forum statistics

Threads
1,223,234
Messages
6,170,891
Members
452,366
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top