Lookup Functions
Intermediate

XLOOKUP to the left, with a default

Search one column, return from another on either side, and say what to show when nothing matches.

Task:

The supplier list has the account code in column A and the supplier name in column B. Accounts sent you names; in E2:E5 return each one's code, or Unknown when the supplier is not on the list.

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.

5 rows × 5 columns4 cells you fill in
ABCDE
1CodeSupplierNameCode
2SUP-01Arcadia PaperBrindle Inks
3SUP-02Brindle InksArcadia Paper
4SUP-03Calder OfficeDorset Print
5SUP-04Delph TonerDelph Toner
What this exercise teachesMay contain the answer

XLOOKUP takes the search column and the return column separately, so left-hand lookups need no INDEX/MATCH, and its built-in fallback replaces the IFERROR wrapper. Dorset Print is not a supplier yet — Unknown says so plainly.