Spreadsheets, Level Two: XLOOKUP, Pivot Tables, Conditional Formatting
⚠️ Version note:
XLOOKUPexists in Microsoft 365, Excel 2021+ and Google Sheets. On older Excel you'll needINDEX/MATCH— covered in step 3. Menu paths move between versions; each step says what to look for. Last checked: 24 July 2026.
The wall everyone hits
You can build a sheet. You can write SUMIF. And then a real task arrives:
Here's a list of 400 orders with customer IDs. Here's a separate list of customers with their countries. How much did we sell in Germany?
Nothing in TL-01 does that, because the answer lives across two tables, and joining tables is where spreadsheets stop being a calculator and start being a database you can see.
This lesson is three tools. Each solves one problem that has no reasonable manual workaround.
What you'll have at the end
- Two real datasets joined, with the lookup working correctly
- A pivot table that answers a question you'd otherwise compute by hand
- Conditional formatting that makes exceptions visible without you looking for them
- A sheet that stays correct when the data grows
Get your data into a shape that works (8 min)
Almost every "the formula won't work" problem is a data-shape problem. Before anything else:
One row = one observation. One column = one thing. One cell = one value.
| ❌ Breaks everything | ✅ Works |
|---|---|
| Merged cells | No merges, ever |
Jan / Feb / Mar as separate columns | A Month column with values in rows |
"12.50 GBP" in one cell | 12.50 in Amount, GBP in Currency |
| Blank rows separating groups | No blanks — add a group column instead |
| Headers on row 4 with a title above | Headers on row 1 |
| Totals sitting inside the data | Totals outside, or produced by a pivot |
That last one causes real damage: a total row inside your range gets included in the next total, silently doubling it.
Then make it a Table. Select your data → look for Format as Table (Excel) or Format → Convert to table (Sheets).
Worth thirty seconds because:
- Ranges grow automatically — new rows are included in every formula pointing at the table
- You get filter buttons free
- You can refer to
Orders[Amount]instead ofB2:B400, which is readable and doesn't break
✅ Check: your data is one header row, no merges, no blanks, no totals inside, and formatted as a table.
The rest of this walkthrough is for members
Behind this: the full step-by-step, the exercise with a verifiable output, and the downloadable cheatsheet. Everything you've read above stays free, always.