Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 93
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default 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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reference an Operator from a cell with Sumproduct deeds Excel Worksheet Functions 4 April 25th 08 04:06 PM
sumproduct - cell reference eugene Excel Worksheet Functions 4 February 28th 08 01:13 PM
Using a cell reference within a cell reference in a formula david Excel Worksheet Functions 2 July 1st 06 01:05 PM
SUMPRODUCT Criteria Via Cell Reference?? John V Excel Worksheet Functions 8 April 12th 06 07:55 PM
How can I use a cell reference in Sumproduct array formula? Chrism Excel Discussion (Misc queries) 1 April 7th 05 05:05 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"