Syntax
| Parameter | Description |
|---|---|
| value | Parameter of the IFERROR function. |
| value_if_error | Parameter of the IFERROR function. |
Examples
Handle VLOOKUP not found
=IFERROR(VLOOKUP(A2, D:E, 2, FALSE), "Not Found")
Prevent division by zero
=IFERROR(B2/C2, 0)
Return blank on error
=IFERROR(INDEX(B:B, MATCH(A2, C:C, 0)), "")
Common Errors
IFERROR catches ALL errors, including ones that indicate real problems. Be specific with IFNA when you only want to catch #N/A.
Tips
If you only want to handle "not found" errors, use IFNA instead. IFERROR can mask genuine formula errors you should fix.
=IFERROR(VLOOKUP(A1,Table1,...), IFERROR(VLOOKUP(A1,Table2,...), "Not in either table")) tries a backup lookup.
Avoid wrapping everything in IFERROR. Only use it where errors are expected, like lookups that legitimately might not find a match.
Try IFERROR in Viztab
Import your data and use IFERROR with 370+ other formulas. No signup required.
Open Viztab