View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson Dave Peterson is offline
external usenet poster
 
Posts: 35,218
Default SUMIF Two Conditions

=sumproduct(--($b$5:$b$59<date(2008,9,30)),--($d$5:$d$59=c65),$F5:$f$59)

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

mjones wrote:

Hi All,

This doesn't work:

=IF($B$5:$B$59<39721,SUMIF($D$5:$D$59,C65,$F$5:$F$ 59)) - entered as
Ctrl-Shft-Enter

I'm trying to get a total amount in column F if the date in column B
is less than 39721 (30-Sep-08), and column D matches C65.

Then I need the same thing, but with the date within a range, e.g. $B
$5:$B$5939721<39813 ...

I hope someone can help.

Thank you,

Michele


--

Dave Peterson