Sum column with both - & + numbers

aapjrat5128

Board Regular
Joined
Apr 7, 2002
Messages
53
I have two columns with both negative and positive numbers, how can I sum both the negative and positive numbers separatly? The columns are D18:D34 and H13:H34. Thanks in advance for any help. AL
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
I assume you'd want the negative numbers summed and displayed in one cell, and the positive (or essentially 0 and above) numbers summed and displayed in a separate cell.

So, try this in one cell:
Positive (0 and above:
=SUMIF(D18:D34,">=0")

and for summing negative numbers in another cell:
=SUMIF(D18:D34,"<0")

Is that what you want?
If so, repeat for your other range and you are good to go.
 
Upvote 0
for negative numbers try =SUMIF(D18:D34,"<0",D18:D34)+SUMIF(H13:H34,"<0",H13:H34) and for positive numbers =SUMIF(D18:D34,">0",D18:D34)+SUMIF(H13:H34,">0",H13:H34)
by the way, i notice that the range for column d is different to column h (ie. d is row 18 to 34, while h is row 13 to 34). if this is a typo you'll have to amend the ranges in these formulas
 
Upvote 0

Forum statistics

Threads
1,213,527
Messages
6,114,144
Members
448,552
Latest member
WORKINGWITHNOLEADER

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top