Lookup FunctionsAdvanced

XLOOKUP Function

The lookup that handles a missing value without a second function wrapped around it.

Task:

Two product IDs came back from a stocktake, and one of them is not in the catalogue at all. Look up the name in column B and the price in column C, and show Not Found for the ID that has no match rather than letting an error through.

Interactive Spreadsheet

Hints

+5 XPno-hints bonus

Solve it on your own to keep the bonus. Each hint gets one step closer to the formula.

The data in this exercise

This is the grid you start with. Cell references in the task — B6, C2 — point at the row numbers and column letters below.

9 rows × 4 columns4 cells you fill in
ABCD
1Product IDProduct NameCategoryPrice
2P001LaptopElectronics899
3P002ChairFurniture149
4P003PhoneElectronics599
5P004DeskFurniture299
6
7Search IDNamePrice
8P002
9P005
What this exercise teachesMay contain the answer

XLOOKUP is Excel's modern lookup function that combines the best of VLOOKUP, HLOOKUP, and INDEX-MATCH with additional features like built-in error handling.