
How to Use VLOOKUP in Excel: Step by Step
How to Use VLOOKUP in Excel: Step by Step
VLOOKUP has four arguments. Understanding each one is the key to using it correctly. Here is a complete step-by-step walkthrough with a real example.
VLOOKUP Syntax
=VLOOKUP(lookup_value, table_array, col_index_num, range_lookup)
- lookup_value: The value you are searching for
- table_array: The range containing your lookup table
- col_index_num: The column number within the table to return
- range_lookup: TRUE for approximate match, FALSE for exact match
A Practical Example
Suppose you have a product table in columns A and B: column A has Product IDs, column B has Product Names. In another location, cell D2 has a Product ID and you want cell E2 to show the corresponding Product Name.
Formula in E2: =VLOOKUP(D2, A:B, 2, FALSE)
- D2 is the lookup value (the Product ID you are searching for)
- A:B is the table to search (columns A and B)
- 2 means return the value from the 2nd column of the table (column B, the Name)
- FALSE means find an exact match
Always Use FALSE for Exact Matching
For looking up specific records like IDs, names, or codes, always use FALSE as the fourth argument. TRUE (or omitting the argument) finds an approximate match and assumes your lookup column is sorted — this gives wrong results if it is not sorted.
Lock the Table Array
When copying VLOOKUP down a column, the table array reference will shift if not locked. Use absolute references: =VLOOKUP(D2, $A:$B, 2, FALSE). The dollar signs keep the table reference fixed as you copy the formula to D3, D4, D5, and so on.
Using Entire Columns vs. Specific Ranges
Using full columns like A:B is convenient and handles growing data automatically. Specifying an exact range like $A$2:$B$500 is slightly faster in large workbooks. For most everyday use, full column references work perfectly well.