Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Google Sheets ISERROR Function: How to Use It

· 4 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

The ISERROR function in Google Sheets is used to check if a formula or a cell results in any error. It returns TRUE if the value is an error (such as #DIV/0!, #N/A, #VALUE!, #REF!, or #NUM!) and FALSE if the value is a valid number, text, or blank. This is primarily used to clean up spreadsheets by replacing ugly error codes with custom text, zeros, or blank spaces.

What You'll Need

  • A Google account with access to Google Sheets.
  • A spreadsheet containing data or formulas that may produce errors.

Step-by-Step

  1. Identify the Error: Locate the cell where a formula is currently producing an error (e.g., a VLOOKUP that cannot find a match or a division formula dividing by zero).
  2. Select a Target Cell: Click on the cell where you want the result of the ISERROR check to appear. This can be the same cell (by wrapping the existing formula) or a new cell.
  3. Enter the Basic Formula: Type =ISERROR( followed by the cell reference or the formula you want to check. For example: =ISERROR(A1/B1).
  4. Close the Parenthesis: Type the closing parenthesis ) and press Enter. If the formula inside results in an error, the cell will now display "TRUE"; otherwise, it will display "FALSE".
  5. Combine with IF for Custom Results: Since "TRUE" and "FALSE" are rarely the desired final output, wrap the ISERROR function inside an IF statement. The syntax is: =IF(ISERROR(your_formula), "Value if Error", "Value if Not Error").
  6. Example Implementation: To replace a #DIV/0! error with a zero, use: =IF(ISERROR(A1/B1), 0, A1/B1). To replace it with a text warning, use: =IF(ISERROR(A1/B1), "Check Data", A1/B1).
  7. Apply to Range: Click the small blue square (fill handle) at the bottom-right corner of the cell and drag it down or across to apply the logic to the rest of your data set.

Common Mistakes

  • Forgetting the IF Wrapper: Using ISERROR on its own only tells you if an error exists. To actually "fix" or hide the error, you must use it as the logical test inside an IF function.
  • Incorrect Parentheses: Because ISERROR is often nested inside IF, it is common to miss a closing parenthesis at the end of the formula. Ensure every opening ( has a matching ).
  • Confusing ISERROR with ISNA: ISERROR catches all errors. ISNA only catches the #N/A error (typically found in lookups). If you only want to handle "Not Available" errors but want to be alerted to other critical errors like #REF!, use ISNA instead.
  • Circular References: Trying to use ISERROR on the same cell it is written in without a proper formula structure can cause a circular dependency error.

Tips

  • Leave it Blank: If you want the cell to appear empty when an error occurs, use double quotes with nothing between them in the IF statement: =IF(ISERROR(A1/B1), "", A1/B1).
  • Use IFERROR for Simplicity: If you find the =IF(ISERROR(...)) syntax too long, Google Sheets offers a shorthand function called IFERROR. =IFERROR(A1/B1, 0) does the exact same thing as the longer ISERROR version but is much faster to type.
  • Audit Your Data: Use ISERROR in a separate "Audit" column to quickly flag rows that need manual correction without altering the original data.

Troubleshooting

If the formula is not behaving as expected, try these steps in order:

  • Check the Syntax: Ensure you haven't missed a comma or a quotation mark. Text values inside the IF function must always be enclosed in "double quotes".
  • Verify the Cell References: Double-check that the cells you are referencing actually contain the data you expect. A blank cell is not an error; it is a value of 0 or an empty string.
  • Check for Hidden Characters: If a cell looks like an error but ISERROR returns FALSE, there may be a space or a hidden character in the cell making it "text" rather than a formula error.
  • Refresh the Sheet: If the formula seems stuck, refresh your browser tab to ensure all calculations are updating in real-time.

Frequently Asked Questions

What is the difference between ISERROR and IFERROR?

ISERROR is a logical function that returns TRUE or FALSE. IFERROR is a wrapper that returns a specific value if an error is found, effectively combining IF and ISERROR into one shorter command.

Does ISERROR catch #N/A errors?

Yes, ISERROR catches every type of error produced by Google Sheets, including #N/A, #VALUE!, #REF!, #DIV/0!, and #NUM!

Can I use ISERROR with a range of cells?

ISERROR is designed to check a single value. If you apply it to a range (e.g., =ISERROR(A1:A10)), it may only evaluate the first cell unless you wrap it in an ARRAYFORMULA.

Why is my ISERROR returning FALSE when I see an error?

This usually happens if the "error" is actually just text that looks like an error code, or if the cell is formatted as plain text rather than a formula.

Can I use ISERROR to find empty cells?

No. An empty cell is not considered an error. To find empty cells, use the ISBLANK function.