Premium exercise · Excel lookup functions
XLOOKUP practice: a missing match
Practice Excel XLOOKUP's if-not-found argument by returning Not found when a name is missing from the list.
A2:B4 is the same kind of staff list. D2 is a name that is not on it.
In E2, use XLOOKUP and supply a result for a missing match. Return the text Not found instead of an error.
Dataset
Starter sheet. Cells marked formula are where the formula goes.
| Row | A | B | C | D | E |
|---|---|---|---|---|---|
| 1 | Name | Find | |||
| 2 | Ada | ada@example.com | Drew | Formula goes in E2. formula | |
| 3 | Ben | ben@example.com | |||
| 4 | Cara | cara@example.com |
Hint
The fourth argument of XLOOKUP is what to return when the lookup value is missing.
Explanation
This exercise practices XLOOKUP in Excel. The formula goes in E2.
XLOOKUP does not find Drew, so it returns the fourth argument instead of #N/A. That argument is the text Not found. Leave it out and the cell would show an error.
The interactive sheet and a worked solution are part of Formula Drills Premium. The instructions and starter data on this page are the full problem.