VLOOKUP
Lookup practice round
Module 7 of 12 Spreadsheet in your browser
Lesson concept What you'll do
1 / 5Bring in two things for each order: a price and a customer name.
Two lookups, one per column. Use what you know: XLOOKUP, a not-found message, and looking left.
On your own New data, same idea
For each order, fill in the price in D2:D7 (show "Not found" if the product isn't on the price list) and the customer's name in E2:E7.
Typing formulas is easiest on a computer with a keyboard.
A1
| A | B | C | D | E | F | G | H | I | J | K | L | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Order | Product | Customer ID | Price | Customer | Product | Price | Name | Customer ID | |||
| 2 | ORD-2380 | Whiteboard | CU322 | Monitor Stand | 27.5 | Sam Novak | CU487 | |||||
| 3 | ORD-9589 | USB-C Hub | CU292 | Headset | 32.99 | Isla Walsh | CU292 | |||||
| 4 | ORD-3456 | Desk Organiser | CU409 | Office Chair | 204.99 | Victor Tanaka | CU295 | |||||
| 5 | ORD-1112 | Headset | CU409 | Bookshelf | 82.49 | Mateo Novak | CU409 | |||||
| 6 | ORD-5454 | Office Chair | CU292 | USB-C Hub | 34.5 | Hiro Tanaka | CU322 | |||||
| 7 | ORD-3951 | Monitor Stand | CU487 | Notebook A5 | 5.99 | Wen Rossi | CU433 | |||||
| 8 | Filing Cabinet | 118.25 | ||||||||||
| 9 | Desk Organiser | 17.25 | ||||||||||
| 10 | ||||||||||||
| 11 | ||||||||||||
| 12 | ||||||||||||
| 13 |
Type to enter a value or a formula starting with =. F2 edits, F4 adds $ to a reference.
How VLOOKUP and XLOOKUP and INDEX and MATCH works
What is this round for?
Real sheets mix several lookups at once. This round puts together what the lookup lessons covered: two lookup tables, a value that isn't in one of them, and a return column to the left of the search column.
Which lookup should I use?
XLOOKUPdoes everything here: it can look left and has a not-found part. Use it if your Excel has it (365 and 2021 or newer).VLOOKUPworks for the price, wrapped inIFNAfor the missing product. It can't return the name, because the name is to the left of the ID.INDEXandMATCHwork everywhere, in any direction.
What should I check before copying down?
- Every lookup range is locked with $.
- Each lookup searches the right column and returns the right one.
- A missing value shows "Not found", not #N/A.
What next?
Try the Lookup & Merge tool on your own files: it writes these formulas for your data and explains every value it couldn't match.
Know someone fighting with a spreadsheet? Send them this page.