IFNA
Shows your own result when a lookup finds nothing.
- Handle errors
- Reference only, no exercise yet
Worked example
D2=IFNA(VLOOKUP(C2,A2:B3,2,FALSE),"No desk")
| Row | A | B | C | D |
|---|---|---|---|---|
| 1 | Person | Desk | Find | Desk |
| 2 | Ben | 2-14 | Zara | No desk |
| 3 | Mia | 3-02 |
Only #N/A is replaced. Other errors still show, so you can fix them.
How to write it
=IFNA(value, value_if_na)
value- The formula to try, usually a lookup.
value_if_na- What to show when it gives #N/A.
Watch out for
- It does not catch #REF! or #DIV/0!. That is the point of it.
- Give a clear message, not an empty text, so nobody reads it as zero.