Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / April 2007

Tip: Looking for answers? Try searching our database.

sumif with >or< condition

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Will Fleenor - 27 Apr 2007 01:39 GMT
I have 6 numbers in cells a1..a6.  Some are positive and some are negative.
I would like to total up only the numbers that are > 20000 or <-20000.
This formula works for >
=SUMIF(A1:A6,">"&20000,A1:A6)
but this formula will not work:
=SUMIF(A1:A6,or(">"&20000,A1:A6,"<"&-20000),A1:A6 )
What is wrong with the last formula.  It always evaluates to 0.

Thanks Will
Pete_UK - 27 Apr 2007 01:46 GMT
You can only have one condition with SUMIF. Try this:

=SUMIF(A1:A6,">"&20000,A1:A6)+SUMIF(A1:A6,"<"&-20000,A1:A6)

Hope this helps.

Pete

> I have 6 numbers in cells a1..a6.  Some are positive and some are negative.
> I would like to total up only the numbers that are > 20000 or <-20000.
[quoted text clipped - 5 lines]
>
> Thanks Will
Barb Reinhardt - 27 Apr 2007 01:50 GMT
I got it to work with this:

=SUM(IF(ABS(A1:A6)>20000,A1:A6))

Activate with CTRL SHIFT ENTER

> I have 6 numbers in cells a1..a6.  Some are positive and some are negative.
> I would like to total up only the numbers that are > 20000 or <-20000.
[quoted text clipped - 5 lines]
>
> Thanks Will
Ragdyer - 27 Apr 2007 02:02 GMT
=Sumif(A1:A6,">20000")+Sumif(A1:A6,"<-20000")

Signature

HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

>I have 6 numbers in cells a1..a6.  Some are positive and some are negative.
>I would like to total up only the numbers that are > 20000 or <-20000.
[quoted text clipped - 5 lines]
>
> Thanks Will
Ragdyer - 27 Apr 2007 02:07 GMT
OR this:

=SUMPRODUCT(((A1:A6>2)+(A1:A6<-2))*A1:A6)

Signature

HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

>
> =Sumif(A1:A6,">20000")+Sumif(A1:A6,"<-20000")
[quoted text clipped - 9 lines]
>>
>> Thanks Will
Ragdyer - 27 Apr 2007 02:09 GMT
Of course, add the 0's:

=SUMPRODUCT(((A1:A6>20000)+(A1:A6<-20000))*A1:A6)

Signature

HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

> OR this:
>
[quoted text clipped - 12 lines]
>>>
>>> Thanks Will
RagDyeR - 27 Apr 2007 04:06 GMT
One more:<g>

=SUM(SUMIF(A1:A6,{">20000","<-20000"}))

Signature

HTH,

RD
=====================================================
Please keep all correspondence within the Group, so all may benefit!
=====================================================

Of course, add the 0's:

=SUMPRODUCT(((A1:A6>20000)+(A1:A6<-20000))*A1:A6)

Signature

HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Ragdyer" <ragdyer@cutoutmsn.com> wrote in message
news:%23yboviGiHHA.3472@TK2MSFTNGP04.phx.gbl...

> OR this:
>
[quoted text clipped - 12 lines]
>>>
>>> Thanks Will
Bob Phillips - 27 Apr 2007 07:45 GMT
Yet one more

=SUMPRODUCT(--(ABS(A1:A20)>2000),A1:A20)

Signature

HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

> One more:<g>
>
[quoted text clipped - 20 lines]
>>>>
>>>> Thanks Will
Mike - 27 Apr 2007 02:08 GMT
=SUMIF(A1:A6,">20000",A1:A6)+SUMIF(A1:A6,"<-20000",A1:A6)

> I have 6 numbers in cells a1..a6.  Some are positive and some are negative.
> I would like to total up only the numbers that are > 20000 or <-20000.
[quoted text clipped - 5 lines]
>
> Thanks Will
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.