With either equation, Kevin or Fotis, is there a compact/efficient way of making an IF function so that if the sumproduct is equal to zero, then make the cell blank, otherwise sumproduct. Below is the function:
=if((SUMPRODUCT((MONTH(E4:E1000)=MONTH(M11))*(YEAR(E4:E1000)=M$3)*(F4:F1000))+SUMPRODUCT((MONTH(A4:A1000)=MONTH(M11))*(YEAR(A4:A1000)=M$3)*(B4:B1000))+SUMPRODUCT((MONTH(I4:I1000)=MONTH(M11))*(YEAR(I4:I1000)=M$3)*(J4:J1000)))=0,"",SUMPRODUCT((MONTH(E4:E1000)=MONTH(M11))*(YEAR(E4:E1000)=M$3)*(F4:F1000))+SUMPRODUCT((MONTH(A4:A1000)=MONTH(M11))*(YEAR(A4:A1000)=M$3)*(B4:B1000))+SUMPRODUCT((MONTH(I4:I1000)=MONTH(M11))*(YEAR(I4:I1000)=M$3)*(J4:J1000)))
The redundancy is found in the sumproduct for the if statement and then for the false statement. Any help on making this more compact and efficient would be greatly appreciated. Please advise. Thank you
Bookmarks