How to sum / average ignore negative values in Excel? 

Normally, we can apply the SUM and AVERAGE functions to calculate the result of a range of cells including positives and negatives, but, how can we sum or average numbers ignore the negative values in Excel? Here, I will talk about some quick tricks to deal with this problem.

Sum / Average ignore negative values with formulas

Sum / Average ignore negative values with Kutools for Excel

Sum / Average ignore negative values with formulas

To sum or average all values excluding the negative numbers, please apply the following formulas:

Sum ignore negative values:

1. Enter this formula into a blank cell where you want to put the result, =SUMIF(A1:D9,">=0"), see screenshot:

doc ignore negative 1

2. Then press Enter key to get the result, see screenshot:

doc ignore negative 2

Average ignore negative values:

To average ignore the negative values, please use this formula: =SUMIF(A1:D9,">=0")/COUNTIF(A1:D9,">=0").

Note: In the above formulas, A1:D9 is the data range that you want to use, you can change the cell reference as your need.

Sum / Average ignore negative values with Kutools for Excel

Kutools for Excel’s Select Specific Cells feature can help you to select all non-negative numbers at once, and get the calculations, such as sum, average, count at the status bar.

Kutools for Excel : with more than 300 handy Excel add-ins, free to try with no limitation in 30 days. 

After installing Kutools for Excel, please do as follows:

1. Select the cells that you want to use.

2. Click Kutools > Select > Select Specific Cells, see screenshot:

3. In the Select Specific Cells dialog box, do the following operations:

(1.) Select Cell from the Selection type;

(2.) Choose Greater than or equal to from the Specific type, and enter 0 in the text box.

doc ignore negative 4

4. Then click Ok or Apply button, all numbers exclude negatives have been selected, and you can view the result of the average, count, sum calculations at the bottom of the status bar, see screenshot:

doc ignore negative 5

Click to know more about this Select Specific Cells utility…

Download and free trial Kutools for Excel Now !

Demo: Sum / Average ignore negative values with Kutools for Excel

Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days. Download and free trial Now!

The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Nexxus Designs · 11 months ago
    Thanks! I found this quick and it solved my issue with the excel sum function to ignore values with negative numbers. Hope it helps many other people, thanks for making this.