shakethingsup
Board Regular
 Joined
 May 21, 2017
 Messages
 50
 Office Version

 2013
 Platform

 Windows
1. is there an issue with this formula when using it on different worksheets? and why?
2. open to alternative formulas for the task at hand
The objective is to be able to sum cumulatively based on a user selection of the month of the year.
I have a worksheet with 2 tabs. One is called 'Summary' and the other is called 'Data'. The Data tab has columns for 12 months, multiple rows with similar mapping codes. See below for a small sample.
In the 'Summary' tab, the user will select a month, and it will show the cumulative summarized results by each mapping code.
Example:
1. user selects April. Medication will sum to ($36,635.43).
2. user selects June. Medication will sum to $43,774.54 which is the sum of all values.
When I put this formula in the 'Data' tab where all my raw data is it worked:
But I want this formula in the 'Summary' tab in Cell F5 and instead I get a #Value! error. It's the exact same formula.
Thank you!
2. open to alternative formulas for the task at hand
The objective is to be able to sum cumulatively based on a user selection of the month of the year.
I have a worksheet with 2 tabs. One is called 'Summary' and the other is called 'Data'. The Data tab has columns for 12 months, multiple rows with similar mapping codes. See below for a small sample.
In the 'Summary' tab, the user will select a month, and it will show the cumulative summarized results by each mapping code.
Example:
1. user selects April. Medication will sum to ($36,635.43).
2. user selects June. Medication will sum to $43,774.54 which is the sum of all values.
When I put this formula in the 'Data' tab where all my raw data is it worked:
=SUMPRODUCT((Data!B5:B7=Summary!E5)*Data!$C$5:INDIRECT(SUBSTITUTE(ADDRESS(1,MATCH(Summary!$A$1,Data!$C$1:$N$1,0)+2,4),"1","7"))) 
But I want this formula in the 'Summary' tab in Cell F5 and instead I get a #Value! error. It's the exact same formula.
Thank you!