Can I put a cell reference in a sumproduct formula

  • Thread starter Thread starter soconfused
  • Start date Start date
S

soconfused

I have the following formula and I would like to automate it a bit more. I
want to be able to have the month automatically pick up from another cell.

SUMPRODUCT(--(YEAR($L$5:$L$102)=2009),--(MONTH($L$5:$L$102)=2),$B$5:$B$102)
 
Like:

=SUMPRODUCT(--(YEAR($L$5:$L$102)=2009),--(MONTH($L$5:$L$102)=MONTH(Z100)),$B$5:$B$102)
 
=SUMPRODUCT(--(YEAR($L$5:$L$102)=2009),--(MONTH($L$5:$L$102)=A2),$B$5:$B$102)
if your 2 for the month is in A2.
 
Back
Top