IFERROR
returns value if no error, otherwise alternate · from excel · excel: verified match · sheets: not yet compared
signature
IFERROR(value, value_if_error)
returns: any
| argument | required |
|---|---|
| value | required |
| value_if_error | required |
examples
formula and result, taken from the engine's own test suite — every result below is asserted in CI, not written by hand.
| A | B | |
|---|---|---|
| 1 | 10 | 2 |
fx
=IFERROR(A1/B1, 0) 5 errors
error values observed from the engine — each with a call that produces it.
| error | produced by |
|---|---|
| #ERROR! | =IFERROR(1,2,3) |