VLOOKUP in Excel: examples and practice
VLOOKUP finds a value in the first column of a table and gives back the value from a column you choose. For example, =VLOOKUP("K20",A2:C5,3,FALSE) finds part K20 and gives back its price from column 3.
Syntax
=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
lookup_value- The value to find in the first column of the table.
table_array- The table. The first column must contain the lookup value.
col_index_num- The number of the column with the result. The first column of the table is 1.
range_lookup- FALSE for an exact match. TRUE (or empty) finds the next smaller value in a sorted list.
Examples
Example data
| A | B | C | |
|---|---|---|---|
| 1 | Code | Part | Price |
| 2 | K10 | Brake pad | 24 |
| 3 | K20 | Oil filter | 9.5 |
| 4 | K30 | Spark plug | 6 |
| 5 | K40 | Wiper blade | 14 |
| Formula | Result | What it does |
|---|---|---|
=VLOOKUP("K20",A2:C5,3,FALSE) | $9.50 | Finds K20 in the first column and gives back the price from column 3. |
=VLOOKUP("K30",A2:C5,2,FALSE) | Spark plug | The same search, but column 2 gives back the name of the part. |
=VLOOKUP("K99",A2:C5,2,FALSE) | #N/A | K99 is not in the table. VLOOKUP gives #N/A. Use IFERROR to show a message. |
Try it
In cell F2, use VLOOKUP to find the price of the part code in E2.
Show the solution
=VLOOKUP(E2,A2:C5,3,FALSE) → $14.00
Common mistakes
Missing FALSE
Without FALSE, VLOOKUP looks for an approximate match. In an unsorted list, you get a wrong price and no error. Add FALSE for exact matches.
The result is left of the lookup column
VLOOKUP only looks to the right. To find the code from the part name, use XLOOKUP or INDEX and MATCH.
Column number breaks after an insert
When you insert a column in the table, 3 still means column 3. The result now comes from the wrong column. Check col_index_num.

Practice this in a story
A short lesson from a real job. We show you each step, then you do it yourself.
Part names and prices · Module 7 · Lookup · 5 min
Kofi knows every part number by heart. But not today. He has a cold, and eight orders are waiting. The parts list is on the right. You help him find the names and the prices.
Practice this in a storyMore lessons with VLOOKUP
- Shipping rates by weight · Module 7 · VLOOKUP with TRUE