How to use VLOOKUP in Excel
VLOOKUP searches the first column of a table for a value and returns something from the same row — the price of a product code, the name of an employee ID. It's the classic lookup function that almost every Excel job test asks about.
Syntax
=VLOOKUP(lookup_value, table_array, col_index_num, FALSE)
lookup_value | What to look for, e.g. a product code in E2. |
table_array | The table, starting with the column you search in, e.g. A2:C100. |
col_index_num | Which column of the table to return: 1 = first column, 2 = second… |
range_lookup | FALSE for an exact match (what you want 99% of the time). TRUE or omitted = approximate match. |
Examples
=VLOOKUP(E2, A2:C100, 3, FALSE)Price (column 3) for the code in E2.=VLOOKUP(E2, $A$2:$C$100, 2, FALSE)Locked table, so the formula can be copied down.=IFERROR(VLOOKUP(E2, A2:C100, 3, FALSE), "Not found")Friendly message instead of #N/A.=VLOOKUP(B2, $G$2:$H$6, 2, TRUE)Approximate match: tax bracket or discount tier for an amount (sorted table).VLOOKUP step by step: find a price by product code
Say the price list is in A2:C100: the code in column A, the product name in B and the price in C. The code you want is in E2. Read the formula from left to right: what to look for (E2), where to look ($A$2:$C$100, locked with $ so it doesn't move when you copy the formula down), which column to bring back (3, the third column of the table) and how to match (FALSE, exact match).
=VLOOKUP(E2, $A$2:$C$100, 3, FALSE)The price of the product code in E2.=VLOOKUP(E2, $A$2:$C$100, 2, FALSE)The product name for the same code: only the column number changes.When TRUE is the right choice: tiers and bands
The last argument isn't always FALSE. With TRUE, VLOOKUP finds the largest value that is less than or equal to the one you look for. That's exactly what commission tiers, tax bands and grade boundaries need. The first column must be sorted from smallest to largest.
=VLOOKUP(B2, $G$2:$H$5, 2, TRUE)Commission rate for a sale: with 0, 10,000, 50,000 and 100,000 in G2:G5, a sale of 37,500 falls into the 10,000 tier.Look up a value on another sheet
The table can sit on a different sheet. Excel puts the sheet name in front of the range, in single quotes if the name contains a space.
=VLOOKUP(A2, Prices!$A:$C, 3, FALSE)The price from the sheet called Prices.=VLOOKUP(A2, 'Price list'!$A:$C, 3, FALSE)The same when the sheet name has a space.Common mistakes
- Wrong results without an error
- The 4th argument is missing, so VLOOKUP uses approximate match. Always write FALSE.
- #N/A error
- The value isn't in the first column — check spelling, extra spaces (TRIM) and numbers stored as text.
- Can't look to the left
- VLOOKUP only returns columns to the right of the search column. Use XLOOKUP or INDEX/MATCH.
- Breaks when a column is inserted
- The column number doesn't update. XLOOKUP and INDEX/MATCH don't have this problem.
- Table moves when copied
- Lock it with
$:$A$2:$C$100(press F4).
Frequently asked questions
What does FALSE mean in VLOOKUP?
Exact match: VLOOKUP returns a result only when it finds exactly the value you look for, and #N/A otherwise. Leave it out and VLOOKUP uses approximate match, which can quietly return the wrong row. For codes, IDs and names, always end with FALSE (or 0).
Why does VLOOKUP return #N/A when the value is in the table?
The two values aren't really identical: an extra space (TRIM fixes it), a number stored as text in one table and as a number in the other, or a range that doesn't start with the column you search in. All the causes are in the Excel errors guide.
Can VLOOKUP look to the left?
No. VLOOKUP always searches the first column of the table and returns a column to its right. To look left, use INDEX/MATCH or XLOOKUP.
Which is better, VLOOKUP or XLOOKUP?
XLOOKUP, if everyone who opens the file has Microsoft 365 or Excel 2021 and later: it matches exactly by default, looks in any direction and survives inserted columns. VLOOKUP still matters because it works in every version and almost every Excel job test asks about it.
How do I return several columns with one VLOOKUP?
Copy the formula across and change the column number, or let COLUMN() change it for you. Step-by-step examples: VLOOKUP for multiple columns.
Available in: All versions of Excel, Excel for the web, Google Sheets