Skip to main content

Sum all number cells ignoring errors in Excel

When summing a range of numbers which contain some error values, the normal SUM function will not work correctly. To sum only numbers and skip the error values, the AGGREGATE function or the SUM along with the IFERROR functions can do you a favor.

Sum numbers ignoring various errors with AGGREGATE function

In Excel, the AGGREGATE function can help to sum a range of cells and ignore all kinds of errors, the generic syntax is:

  • 9: This is the argument - function-num within the AGGREGATE, it indicates Sum function;
  • 6: This is another argument – options within the AGGREGATE, it used to ignore error values;
  • range: The range of cells to be summed.

Please apply the below formula into a blank cell, and then press Enter key to get the summation:


Sum numbers ignoring various errors with SUM and IFERROR functions

You can also combine the SUM and IFERROR functions together to create an array formula for solving this task, the generic syntax is:

Array formula, should press Ctrl + Shift + Enter keys together.
  • range: The range of cells you want to sum ignoring the errors.

Enter the following formula into a blank cell, and then press Ctrl + Shift + Enter keys to get the correct result, see screenshot:


Explanation of the formula:


  • IFERROR(C2:C10,0): This IFERROR function will return 0s when error values are found. So, you will get the array list as this: {1200;0;1500;0;1005;900;0;2005;1690}.
  • SUM(IFERROR(C2:C10,0))=SUM({1200;0;1500;0;1005;900;0;2005;1690}): The SUM function sums all numbers in the array list to get the final result: 8300.

Sum numbers ignoring specific error with SUMIF function

The above two methods sum range of cells ignoring all kinds of errors. If your data contains only one error type, such as #N/A error, to ignore this specific error when summing, the SUMIF function can help you. The generic syntax is:

  • range: The range of cells you want to sum;
  • error_type: A type of error that you want to ignore when summing, such as #N/A, #REF!...

In a blank cell, please enter the below formula, and then press Enter key to get the result as you need:


Note: When applying this formula, if other types of error occur in the data list, this SUMIF function will return an error result.

Relative function used:

  • SUMIF:
  • The SUMIF function can help to sum cells based on one criterion.
  • The IFERROR function is used to return a custom result when a formula evaluates an error, and return a normal result when no error is occurred.
  • The AGGREGATE function can apply different aggregate functions to a list or database with the option to ignore hidden rows and error values.

More articles:

  • Sum Smallest Or Bottom N Values
  • In Excel, it is easy for us to sum a range of cells by using the SUM function. Sometimes, you may need to sum the smallest or bottom 3, 5 or n numbers in a data range as below screenshot shown. In this case, the SUMPRODUCT together with the SMALL function can help you to solve this problem in Excel.
  • Sum Smallest Or Bottom N Values Based On Criteria
  • In previous tutorial, we have discussed how to sum the smallest n values in a data range. In this article, we will perform a further advanced operation – to sum the lowest n values based on one or more criteria in Excel.
  • Subtotal Invoice Amounts By Age
  • To sum the invoice amounts based on age as below screenshot shown may be a common task in Excel, this tutorial will show how to subtotal invoice amounts by age with a normal SUMIF function.

The Best Office Productivity Tools

Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
Rate this post:
0   Characters
Suggested Locations