Lessons / Decision logic · Lesson 3 of 4
IFERROR fallbacks
Wrap a lookup so a missing ID returns a documented fallback.
- 1See itThe worked example.
- 2Try itIn a real sheet. Hints if you need them.
- 3Do it on your ownWithout hints, to make the skill strong.
D2=IFERROR(XLOOKUP(C2,A2:A4,B2:B4),"Not listed")
| Row | A | B | C | D |
|---|---|---|---|---|
| 1 | Shelf | Books | Find | Result |
| 2 | S-1 | 42 | S-9 | Not listed |
| 3 | S-2 | 57 | ||
| 4 | S-3 | 38 |
IFERROR shows your own wording when the formula inside it fails.
The exercises in this lesson are part of Pro
Pro isn’t on sale yet. The worked example is open to everyone.
Practise it
5 exercisesNext lesson · Decision logic
Open the lessonNested IF bands
Classify a value into three bands.