Get instant live expert help with Excel or Google Sheets
“My Excelchat expert helped me in less than 20 minutes, saving me what would have been 5 hours of work!”

#### Post your problem and you’ll get expert help in seconds.

Your message must be at least 40 characters
Our professional experts are available now. Your privacy is guaranteed.

# Count Cells That Do Not Contain Errors

As we work on excel spreadsheets, a time comes when we need to count cells that do not contain errors. The NOT function together with ISERR function can be wrapped inside the SUMPRODUCT function to count cells that have errors. This post will step through how to count cells that do not contain errors.

Figure 1. Final result

## Syntax of the formula

`=SUMPRODUCT(--NOT(ISERR(rng)))`

Where ‘rng’ represents the range.

## Understanding the formula

The formula has the following parts which play various roles as explained:

SUMPRODUCT: This part will count the total number of products supplied. It accepts single or multiple arrays and will calculate the sum of the products of corresponding numbers. In the event only one array is supplied, then the SUMPRODUCT will just sum the items in that array.

ISERR: this part is evaluated for each cell in the given range. In the absence of NOT, we shall get an array of results equal to TRUE or FALSE, i.e. `{TRUE; FALSE; TRUE; FALSE; FALSE}`

NOT: When this is included in the formula, then we get the result as shown below;

`{FALSE; TRUE; FALSE; TRUE; TRUE}`

The results by the NOT function will correspond to those cells in the range that do not contain errors.

In the formula, we also have the double hyphen, otherwise referred to as double unary. This forces the results (TRUE/FALSE) into 1s and 0s. Thus, `{FALSE; TRUE; FALSE; TRUE; TRUE}` turns to `{0; 1; 0; 1; 1}`

After all these have been done, SUMPRODUCT then sums all the items in the array, and returns the total.

We also have the SUM function which is fundamental in counting errors. The structure os this formula is same as what we have already discussed, with the only difference that it has to be entered as an array formula.

## How to enter an array formula:

Press (Control + Shift + Enter)

This formula looks as below:

`{=SUM(--NOT(ISERR(B4:B8)))}`

Most of the time, the problem you will need to solve will be more complex than a simple application of a formula or function. If you want to save hours of research and frustration, try our live Excelchat service! Our Excel Experts are available 24/7 to answer any Excel question you may have. We guarantee a connection within 30 seconds and a customized solution within 20 minutes.

### Did this post not answer your question? Get a solution from connecting with the expert.

Another blog reader asked this question today on Excelchat:
Solution examples
How do you get excel to ignore a formula until cell contains a value i.e.(if B1 is 1000, don't subtract C1 from B1 for a sum in C2 (resulting in -1000), until a value is first put in C1. ANOTHER EXAMPLE Don't add the sum of D5 and D6 in D7 if D5 and D6 are blank, preventing D7 (and E7 and G7...) from showing up as 0.00 ). I would like totals to remain blank and not the whole row showing 0.00 until a number is placed to complete the formula
Solved by V. J. in 28 mins
Use the Vlookup Function to complete the "employee" column of table 2. Use "job Id" from table 2 as your lookup_value(s) and table 1 as your reference.
Solved by C. H. in 16 mins
If a cell in another sheet is populated I need a vlookup done. If the cell is not populated I need the cell to return blank.
Solved by T. D. in 60 mins
I am trying to make a chart that turns a week range red if nothing is entered in the range. If something is entered then I would like it to turn green. Please Help
Solved by E. U. in 43 mins
I need a check box to show/hide an answer of an if function
Solved by Z. U. in 23 mins