Function reference · Logical

IFERROR

Returns a fallback value when a formula would otherwise show an error.

IFERROR(value, [value_if_error])

IFERROR catches #N/A, #DIV/0! and friends and substitutes something presentable. It is what turns a working sheet into a shareable one.

Arguments

ArgumentRequiredWhat it does
value Yes The formula that might error.
value_if_error Optional What to show instead. Omitted, you get a blank.

Worked example

RegionRepSales
WestAna1200
EastBen900
WestCara1500
NorthDan600
EastEve1100
=IFERROR(VLOOKUP("Zoe", B1:C6, 2, FALSE), "No such rep")

Returns No such rep.

Zoe is not in the list, so instead of #N/A the cell explains itself.

Gotchas

Related functions