Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Use Data Form to input, edit and delete records in Excel
  • How to create dynamic reference table name in Excel
  • How to calculate current stock or inventory in Excel
  • How to Create Area Chart in Excel
  • Conflicting Multiple Conditional Formatting Rules in Excel

References

  • How to retrieve first match between two ranges in Excel
  • Approximate match with multiple criteria in Excel
  • How to get address of last cell in range in Excel
  • Count unique text values with criteria
  • Find closest match in Excel

Data Validations

  • Excel Data validation exists in list
  • Excel Data validation must not contain
  • Excel Data validation date in next 30 days
  • Excel Data validation with conditional list
  • Excel Data validation unique values only

Count cells that contain errors in Excel

by

This tutorial shows how to Count cells that contain errors in Excel using the example below;

Formula

=SUMPRODUCT(–ISERR(range))

Explanation

To count cells that contain errors, you can use the ISERR function, wrapped in the SUMPRODUCT function.  In the example shown, E5 cell contains this formula:

=SUMPRODUCT(--ISERROR(B5:B9))

How this formula works

SUMPRODUCT accepts one or more arrays, multiplies the arrays together, and returns the “sum of products” as a final result. If only one array is supplied, SUMPRODUCT simply returns the sum of items in the array.

The ISERROR function returns TRUE when a cell contains an error, and FALSE if not. In the example, ISERROR receives a range of cells (B5:B9) as input. Because there are five cells in the range, ISERROR evaluates each cell and returns five results in an array of TRUE / FALSE values:

{TRUE;FALSE;TRUE;FALSE;FALSE}

To coerce the TRUE/FALSE values to 1’s and 0’s, we use a double negative (called a double unary). The resulting array looks like this:

{1;0;1;0;0}

Finally, SUMPRODUCT sums the items in this array and returns the total, which is 3 in this case.

Note: ISERROR counts all errors. If for some reason you want to count all errors except #N/A, you can use the ISERR function instead.

Array formula with SUM

You can also use the SUM function to count errors, but you must enter as an array formula using control + shift + enter. Once entered the formula will look like this:

{=SUM(--ISERROR(range))}

The curly brackets are added automatically by Excel and indicate an array formula.

Post navigation

Previous Post:

How to use Excel CHOOSE Function

Next Post:

Customize Ribbon In Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • Not Equal To ‘<>‘ operator in Excel
  • FALSE function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel TRUE Function
  • Excel If, Nested If, And/Or Criteria Examples
  • TRUE function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • Calculate number of hours between two times in Excel
  • How to calculate most recent day of week in Excel
  • Get fiscal year from date in Excel
  • How to enter Today’s Date or Static Date and Time in Excel
  • Convert decimal minutes to Excel time

Grouping

  • Group times into unequal buckets in Excel
  • How to randomly assign data to groups in Excel
  • How to randomly assign people to groups in Excel
  • Group arbitrary text values in Excel
  • Map inputs to arbitrary values in Excel

General

  • Basic error trapping example in Excel
  • Lock Cells in a Worksheet Excel
  • Print Excel Sheet In Landscape Or Portrait
  • How to calculate percent of students absent in Excel
  • AutoFit Column Width, AutoFit Row Height in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning