Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
sumproduct question | Excel Worksheet Functions | |||
SumProduct Question | Excel Discussion (Misc queries) | |||
Sumproduct question | Excel Worksheet Functions | |||
Sumproduct Question | Excel Worksheet Functions | |||
sumproduct question | Excel Worksheet Functions |