IFNA
returns value if not #N/A, otherwise alternate · from excel · excel: verified match · sheets: not yet compared
signature
IFNA(value, value_if_na)
returns: any
| argument | required |
|---|---|
| value | required |
| value_if_na | 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 |
| 2 | 20 | 4 |
| 3 | 30 | 6 |
| 4 | 40 | 8 |
| 5 | 50 | 10 |
fx
=IFNA(VLOOKUP(E1, A1:B10, 2, FALSE), "missing") 0 errors
error values observed from the engine — each with a call that produces it.
| error | produced by |
|---|---|
| #ERROR! | =IFNA(1,2,3) |