How to use VLOOKUP in Excel

Learn how to use VLOOKUP in Excel to find data in a table, with syntax, argument explanations, a worked example, and common mistakes to avoid.

Syntax

=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])

Arguments

What VLOOKUP does

VLOOKUP searches down the first column of a table for a specific value, then returns a value from another column in that same row. You give it four pieces of information: what to find, the table range, the column number to retrieve, and whether you need an exact match.

A worked example

Here is a small product catalog. In cell C5, the formula searches the table for the product code in B5 and returns its price from column 3.

CodeItemPrice
T-10T-Shirt20
H-20Hoodie45
J-30Jacket80
FindH-20

Formula: =VLOOKUP(B5,A2:C4,3,FALSE) → 45

Counting column numbers

The third argument tells Excel which column to pull data from. Always count from left to right starting at 1 for the first column of your table. In A2:C4, Code is 1, Item is 2, and Price is 3. To return the item name instead of the price, change the column number to 2: =VLOOKUP(B5,A2:C4,2,FALSE).

Common mistake: omitting FALSE

If you leave out the fourth argument, Excel defaults to TRUE for an approximate match. On unsorted tables, this can quietly return the wrong row. Always use FALSE when you need an exact match. Remember also that VLOOKUP can only search the leftmost column of your table—it cannot look to the left.

Related guides

SUM