Lookup Functions
Advanced

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.

Learning Objectives:

  • Learn XLOOKUP function
  • Understand modern lookup techniques
  • Practice versatile data retrieval
Hints

Solve without hints for +5 XP

Interactive Spreadsheet

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.

ABCD
1Product IDProduct NameCategoryPrice
2P001LaptopElectronics899
3P002ChairFurniture149
4P003PhoneElectronics599
5P004DeskFurniture299
6
7Search IDNamePrice
8P002
9P005
What this exercise teaches (contains 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.

Functions used here