Lessons / Reliable lookups · Lesson 4 of 4
Missing lookups
Distinguish a genuine zero from a missing lookup 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=XLOOKUP(C2,A2:A4,B2:B4,"Not sold")
| Row | A | B | C | D |
|---|---|---|---|---|
| 1 | Item | Price | Find | Price |
| 2 | X-1 | 12 | X-9 | Not sold |
| 3 | X-4 | 30 | ||
| 4 | X-6 | 22 |
The fourth part of XLOOKUP is what to show when nothing matches.
The exercises in this lesson are part of Pro
Pro isn’t on sale yet. The worked example is open to everyone.
Practise it
6 exercisesNext lesson · Text and dates
Open the lessonClean and extract text
Clean imported names or extract a defined prefix.