Hi all,
I've got the following formula combining an index match with a sumif, but it's returning the wrong result. The goal is to sum all the values that equal what is in C8 that match column A on the Niagara Summary page, and then sum the values based on the index match criteria below.
The index match formula is working correctly in that it will return the first value when the sumif portion is removed, so i'm guessing the error lies within the sumif syntax.
Any ideas? Thanks so much for all your help.
Best,
Ernie
=IFERROR(SUMIF('[2019 Forecast - April v2.xlsx]Niagara Summary (CAD)'!$A:$A,$C8,INDEX('[2019 Forecast - April v2.xlsx]Niagara Summary (CAD)'!$C:$GZ,MATCH($C8,'[2019 Forecast - April v2.xlsx]Niagara Summary (CAD)'!$A:$A,0),MATCH(D$3&D$4,'[2019 Forecast - April v2.xlsx]Niagara Summary (CAD)'!$C$4:$GZ$4&'[2019 Forecast - April v2.xlsx]Niagara Summary (CAD)'!$C$5:$GZ$5,0))),0)
I've got the following formula combining an index match with a sumif, but it's returning the wrong result. The goal is to sum all the values that equal what is in C8 that match column A on the Niagara Summary page, and then sum the values based on the index match criteria below.
The index match formula is working correctly in that it will return the first value when the sumif portion is removed, so i'm guessing the error lies within the sumif syntax.
Any ideas? Thanks so much for all your help.
Best,
Ernie
=IFERROR(SUMIF('[2019 Forecast - April v2.xlsx]Niagara Summary (CAD)'!$A:$A,$C8,INDEX('[2019 Forecast - April v2.xlsx]Niagara Summary (CAD)'!$C:$GZ,MATCH($C8,'[2019 Forecast - April v2.xlsx]Niagara Summary (CAD)'!$A:$A,0),MATCH(D$3&D$4,'[2019 Forecast - April v2.xlsx]Niagara Summary (CAD)'!$C$4:$GZ$4&'[2019 Forecast - April v2.xlsx]Niagara Summary (CAD)'!$C$5:$GZ$5,0))),0)