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

Data Analysis

  • How to calculate current stock or inventory in Excel
  • Get column name from index in Excel Table
  • Create Scatter Chart in Excel
  • Example of COUNTIFS with variable table column in Excel
  • How To Sort One Column or Multiple Columns in Excel

References

  • Count rows with at least n matching values
  • How to get first column number in range in Excel
  • How to use Excel ROWS Function
  • How to get address of first cell in range in Excel
  • MATCH function: Description, Usage, Syntax, Examples and Explanation

Data Validations

  • Excel Data validation only dates between
  • Excel Data validation unique values only
  • Excel Data validation allow weekday only
  • Prevent invalid data entering in specific cells
  • Excel Data validation don’t exceed total

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.

Worked Example:   Count day of week between dates in Excel

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.

Worked Example:   Excel Data validation must not contain

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.

Worked Example:   Count dates by day of week in Excel

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 FALSE Function

Next Post:

Large with criteria 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

  • IFNA function: Description, Usage, Syntax, Examples and Explanation
  • OR function Examples in Excel
  • How to use Excel OR Function
  • IFS function: Description, Usage, Syntax, Examples and Explanation
  • OR function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • DAY function: Description, Usage, Syntax, Examples and Explanation
  • DAYS360 function: Description, Usage, Syntax, Examples and Explanation
  • WORKDAY.INTL function: Description, Usage, Syntax, Examples and Explanation
  • How to get same date next month or previous month in Excel
  • Convert Excel time to Unix time in Excel

Grouping

  • Group numbers with VLOOKUP in Excel
  • If cell contains one of many things in Excel
  • Group numbers at uneven intervals in Excel
  • Calculate conditional mode with criteria in Excel
  • Map inputs to arbitrary values in Excel

General

  • Zoom Worksheet in Excel
  • Subtotal by invoice number in Excel
  • How to make excel worksheets print on one page?
  • Split Cell Content Using Text to Columns in Excel
  • Automatically fill series of cells in Excel using AutoFill
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning