ProofDrill

Lessons / Decision logic · Lesson 3 of 4

IFERROR fallbacks

Wrap a lookup so a missing ID returns a documented fallback.

  1. 1See itThe worked example.
  2. 2Try itIn a real sheet. Hints if you need them.
  3. 3Do it on your ownWithout hints, to make the skill strong.
How many books are on shelf S-9?

D2=IFERROR(XLOOKUP(C2,A2:A4,B2:B4),"Not listed")

RowABCD
1ShelfBooksFindResult
2S-142S-9Not listed
3S-257
4S-338

IFERROR shows your own wording when the formula inside it fails.

Part of Pro

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 exercises
Next lesson · Decision logic

Nested IF bands

Classify a value into three bands.

Open the lesson