Add only negative values

San Antonio Heat

Active Member
Joined
Oct 10, 2003
Messages
333
Office Version
  1. 2019
Platform
  1. Windows
Is it possible with some sort of formula to only add negative values? I can't think of any way of doing it.

This is the table, values are in cell B2 through B7
John Doe -35.75
Mike Smith 9.05
Jason Hill 21.48
Mark G 23.02
Mike Frot -25.92
Jimmy Smith -26.17

In Cell F2 I would like the sum of only the negative values.
F2 would equal -87.84
 
Last edited:

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Use SUMIF:
Code:
=SUMIF(B2:B7,"<0")
 
Upvote 0
You are welcome.

Note that there is a companion "COUNTIF" function for counting records that meet certain criteria.
And there are SUMIFS and COUNTIFS functions that allow multiple criteria.
 
Upvote 0

Forum statistics

Threads
1,225,754
Messages
6,186,827
Members
453,377
Latest member
JoyousOne

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