ExcelFluent
Start free

How to use VLOOKUP in Excel

VLOOKUP finds a value in the first column of a table and returns something from the same row: a salary from an employee ID, a price from a product code. It is the most common lookup in Excel tests.

Syntax

=VLOOKUP(lookup_value, table_array, col_index_num, FALSE)
lookup_value
What you are looking for, usually a cell such as F2.
table_array
The table to search. The value must be in its first column.
col_index_num
Which column of that table to return: 1 is the first column, 2 the second, and so on.
FALSE
Exact match. Leave it out and VLOOKUP does an approximate match, which gives wrong answers on unsorted data.

Try it now · free, no sign-up

Look up a salary by ID

  1. In G2, look up the salary for the ID in F2. Salary is the 4th column of A2:D7.
  2. In H2, return the employee's name instead. Which column number is Name?
  3. Change F2 to E106 and watch both answers update.
ABCDEFGH
1IDNameDepartmentSalaryFind IDSalaryName
2E104MeganFinance72,000.00E103
3E101CarlosHR58,000.00
4E106PriyaIT91,000.00
5E103TylerSales54,000.00
6E102JasmineIT86,000.00
7E105EthanFinance67,000.00

Loading the live spreadsheet…

How VLOOKUP works, step by step

Read =VLOOKUP(F2,A2:D7,4,FALSE) as: "find the value in F2 in the first column of A2:D7, then go across to column 4 of that row and return what is there, and only accept an exact match."

The column number counts from the left edge of the table you selected, not from column A of the sheet. If your table starts at column C, column C is 1.

Copying VLOOKUP down a column

When you copy a VLOOKUP down to look up many IDs, lock the table with $ signs so it does not slide down with the formula: =VLOOKUP(F2,$A$2:$D$7,4,FALSE). Press F4 while the cursor is on the range to add them.

When to use something else

VLOOKUP can only look to the right of the first column. To return a value from a column on the left (an ID from a name), use INDEX MATCH or XLOOKUP. XLOOKUP is easier but only exists in Excel 2021 and Microsoft 365.

Common mistakes

#N/A
The value was not found. Check for typos and extra spaces (TRIM fixes those), and numbers stored as text. Wrap the formula in IFERROR to show a friendly message instead.
Wrong answer with no error
Almost always a missing FALSE. Without it VLOOKUP returns the nearest match on unsorted data.
#REF!
The column number is bigger than the table. A 4-column table cannot return column 5.
Breaks when copied
The table range moved. Lock it with $A$2:$D$7.

Practice it until it sticks

ExcelFluent has 42 hands-on lessons, from SUM to XLOOKUP, plus 5 real work projects and a final challenge that uses everything. Every answer is checked instantly. The first 5 lessons and 1 work project (an invoice with tax) are free.

Start the free lessons → Open the full VLOOKUP lesson

Frequently asked questions

What does FALSE mean in VLOOKUP?

FALSE (or 0) asks for an exact match. TRUE or leaving it out asks for an approximate match, which is only right for sorted band tables such as tax brackets or grade boundaries.

Why does VLOOKUP return #N/A when the value is there?

Usually hidden spaces, or a number stored as text in one place and as a number in the other. Compare the two cells with =F2=A5; if it says FALSE, they are not the same.

Can VLOOKUP look to the left?

No. Use INDEX MATCH or XLOOKUP for that.

Is XLOOKUP better than VLOOKUP?

XLOOKUP is more flexible, but VLOOKUP works in every Excel version and is still the one most tests ask for. Learn both.

Related practice