VLOOKUP in Excel: Exact and Approximate Match Examples

VLOOKUP in Excel tutorial formula and spreadsheet example

What is VLOOKUP in Excel?

VLOOKUP searches the first column of a table and returns information from a column to its right. Use FALSE for an exact match unless you deliberately need an approximate match.

VLOOKUP syntax

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

Practice dataset

Enter the following sample values in cells A1 onward. Keep text and numerical data types consistent.

Employee ID Name Department Salary
101 Ava Sales 52000
102 Liam Marketing 58000
103 Noah IT 65000
104 Emma HR 60000
105 Olivia Finance 72000

Example 1: Find an employee department

=VLOOKUP(103,A2:D6,3,FALSE)

Expected result: IT. The third column of the table contains the department.

Example 2: Get an employee salary

=VLOOKUP(105,A2:D6,4,FALSE)

Expected result: 72000. The fourth column returns the salary.

Example 3: Use a cell reference

=VLOOKUP(F2,$A$2:$D$6,2,FALSE)

Expected result: Depends on F2. Enter 104 in F2 to return Emma.

Example 4: Handle a missing ID

=IFNA(VLOOKUP(999,A2:D6,2,FALSE),"Not found")

Expected result: Not found. IFNA replaces the missing-match error with readable text.

Common VLOOKUP mistakes

  • Omitting FALSE can cause approximate matching and unexpected results.
  • VLOOKUP cannot directly return a column to the left of the lookup column.
  • An incorrect column index can cause #REF!; confirm the table width.
  • Numbers stored as text may not match numeric IDs.

Practice exercises

Recreate the table in Excel, enter the formulas above and change one criterion or input cell. Check which rows qualify and confirm the result manually. Then intentionally enter a missing value to test error handling.

Frequently asked questions

Is VLOOKUP exact by default?

No; specify FALSE or 0 for an exact match.

When should I use approximate match?

Use TRUE only for suitable sorted lookup tables, such as graduated bands.

Continue learning

Visit the Excel Functions module and our XLOOKUP tutorial for related guides.

External reference: Microsoft Support — VLOOKUP documentation.