Summing

alfonsoto1

Board Regular
Joined
Nov 25, 2004
Messages
101
How do I go about Summing a column but only positive numbers? And conversely, Summing only negative numbers. Thanks in advance Alfonso
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

DonkeyOte

MrExcel MVP
Joined
Sep 6, 2002
Messages
9,123
=SUMIF(range,">"&0,range)

or for -ve numbers

=SUMIF(range,"<"&0,range)
 

Padawan

Active Member
Joined
Apr 9, 2002
Messages
392
To add to lasw10's reply

=SUMIF(Range:Range,">0") will also work

For example, A1 to A10 would be =SUMIF(A1:A10,">0")

See the Excel help file for SUMIF if you want to use one range to evaluate for a condition, but actually sum another range.

Regards,
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,708
Messages
5,833,245
Members
430,200
Latest member
ADLHMA2022

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
Top