Count cells that do not have errors

This tutorial shows how to count the number of cells in a specified range that do not contain errors using an Excel formula, with the SUMPRODUCT, NOT and ISERROR functions

EXCEL FORMULA 1. Count cells that do not contain errors

EXCEL

Count cells that do not have errors

=SUMPRODUCT(--NOT(ISERROR(B5:B9)))
GENERIC FORMULA

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

ARGUMENTS
range: The range from which to count the cells that do not contain an error.

EXPLANATION

For each cell in the selected range, the combination of the NOT and ISERROR functions identifies the cells that do not contain an error. Then the SUMPRODUCT function is used to sum the number of cells that the NOT and ISERROR functions identified as not containing an error.

In this example the range from which we are counting the total number of cells that do not contain an error is B5:B9. The formula returns a value of 2 as the cells within that range that do not contain an error are B5 and B8.

RELATED TOPICS

Related Topic Description Related Topic and Description
How to count the number of cells in a specified range that contain errors

RELATED FUNCTIONS

Related Functions Description Related Functions and Description
The Excel SUMPRODUCT function multiplies corresponding ranges and returns the sum of these values
The Excel NOT function returns the opposite result of a logical value