← Blog / Formulas

VLOOKUP vs XLOOKUP — When to Use Which

The debate between VLOOKUP and XLOOKUP is one of the most common in the Excel world. VLOOKUP has been around since the 1980s, while XLOOKUP arrived in 2020 with Microsoft 365. Both look up values in a table, but they differ in flexibility, power, and ease of use.

VLOOKUP: The Classic

VLOOKUP searches for a value in the first column of a range and returns a value from a specified column in that range.

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

Example: Find the price of "Widget A" from a product table:

=VLOOKUP("Widget A", A2:C100, 3, FALSE)

VLOOKUP Limitations

  • Can only look right — the lookup column must be the leftmost column
  • Uses a column index number — if you insert a column, the formula breaks
  • Returns only the first match
  • The FALSE parameter for exact match is counterintuitive

XLOOKUP: The Modern Replacement

XLOOKUP is designed to replace both VLOOKUP and HLOOKUP with a cleaner, more powerful syntax:

=XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode])

Same example with XLOOKUP:

=XLOOKUP("Widget A", A2:A100, C2:C100, "Not Found")

XLOOKUP Advantages

  • Can look in any direction — left, right, up, down
  • References return column directly — no column index to break
  • Built-in error handling with the if_not_found parameter
  • Supports exact match by default — no need for FALSE
  • Can search from last to first (reverse search)
  • Can return multiple columns at once

Head-to-Head Comparison

FeatureVLOOKUPXLOOKUP
Look left❌ No✅ Yes
Column referenceIndex numberDirect range
Default matchApproximateExact
Error handlingNeeds IFERRORBuilt-in
Multiple results❌ No✅ Yes
Reverse search❌ No✅ Yes
CompatibilityAll versions365/2021+ only

When to Use Which

Use VLOOKUP when:

  • You're sharing files with people who may use older Excel versions
  • Your lookup column is already the leftmost column
  • You're working in Google Sheets (which supports VLOOKUP natively)

Use XLOOKUP when:

  • You have Microsoft 365 or Excel 2021+
  • You need to look up values to the left
  • You want cleaner, more maintainable formulas
  • You need built-in error handling

Practical Example: Employee Lookup

Suppose you have employee IDs in column C and names in column A (to the left). With VLOOKUP, you'd need INDEX-MATCH. With XLOOKUP:

=XLOOKUP(1042, C2:C500, A2:A500, "Employee not found")

Clean, readable, and handles errors automatically.

The Verdict

If your organisation uses Microsoft 365, XLOOKUP is the clear winner. It's simpler, more powerful, and eliminates the common pitfalls of VLOOKUP. However, knowing both is essential — VLOOKUP remains the most widely-used lookup function globally, and you'll encounter it in virtually every shared spreadsheet.

Want to master Excel with AI?

My upcoming Complete Excel Guide with AI Integration course covers everything from formulas to AI-powered workflows.

Explore Courses