mambonumber5
New Member
- Joined
- Sep 17, 2015
- Messages
- 11
EDIT: I tried changing SUMPRODUCT to just SUM and that works. How do I make SUMPRODUCT work to get the output I need?
Hi all,
I've got a long SUMPRODUCT formula to search through a big database and sum the range of cells that match all criteria. I've checked all individual components of my formula and they do seem to work; yet, when I put them together in one SUMPRODUCT(--(),--()) statement, I get a #Value error. Could this be because I've reached some Excel limitation for calculating this many arrays together; or is it a problem with my formula that I can't seem to find? Is there a way to simplify this formula?
The formula is:
{=ROUNDUP(SUMPRODUCT(--(Inputs.Setup!$B$3:$B$27458=INDEX(Budget!$C$4:$HM$4,,MATCH(YEAR(D45)&MONTH(D45),Budget!$C$2:$HM$2&Budget!$C$3:$HM$3,0))),--ISNUMBER(MATCH(Inputs.Setup!$D$3:$D$27458,VALUE(TRIM(MID(SUBSTITUTE(E45,",",REPT(" ",99)),(ROW(OFFSET($A$1,,,LEN(E45)-LEN(SUBSTITUTE(E45,",",""))+1))-1)*99+((ROW(OFFSET($A$1,,,LEN(E45)-LEN(SUBSTITUTE(E45,",",""))+1)))=1),99))),0)),--(LEFT(Inputs.Setup!$H$3:$H$27458,1)="P"),--(Inputs.Setup!$J$3:$J$27458={"remote","direct"}),--(Inputs.Setup!$K$3:$K$27458="yes"),Inputs.Setup!$N$3:$N$27458*Workshop_attrition^RIGHT(Inputs.Setup!$H$3:$H$27458,1)*Mentoring_attrition^RIGHT(Inputs.Setup!$H$3:$H$27458,1)),0)}
Any clue? Thanks!
Hi all,
I've got a long SUMPRODUCT formula to search through a big database and sum the range of cells that match all criteria. I've checked all individual components of my formula and they do seem to work; yet, when I put them together in one SUMPRODUCT(--(),--()) statement, I get a #Value error. Could this be because I've reached some Excel limitation for calculating this many arrays together; or is it a problem with my formula that I can't seem to find? Is there a way to simplify this formula?
The formula is:
{=ROUNDUP(SUMPRODUCT(--(Inputs.Setup!$B$3:$B$27458=INDEX(Budget!$C$4:$HM$4,,MATCH(YEAR(D45)&MONTH(D45),Budget!$C$2:$HM$2&Budget!$C$3:$HM$3,0))),--ISNUMBER(MATCH(Inputs.Setup!$D$3:$D$27458,VALUE(TRIM(MID(SUBSTITUTE(E45,",",REPT(" ",99)),(ROW(OFFSET($A$1,,,LEN(E45)-LEN(SUBSTITUTE(E45,",",""))+1))-1)*99+((ROW(OFFSET($A$1,,,LEN(E45)-LEN(SUBSTITUTE(E45,",",""))+1)))=1),99))),0)),--(LEFT(Inputs.Setup!$H$3:$H$27458,1)="P"),--(Inputs.Setup!$J$3:$J$27458={"remote","direct"}),--(Inputs.Setup!$K$3:$K$27458="yes"),Inputs.Setup!$N$3:$N$27458*Workshop_attrition^RIGHT(Inputs.Setup!$H$3:$H$27458,1)*Mentoring_attrition^RIGHT(Inputs.Setup!$H$3:$H$27458,1)),0)}
Any clue? Thanks!
Last edited: