Home > Software design >  SUMPRODUCT multiple criteria columns & rows but ignore blanks
SUMPRODUCT multiple criteria columns & rows but ignore blanks

Time:10-11

This formula results with #VALUE! error as some columns and/or rows are blank. Is there a way to get a result while keep blanks in the data sheet?

=SUMPRODUCT(Data!$E$2:$JN$200*(Data!$A$2:$A$200=$B8)*(Data!$E$1:$JN$1=M$3))

CodePudding user response:

Sample - working soln

Per screenshot - I have plenty of blanks yet your equation is working perfectly...

HOWEVER, if I place text in the sumproduct range (viz: E2:JN200) then I get an error which I can circumvent as follows:

=SUMPRODUCT(IFERROR(Data!$E$2:$JN$200*(Data!$A$2:$A$200=$B8)*(Data!$E$1:$JN$1=M$3),0))

Screenshot 2 - formula for cell C19...

  • Related