Filter rows that contain error values in Excel

Learn how to isolate rows with error values in Excel using AutoFilter, the Go To Special dialog, or a helper column with ISERROR.

8 min read8 viewsFilter rows that contain error values in Excel
— · 0 votes
Contents
  1. Why Error Values Appear in Excel
  2. Filter by Cell Value for Specific Errors
  3. Select All Error Cells with Go To Special
  4. Create a Helper Column with ISERROR
  5. When to Use Each Filtering Method
  6. Step by Step for Common Tasks
  7. Cleaning Up After Filtering Errors
  8. Working with Error Values in Listing Comparisons
  9. Filtering Error Values in Excel
  10. How do I filter only rows with errors in Excel?
  11. Can Excel filter by error type?
  12. What does ISERROR do in Excel?
  13. How do I select all error cells in a worksheet?
  14. How do I filter rows with #N/A errors only?
  15. Can I filter rows with errors in multiple columns at once?

You can filter rows that contain error values in Excel by using the Go To Special dialog to select error cells and then filtering by color, or by adding a helper column with the ISERROR function and filtering on TRUE. A third approach uses the AutoFilter's filter by cell value option to pick specific errors like #DIV/0! or #N/A. Each method helps you isolate problematic rows for review or cleanup.

  • Use Go To Special to select all error cells at once, then filter by cell color.
  • Add a helper column with =ISERROR(reference) and filter on TRUE to catch any error type.
  • Use AutoFilter's filter by cell value to target specific errors like #DIV/0! or #N/A.
  • Filtering on errors helps you clean data imported from other sources.
  • These methods work in a spreadsheet listing comparisons side by side.

Why Error Values Appear in Excel

Error values appear in Excel when a formula cannot calculate a valid result. The expression often refers to missing data, incompatible types, or invalid arguments. Examples include #DIV/0! when a formula divides by zero and #N/A when a lookup value is not found.

Imported data can also contain error values written as literal text. Such entries are not formulas but still clutter a list of listings or comparisons. Filtering on error values helps you locate these cells for correction.

Excel shows several error types, each with a distinct meaning. The error values filter treats them as a category. Understanding which error appears tells you what to fix in the underlying data.

Filter by Cell Value for Specific Errors

AutoFilter provides a filter by cell value option that lists every distinct entry in the column. Error values like #DIV/0! and #VALUE! appear in that list as separate items. Selecting one or several error types filters the rows that contain any of them.

First click any cell in the data range and go to the Data tab. Turning on Filter adds dropdown arrows to each column header. Choose an arrow in the column you want to check and look for the error entries in the checkbox list.

This method works directly without extra columns or formulas. The filter by cell value includes all error values currently present in the column. If a row has an error in a different column, that row remains visible unless you filter that column too.

  • Select the data range or a cell within it.
  • Go to the Data tab and click Filter.
  • Open the dropdown arrow for the target column.
  • Check only the error values you want to see.
  • Click OK to apply the filter.

Select All Error Cells with Go To Special

The Go To Special dialog can select every cell that contains an error value in one step. This works across the whole worksheet or within a selected range. After selecting the error cells, you can mark them with a fill color.

Press Ctrl+G or F5 to open the Go To dialog, then click Special. Choose Formulas and leave only Errors checked to select error cells. If errors are entered as constants, select Constants with Errors checked instead.

Once the error cells are selected, apply a fill color from the Home tab. Then use AutoFilter's filter by cell color option on any column to show only rows with colored cells. This approach highlights the exact cells that need attention.

MethodWhat It DoesBest Use
AutoFilter by cell valueFilters directly on error entries in one columnTargeting a known error type
Go To Special with color filterSelects all error cells, then filters by fill colorReviewing all errors in a sheet
Helper column with ISERRORFlags rows where any referenced cell has an errorFiltering rows based on errors in multiple columns

Create a Helper Column with ISERROR

A helper column with the ISERROR function marks a row if any specified cell in that row contains an error value. ISERROR returns TRUE when its argument is any error type and FALSE otherwise. Filtering the helper column on TRUE shows all rows with at least one error in the checked cells.

