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

=SUMIF($F$6:$F$2000,$O8,$G$6:$G$2000)*AND($M$6:$M$ 2000<=60)

this function ignores the AND statement.....Please Help

Thanks,
Adam

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default SUMIF Conditions

Not sure what you mean by "ignores"...

The AND() statement will return TRUE if ALL values in M6:M2000 are <=60,
FALSE otherwise. The multiplication operator (*) will cause that value
to be coerced to 1/0 respectively, so if all values are <=60, the value
of the SUMIF() will be multiplied by 1. Af all the values are NOT <=60,
then the result of the SUMIF() will be multiplied by 0.

IF, OTOH, you're trying to sum the values in G if the values in F = O8
and the values in M are <=60, try

=SUMPRODUCT(--($F$6:$F$2000=$O8),--($M$6:$M$2000<=60),$G$6:$G$2000)





In article .com,
wrote:

=SUMIF($F$6:$F$2000,$O8,$G$6:$G$2000)*AND($M$6:$M$ 2000<=60)

this function ignores the AND statement.....Please Help

Thanks,
Adam

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

It's because there are no AND statements in SUMIF or COUNTIF

=SUMPRODUCT(--(M6:M2000<=60),--(F6:F2000=O8),G6:G2000)

should work


--
Regards,

Peo Sjoblom


wrote in message
oups.com...
=SUMIF($F$6:$F$2000,$O8,$G$6:$G$2000)*AND($M$6:$M$ 2000<=60)

this function ignores the AND statement.....Please Help

Thanks,
Adam



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

Both of the Formulas worked! Thanks!

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 two conditions Neutron1871 Excel Worksheet Functions 1 May 11th 07 01:45 AM
sumif more conditions Pierre via OfficeKB.com Excel Worksheet Functions 6 January 2nd 06 10:49 PM
SUMIF with two conditions? Lee Harris Excel Worksheet Functions 7 November 20th 05 10:47 AM
sumif with 3 conditions Robbert Excel Worksheet Functions 3 May 31st 05 12:14 PM
sumif with two conditions ww Excel Worksheet Functions 3 March 31st 05 01:44 AM


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