The ISERROR function in Google Sheets checks whether a value or formula result is an error, returning TRUE or FALSE. It's a fundamental building block for writing formulas that gracefully handle unexpected errors instead of displaying error codes to your users. Dive into our comprehensive guide to master its application.
Parameters
value: The value or formula you want to test for an error.
Step-by-Step Tutorial
-
Checking a formula for errors:
- Example:
=ISERROR(1/0) - Result:
TRUE
- Example:
-
Combining
ISERRORwithIF:- Example:
=IF(ISERROR(A1/B1), "Error", A1/B1) - Result: will return
"Error"if the division fails, otherwise the calculated value.
- Example:
Use Cases and Scenarios
- Error-Safe Formulas: Prevent error codes like
#DIV/0!or#N/Afrom displaying in reports. - Data Validation: Flag rows where a lookup or calculation failed.
- Dashboard Building: Ensure downstream calculations don't break when upstream data is missing or invalid.
Related Functions
IFERROR: Returns a specified value if a formula returns an error, otherwise returns the formula's result.ISNA: Checks whether a value is the#N/Aerror.ISERR: Checks whether a value is an error other than#N/A.
Related Articles
No related articles available for the ISERROR function.