View Single Post
  #8   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.misc,microsoft.public.excel.worksheet.functions
RagDyeR RagDyeR is offline
external usenet poster
 
Posts: 3,572
Default sumif with or< condition

One mo<g

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

--

HTH,

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

"Ragdyer" wrote in message
...
Of course, add the 0's:

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

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Ragdyer" wrote in message
...
OR this:

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

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Ragdyer" wrote in message
...


=Sumif(A1:A6,"20000")+Sumif(A1:A6,"<-20000")


--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Will Fleenor" wrote in message
...
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