How to use ISERR function in Excel?

The `ISERR` function in Excel is used to check if a given value or expression results in any error value, except `#N/A`. It returns `TRUE` if the value is any error other than `#N/A`, and `FALSE` otherwise. This can be particularly useful for error handling in formulas. Here’s how you can use the `ISERR` function:

Syntax:

ISERR(value)
  • value: This is the expression or cell reference that you want to check for errors.

Examples of Usage:

  • Basic Example:

Suppose you have a formula in cell B1 that can potentially produce an error (like division by zero), you can use `ISERR` to detect the error:

   =ISERR(B1/B2)

If B2 is zero, causing a division error, `ISERR` will return `TRUE`.

  • Using with IF to handle errors:

You can use `ISERR` in combination with `IF` to provide alternative output when an error occurs. For example, if you want to return “Error occurred” when there is an error in a formula:

   =IF(ISERR(A1/A2), "Error occurred", A1/A2)

This formula checks if dividing A1 by A2 results in an error. If it does, it returns “Error occurred”. Otherwise, it returns the result of the division.

Important Notes:

  • Make sure that your formulas reference the correct cells, as changes in your spreadsheet might cause misreferences.
  • `ISERR` does not detect `#N/A` errors. For checking all error types, including `#N/A`, consider using `ISERROR` instead.
  • If you specifically want to check for only `#N/A` errors, use the `ISNA` function.

By utilizing `ISERR`, you can make your Excel sheets more reliable and user-friendly, handling unexpected errors gracefully instead of showing unfriendly error codes to users.

Unlock Your Potential

Excel

Basic - Advanced

Access

Access Basic - Advanced

Power BI

Power BI Basic - Advanced

Help us grow the project