ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Can I put a cell reference in a sumproduct formula (https://www.excelbanter.com/excel-worksheet-functions/224914-can-i-put-cell-reference-sumproduct-formula.html)

soconfused

Can I put a cell reference in a sumproduct formula
 
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)
--
DMM

Gary''s Student

Can I put a cell reference in a sumproduct formula
 
Like:

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

--
Gary''s Student - gsnu200840


"soconfused" wrote:

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)
--
DMM


David Biddulph[_2_]

Can I put a cell reference in a sumproduct formula
 
=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.
--
David Biddulph

"soconfused" wrote in message
...
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)
--
DMM





All times are GMT +1. The time now is 08:05 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com