Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 86
Default SUMIF Two Conditions

Hi All,

This isn't working.

=IF(AND($B$5:$B$5939721,$B$5:$B$59<39813),SUMIF($ D$5:$D$59,$C69,$F
$5:$F$59))

entered with Ctrl-Shft-Enter.

I'm trying to the a total amount in the range F5 to F59 if the date in
B5 to B59 (corresponding the number in F5 to F59 is between 39721 and
39813 and the text in D5 to D59 matches C69.

Any help would be appreciated.

Thanks,

Michele
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 258
Default SUMIF Two Conditions

Try this:

=SUMPRODUCT(--(B5:B59=39721),--(B5:B59<=39813),--(D5:D59=C69),F5:F59)

Basically, the first terms (with the "--") return a '1' if true and '0' if
false, so you end up adding the sum only if all the other terms are true.

If you have Excel 2007, there is a "=SUMIFS" function that can do much the
same thing.

hth
"mjones" wrote:

Hi All,

This isn't working.

=IF(AND($B$5:$B$5939721,$B$5:$B$59<39813),SUMIF($ D$5:$D$59,$C69,$F
$5:$F$59))

entered with Ctrl-Shft-Enter.

I'm trying to the a total amount in the range F5 to F59 if the date in
B5 to B59 (corresponding the number in F5 to F59 is between 39721 and
39813 and the text in D5 to D59 matches C69.

Any help would be appreciated.

Thanks,

Michele

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default SUMIF Two Conditions

See my post below solving this. Similar but one has to use Date(2008,9,30)
idea.

"pdberger" wrote:

Try this:

=SUMPRODUCT(--(B5:B59=39721),--(B5:B59<=39813),--(D5:D59=C69),F5:F59)

Basically, the first terms (with the "--") return a '1' if true and '0' if
false, so you end up adding the sum only if all the other terms are true.

If you have Excel 2007, there is a "=SUMIFS" function that can do much the
same thing.

hth
"mjones" wrote:

Hi All,

This isn't working.

=IF(AND($B$5:$B$5939721,$B$5:$B$59<39813),SUMIF($ D$5:$D$59,$C69,$F
$5:$F$59))

entered with Ctrl-Shft-Enter.

I'm trying to the a total amount in the range F5 to F59 if the date in
B5 to B59 (corresponding the number in F5 to F59 is between 39721 and
39813 and the text in D5 to D59 matches C69.

Any help would be appreciated.

Thanks,

Michele

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
Sumif with conditions soconfused Excel Worksheet Functions 6 March 5th 08 06:14 PM
Sumif with n conditions Caio Milani Excel Worksheet Functions 1 March 28th 07 03:53 PM
SUMIF with 2 conditions Louise Excel Worksheet Functions 6 May 12th 06 06:39 PM
sumif more conditions Pierre via OfficeKB.com Excel Worksheet Functions 6 January 2nd 06 10:49 PM
SUMIF with two conditions Fred Holmes Excel Discussion (Misc queries) 3 May 1st 05 10:10 PM


All times are GMT +1. The time now is 04:14 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"