# How to Count Cells with Errors in Excel: A Step-by-Step Guide

Are you struggling to identify and count cells with errors in your Excel sheet? Error cells in Excel are a common occurrence, and it’s crucial to identify them to ensure the accuracy of your data analysis. In this article, we will guide you through the process of counting cells with errors in Excel, step-by-step.

## Types of Errors in Excel

Excel recognizes several types of errors, including:

• #DIV/0!: This error occurs when you divide a number by zero.
• #N/A: This error occurs when a value is not available to a formula or function.
• #NAME?: This error occurs when Excel cannot recognize text in a formula.
• #NULL!: This error occurs when you use a space instead of a comma or colon.
• #NUM!: This error occurs when you use an incorrect argument in a formula or function.
• #REF!: This error occurs when a formula references a cell that is not valid.
• #VALUE!: This error occurs when you use an incorrect data type in a formula or function.

## Counting Cells with Errors in Excel

Now that we understand the problem, let’s dive into the solution. There are multiple ways to count cells with errors in Excel, and we will discuss them below:

### 1. Using the COUNTIF Function

The COUNTIF function is an Excel function that counts the number of cells that meet a certain criterion. We can use this function to count cells with errors. Let’s take an example to illustrate:

Suppose we have a range of cells from A1 to A5, and cell A3 contains a #REF! error. We want to count the number of cells that have errors in this range. Here are the steps:

• Select the cell where you want to display the result, say B1.
• Type “=COUNTIF(A1:A5,”#”)” in the formula bar.
• Press “Enter” to display the result.

The # symbol in the formula means any character or no character, followed by the pound symbol (#), which represents an error. It will count all cells that contain any error. In our example, the result in cell B1 will be 1, indicating that there is one cell with an error in the range A1:A5.

### 2. Using the IFERROR Function

The IFERROR function is another Excel function that can be used to count cells with errors. Let’s take an example to illustrate:

Suppose we have a range of cells from B1 to B5, and cell B2 contains a #VALUE! error. We want to count the number of cells that have errors in this range. Here are the steps:

• Select the cell where you want to display the result, say C1.
• Type “=SUM(IFERROR(B1:B5,1))” in the formula bar.
• Press “Ctrl+Shift+Enter” to display the result.

The IFERROR function returns a value if the formula returns an error, and 1 is used as a placeholder value. The SUM function then adds up all the values and returns the final count. In our example, the result in cell C1 will be 1, indicating that there is one cell with an error in the range B1:B5.

### 3. Using the Go To Special Function

The Go To Special function is a built-in Excel function that can be used to select cells with errors. Let’s take an example to illustrate:

Suppose we have a range of cells from C1 to C5, and cell C5 contains a #DIV/0! error. We want to select all the cells with errors in this range. Here are the steps:

• Select the range of cells you want
• Go to the “Home” tab and click on the “Find & Select” dropdown.
• Click on “Go To Special.”
• In the “Go To Special” dialog box, select “Errors” and click “OK.”
• All the cells with errors in the selected range will now be highlighted.

You can then count the number of highlighted cells to get the total number of cells with errors in the range.

### 4. Using Conditional Formatting

Conditional formatting is an Excel feature that allows you to format cells based on their content. It can also be used to count cells with errors. Let’s take an example to illustrate:

Suppose we have a range of cells from D1 to D5, and cell D1 contains a #NAME? error. We want to highlight all the cells with errors in this range and count them. Here are the steps:

• Select the range of cells you want to apply conditional formatting to.
• Go to the “Home” tab and click on the “Conditional Formatting” dropdown.
• Click on “New Rule.”
• In the “New Formatting Rule” dialogue box, select “Use a formula to determine which cells to format.”
• In the “Format values where this formula is true” field, type “=ISERROR(D1)” and click “Format.”
• Choose the formatting you want to apply to the cells with errors and click “OK.”
• All the cells with errors in the selected range will now be highlighted.
• To count the number of highlighted cells, you can use the COUNTIF function as discussed in method 1.

Counting cells with errors can help you ensure the accuracy of your data analysis. In this article, we discussed four different ways to count cells with errors in Excel, including using the COUNTIF function, IFERROR function, Go To Special function, and Conditional Formatting. We hope this guide helps you in your data analysis endeavours.

## Bibek Sapkota

I'm Bibek | Tech Enthusiast & Lifelong Learner. | Playing on the Web for the Past Few Years as an SEO Specialist and Full-Time Blogger. I'm constantly seeking out new opportunities to learn and grow, and I love sharing my knowledge with others. This is where I started this blog! Here, you will find me sharing comprehensive reviews, helpful guides, tips-tricks and ways to get the full benefits of evolving technology. On this blog, you can also explore Powerful Knowledge, Tips & Resources On Blogging, SEO and Passive income Opportunities.