Insert a new column next to your data, for example in cell E2 next to a row of data starting in A2. Enter the formula =ISERROR(A2) to check only column A, or combine it with the OR function to check multiple columns: =OR(ISERROR(A2), ISERROR(B2), ISERROR(C2)).

Copy the formula down the helper column for every row. Then turn on AutoFilter and filter the helper column on TRUE. Only rows where the specified cells contain an error value will appear. The helper column approach is flexible when you need to check several columns at once.

When to Use Each Filtering Method

Each method for filtering error values works well in a different situation. Choose based on whether you target one column or the whole sheet and whether you need a permanent flag. The filter by cell value method is fastest for a single column with known error types.

Go To Special offers an overview of every error cell in the range. Color coding the selection lets you filter multiple columns at once based on the fill. However, the color remains after you remove the filter, so clear it later if needed.

A helper column gives a reusable filter condition. The ISERROR formula updates automatically when the data changes. This method is useful in listing comparisons where rows move or new data is added. The helper column can be hidden to keep the main table clean.

Step by Step for Common Tasks

To filter rows that contain error values in a single column, first turn on AutoFilter. Click the dropdown arrow for that column and uncheck all entries except the error values. The rows shown are only those with an error in that column.

To filter rows that contain an error anywhere in selected columns, add a helper column. Use a formula with ISERROR that covers the columns you care about. Filter the helper column on TRUE to see every row with at least one error in those columns.

To highlight error cells for manual review, use Go To Special. Select the range you want to check, press F5, click Special, choose Formulas with Errors or Constants with Errors, then apply a fill color. You can then filter by color to show only rows containing highlighted cells.

Cleaning Up After Filtering Errors

Once you have filtered the rows with error values, you can correct them one by one. Click on the error cell to see which formula or value caused the problem. The error type itself indicates what to look for, such as a missing argument or an invalid reference.

For errors that come from external imports, you may replace them with blank cells or a neutral value. Use care: overwriting formulas removes their calculation. If keeping a formula is important, adjust its references or wrap it in an error handling function like IFERROR.

After cleaning the data, turn off the filter to see the full list again. Remove any fill colors applied via Go To Special if they are no longer needed. Remove the helper column or leave it hidden if you might reuse the error check later.

Working with Error Values in Listing Comparisons

When comparing listings side by side, error values can hide important differences. Filtering rows with errors shows which entries lack a valid comparison point. This helps you find incomplete data before building a shortlist.

Use the helper column method to flag rows where any of several comparison columns contains an error. The ISERROR formula can be extended with the OR function to cover all columns you need to compare. Filtering on TRUE then isolates the listings that need attention.

After you filter on error values, you can fill in or correct the data to make the comparison meaningful. The goal is a clean set of details that you can understand at a glance. The techniques described work the same in any spreadsheet that uses Excel's filtering features.

Filtering Error Values in Excel

How do I filter only rows with errors in Excel?

You can filter only rows with errors by using AutoFilter's filter by cell value on one column, selecting error entries. For a whole row check, add a helper column with ISERROR and filter on TRUE. Go To Special with color filtering also works across multiple columns.

Can Excel filter by error type?

Yes, AutoFilter lists each error type separately in the filter menu. You can check one error type such as #DIV/0! to show only rows with that error. Checking multiple error types shows rows containing any of them.

What does ISERROR do in Excel?

ISERROR returns TRUE if its argument is any error value and FALSE otherwise. It is often used in a helper column to mark rows that contain errors. The TRUE values can then be filtered to isolate those rows.

How do I select all error cells in a worksheet?

Use the Go To Special dialog to select all error cells at once. Press Ctrl+G, click Special, choose Formulas and check Errors, then click OK. All cells with error values in the selected range are highlighted.

How do I filter rows with #N/A errors only?

Turn on AutoFilter and open the dropdown in the column where #N/A appears. Uncheck everything except #N/A in the filter list. The sheet will show only rows where that column has the #N/A error value.

Can I filter rows with errors in multiple columns at once?

Yes, create a helper column with a formula such as =OR(ISERROR(A2), ISERROR(B2), ISERROR(C2)). The formula returns TRUE if any of those cells contains an error. Filter the helper column on TRUE to see rows with errors in any of those columns.

Latest articles