Use =VLOOKUP(lookup_value, table_array, col_index_num, FALSE) to find a value in the first column of a range and return a value from another column in the same row.
=VLOOKUP("Pens", A2:B5, 2, FALSE)
You have a list of products with prices, or employees with departments, and you need to pull matching information into another table. VLOOKUP does that lookup for you without manual searching.
Step by step
- Click the cell where you want the result (e.g., D2).
- Type
=VLOOKUP(and then select or type the value you want to look up (e.g., A2). - Type a comma, then select the table range that contains the lookup column and the result column (e.g., $A$2:$B$10).
- Type a comma, then the column number of the result within that range (1 for the first column, 2 for the second, etc.).
- Type a comma, then
FALSEto require an exact match, and close the parenthesis. - Press Enter. Copy the formula down to other rows if needed.
Try it here
Examples
1 Find a price by product name
Looks up the product in A2 within the table A2:B5 and returns the value from the second column (Price). The FALSE ensures an exact match.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Product | Price | |||
| 2 | Pens | 4 | 4 | ||
| 3 | Pencils | 2 | |||
| 4 | Erasers | 1.5 | |||
| 5 | Notebooks | 3 | |||
| 6 |
=VLOOKUP("Pens", A2:B5, 2, FALSE)2 Look up department by employee ID
Finds the employee ID in column A and returns the department from column C. The table range A2:C5 includes both columns.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | ID | Name | Department | |||
| 2 | 101 | Ana | HR | Finance | ||
| 3 | 102 | Ben | IT | |||
| 4 | 103 | Cara | Finance | |||
| 5 | 104 | Dan | IT | |||
| 6 |
=VLOOKUP(103, A2:C5, 3, FALSE)3 Use a cell reference for the lookup value
Instead of hardcoding the lookup value, it refers to cell D2. This makes it easy to change the lookup value without editing the formula.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Code | Description | ||||
| 2 | X1 | Widget | X3 | Doohickey | ||
| 3 | X2 | Gadget | ||||
| 4 | X3 | Doohickey | ||||
| 5 | X4 | Thingamajig | ||||
| 6 |
=VLOOKUP(D2, A2:B5, 2, FALSE)Other ways to do it
| Formula | Use it when |
|---|---|
=INDEX(B2:B5, MATCH("Pens", A2:A5, 0)) | When the lookup column is to the right of the result column, or you need more flexibility. |
=XLOOKUP("Pens", A2:A5, B2:B5, "Not found") | In Excel 365 or 2021, XLOOKUP is simpler and handles missing values gracefully. |
Practise it
Free exercises with instant feedback. No sign-up needed.
Common mistakes
- The lookup column is not the first column in the table_array. VLOOKUP only searches the first column. Rearrange your data or use INDEX/MATCH or XLOOKUP instead.
- Forgetting the last argument or using TRUE, which gives approximate matches. Always use FALSE (or 0) for exact matches unless you specifically need an approximate match.
- The table_array is not locked with absolute references, so copying the formula shifts the range. Use $ signs (e.g., $A$2:$B$10) or convert the range to an Excel Table and refer to it by name.
Questions people also ask
Why does VLOOKUP return #N/A?
The lookup value was not found in the first column of the table. Check for typos, extra spaces, or mismatched data types (text vs. number).
Can VLOOKUP look to the left?
No, VLOOKUP only looks to the right. Use INDEX and MATCH or XLOOKUP for left lookups.
What does the col_index_num mean?
It is the column number within the table_array from which to return a value. 1 is the first column, 2 the second, and so on.
Functions used
Every formula on this page was checked by SheetSkill’s spreadsheet engine. All how-to guides