How to use vlookup in excel
Tutor 5 (55 Reviews)
Excel Tutor
Still stuck with a Excel question
Ask this expertAnswer
VLOOKUP is used to search for a value in the first column of a table and return a corresponding value from another column in the same row. It is one of the most common lookup functions in Excel.
What is VLOOKUP?
VLOOKUP stands for Vertical Lookup. It searches for a value vertically in the first column of a range and returns a value from a specified column in the same row.
Syntax of VLOOKUP
The syntax of VLOOKUP is:
VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
Explanation of each argument:
-
lookup_value: The value you want to search for.
-
table_array: The range of cells containing the data. The first column of this range is where Excel searches for the lookup value.
-
col_index_num: The column number in the table array from which to retrieve the value. The first column is 1.
-
range_lookup: Optional argument.
-
TRUE(or omitted) → finds an approximate match. -
FALSE→ finds an exact match.
-
How to Use VLOOKUP
-
Select the cell where you want the result.
-
Enter the VLOOKUP formula:
Example:
You have a table of employee IDs and names:
| Employee ID | Name |
|---|---|
| 101 | John |
| 102 | Sarah |
| 103 | Michael |
To find the name of employee ID 102:
=VLOOKUP(102, A2:B4, 2, FALSE)
-
102→ the lookup value. -
A2:B4→ the table range. -
2→ the column number containing the name. -
FALSE→ exact match required.
The result will be Sarah.
Important Tips for VLOOKUP
-
The lookup column must be the first column in your table array.
-
Use
FALSEfor exact matches to avoid errors. -
Avoid merged cells; they can cause VLOOKUP to fail.
-
VLOOKUP cannot look to the left. For leftward lookups, use INDEX-MATCH.
-
Large datasets may slow down VLOOKUP; consider XLOOKUP for modern Excel versions.
Example with Approximate Match
When dealing with ranges like grades or commissions:
| Score | Grade |
|---|---|
| 0 | F |
| 60 | D |
| 70 | C |
| 80 | B |
| 90 | A |
Formula to find the grade for a score of 75:
=VLOOKUP(75, A2:B6, 2, TRUE)
Result: C, because 75 falls between 70 and 80.
Differences Between Windows and Mac
-
Formula syntax and behavior are identical on Windows and Mac.
-
On Mac, use
Command + Shift + Enteronly for array formulas when required, but standard VLOOKUP works normally.
Common Errors
-
#N/A → Lookup value not found or range_lookup mismatch.
-
#REF! → col_index_num is greater than the number of columns in the table.
-
#VALUE! → col_index_num is not numeric.
Get Online Tutoring or Questions answered by Experts.
You can post a question for a tutor or set up a tutoring session
Answers · 1
Why is today function not working
Answers · 1
How to extract date from datetime in excel
Answers · 1
Why is the date value not working
Answers · 1
How to create a date formula
Answers · 1