Excel functions / Lookup & reference

IFERROR

Shows a value of your choice instead of an error such as #N/A or #DIV/0!.

Syntax=IFERROR(value, value_if_error)

Arguments

valueThe formula to try.
value_if_errorWhat to show if that formula returns any error.

How it works

IFERROR runs a formula and, if it fails, shows something friendlier instead. It is most often wrapped around lookups, so a missing item shows "Not found" or 0 instead of #N/A.

Use it with care: it hides every error, including real mistakes such as a misspelt function.

Example

E2=IFERROR(VLOOKUP("Zed",B2:C5,2,FALSE),"None")
ABCDE
1RegionRepSales
2EastAna500None
3WestBen300
4EastCal250
5WestDee700
6

Result: None. Zed is not in the list, so the lookup fails and IFERROR shows None.

Tips

Practise IFERROR

Try it yourself in a real spreadsheet, with instant feedback on every answer.

Start the exercise

Related