#1   Report Post  
ldiaz
 
Posts: n/a
Default Sum value Upper 0


I want to sum datas of a column with these Datas.

Usage Total Price
33.5 $65.5
-32.5 $-50.5
-1.5 $-5
1.5 $5

But I want to Sum only values upper 0. it should be: Usage Total: 35.5 &
$70.5

also I want the viceversa.



please help

ldiaz


  #2   Report Post  
RagDyer
 
Posts: n/a
Default

If you want separate totals for each column:

=SUMIF(A2:A5,"0")
=SUMIF(B2:B5,"0")

=SUMIF(A2:A5,"<0")
=SUMIF(B2:B5,"<0")

--
HTH,

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


"ldiaz" wrote in message
...

I want to sum datas of a column with these Datas.

Usage Total Price
33.5 $65.5
-32.5 $-50.5
-1.5 $-5
1.5 $5

But I want to Sum only values upper 0. it should be: Usage Total: 35.5 &
$70.5

also I want the viceversa.



please help

ldiaz



  #4   Report Post  
Dave Peterson
 
Posts: n/a
Default

Take a look at =sumif() in excel's help:

=sumif(a2:a99,"0")
and
=sumif(a2:a99,"<0")

You could even put a value in another cell:

=sumif(a2:a99,"<"&b1)
to add up all the values less than the value in B1

ldiaz wrote:

I want to sum datas of a column with these Datas.

Usage Total Price
33.5 $65.5
-32.5 $-50.5
-1.5 $-5
1.5 $5

But I want to Sum only values upper 0. it should be: Usage Total: 35.5 &
$70.5

also I want the viceversa.

please help

ldiaz


--

Dave Peterson
  #5   Report Post  
Roger Govier
 
Posts: n/a
Default

One way
=SUMPRODUCT(--(A1:A40),A1:A4)
for total positive values - answer is 35 not 35.5

=SUMPRODUCT(--(A1:A4<0),A1:A4)
for total negative values - answer -34.0

Change ranges for price and alter range size to suit.

Regards

Roger Govier


ldiaz wrote:
I want to sum datas of a column with these Datas.

Usage Total Price
33.5 $65.5
-32.5 $-50.5
-1.5 $-5
1.5 $5

But I want to Sum only values upper 0. it should be: Usage Total: 35.5 &
$70.5

also I want the viceversa.



please help

ldiaz




  #6   Report Post  
ldiaz
 
Posts: n/a
Default

To all answered my question I want to thanks and say: Thank you so much...

Ldiaz


"Dave Peterson" wrote:

Take a look at =sumif() in excel's help:

=sumif(a2:a99,"0")
and
=sumif(a2:a99,"<0")

You could even put a value in another cell:

=sumif(a2:a99,"<"&b1)
to add up all the values less than the value in B1

ldiaz wrote:

I want to sum datas of a column with these Datas.

Usage Total Price
33.5 $65.5
-32.5 $-50.5
-1.5 $-5
1.5 $5

But I want to Sum only values upper 0. it should be: Usage Total: 35.5 &
$70.5

also I want the viceversa.

please help

ldiaz


--

Dave Peterson

  #7   Report Post  
B. R.Ramachandran
 
Posts: n/a
Default

Hi,

Use the formulas,

=SUMIF(A2:A100,"0") for summing positive quantities, and
=SUMIF(A2:A100,"<0") for summing negative quantities,

where A2:A100 is the range of cells considered. Modify the range
appropriately.

Regards,
B. R. Ramachandran

"ldiaz" wrote:


I want to sum datas of a column with these Datas.

Usage Total Price
33.5 $65.5
-32.5 $-50.5
-1.5 $-5
1.5 $5

But I want to Sum only values upper 0. it should be: Usage Total: 35.5 &
$70.5

also I want the viceversa.



please help

ldiaz


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
Changing file in all upper case to upper and lower case Sagit Excel Discussion (Misc queries) 15 May 30th 07 06:08 AM
Convert lower case charecters to upper case Dinesh Excel Discussion (Misc queries) 3 September 10th 05 12:59 PM
List vector using upper and lower limits flaterp Excel Discussion (Misc queries) 6 June 10th 05 11:17 PM
How do I convert all upper case excel sheet into upper and lower . DebDay Excel Discussion (Misc queries) 1 March 9th 05 08:31 PM
How to change location A1 cell from upper right to upper left? Doug@Peacock Excel Discussion (Misc queries) 1 February 8th 05 02:37 PM


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