Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default SUMPRODUCT question

I have in my running log:

=SUMPRODUCT((YEAR(Run!A$3:A$1008)=(ROW()+2001))*Ru n!C$3:C$1008)

which works just fine.
This seems to be a waste of sumproduct, so I tried replacing the * with a ,

=SUMPRODUCT((YEAR(Run!A$3:A$1008)=(ROW()+2001)),Ru n!C$3:C$1008)

This yields 0. When I debug, I see that there are a series of nonzero
values for each entry, but the sumproduct is still 0.


Using CTRL+SHIFT+ENTER doesn't help.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default SUMPRODUCT question

Try:
=SUMPRODUCT(--(YEAR(Run!A$3:A$1008)=(ROW()+2001)),Run!C$3:C$1008 )

Adjust the ranges to match--but you can't use whole columns (except in xl2007).

=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail he
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html

jzingman wrote:

I have in my running log:

=SUMPRODUCT((YEAR(Run!A$3:A$1008)=(ROW()+2001))*Ru n!C$3:C$1008)

which works just fine.
This seems to be a waste of sumproduct, so I tried replacing the * with a ,

=SUMPRODUCT((YEAR(Run!A$3:A$1008)=(ROW()+2001)),Ru n!C$3:C$1008)

This yields 0. When I debug, I see that there are a series of nonzero
values for each entry, but the sumproduct is still 0.

Using CTRL+SHIFT+ENTER doesn't help.


--

Dave Peterson
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
sumproduct question SteveDB1 Excel Worksheet Functions 1 September 21st 07 11:36 PM
SumProduct Question mldancing Excel Discussion (Misc queries) 15 April 6th 07 03:52 AM
Sumproduct question Barb Reinhardt Excel Worksheet Functions 3 November 17th 06 06:53 PM
Sumproduct Question carl Excel Worksheet Functions 1 March 21st 06 11:58 PM
sumproduct question taxmom Excel Worksheet Functions 3 April 18th 05 07:01 PM


All times are GMT +1. The time now is 01:48 PM.

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

About Us

"It's about Microsoft Excel"