| A | B | C | D | E | F | G | H | I | J | K | L | M | N | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Code | Product | Price | Code | Price | |||||||||
| 2 | A101 | Kettle | 24.99 | A103 | 45 | |||||||||
| 3 | A102 | Toaster | 19.5 | |||||||||||
| 4 | A103 | Blender | 45 | |||||||||||
| 5 | A104 | Mixer | 89 | |||||||||||
| 6 | ||||||||||||||
| 7 | ||||||||||||||
| 8 | ||||||||||||||
| 9 | ||||||||||||||
| 10 | ||||||||||||||
| 11 | ||||||||||||||
| 12 | ||||||||||||||
| 13 | ||||||||||||||
| 14 | ||||||||||||||
| 15 | ||||||||||||||
| 16 | ||||||||||||||
| 17 | ||||||||||||||
| 18 | ||||||||||||||
| 19 | ||||||||||||||
| 20 | ||||||||||||||
| 21 | ||||||||||||||
| 22 | ||||||||||||||
| 23 | ||||||||||||||
| 24 | ||||||||||||||
| 25 | ||||||||||||||
| 26 | ||||||||||||||
| 27 | ||||||||||||||
| 28 | ||||||||||||||
| 29 | ||||||||||||||
| 30 |
More to try
Each of these works on the sheet. Press one to put it in F2.
- gives Blender
Column 2 of the table returns the product name instead.
- gives Not found
A code that is not in the list gives #N/A unless you catch it.
- gives 45
The same lookup with XLOOKUP, which needs no column number.
Common mistakes
- Leaving out FALSE. Without it Excel looks for an approximate match and can return the wrong row.
- Looking to the left. VLOOKUP can only return columns to the right of the one it searches; use XLOOKUP, or INDEX with MATCH.
- Counting columns by hand. Insert a column into the table and the number 3 now points at the wrong one.
Practise it
Look up with VLOOKUP →Related functions