New cohort starts 11 January 2027 · Limited seats · Apply now

VLOOKUP vs XLOOKUP: Which Should You Use in 2026?

Jun 17, 2026 | Excel

VLOOKUP vs XLOOKUP is one of the first questions every Excel learner asks. Both find a value in one place and bring back related information from another, such as finding a customer ID and returning their branch. XLOOKUP is the modern replacement, but VLOOKUP is still everywhere in older workbooks, so a good analyst knows both.

An instructor teaching a live online class

The quick answer

Use XLOOKUP for anything new if your Excel has it (Microsoft 365, Excel 2021 and later, and Excel for the web). Learn VLOOKUP too, because you will open files that use it and colleagues on Excel 2019 or earlier cannot use XLOOKUP.

The syntax side by side

=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
=XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode])

Say column A holds customer IDs, column B the customer name and column D the branch. To find the branch for the ID in cell G2:

=VLOOKUP(G2, A2:D500, 4, FALSE)
=XLOOKUP(G2, A2:A500, D2:D500, "Not found")

5 key differences in VLOOKUP vs XLOOKUP

1. Exact match by default

VLOOKUP does an approximate match unless you type FALSE as the last argument, which causes many silent errors. XLOOKUP does an exact match by default.

2. It can look left

VLOOKUP can only return values to the right of the lookup column. XLOOKUP returns from any column, left or right.

3. Inserting columns doesn’t break it

VLOOKUP uses a column number (4 above). Insert a column and it returns the wrong data. XLOOKUP points at the return range itself.

4. Built-in “not found” message

XLOOKUP’s fourth argument replaces the #N/A error with your own text, so you don’t need IFERROR.

5. Search from the bottom

XLOOKUP can search last-to-first (search_mode -1), handy for finding a customer’s most recent transaction.

Feature VLOOKUP XLOOKUP
Default match Approximate Exact
Look left No Yes
Safe when columns are inserted No Yes
Custom “not found” text Needs IFERROR Built in
Works in Excel 2019 and older Yes No

Common errors and fixes

  • #N/A everywhere: extra spaces or numbers stored as text. Clean with TRIM and VALUE first (see data cleaning in Excel).
  • Wrong values with VLOOKUP: you forgot FALSE, so Excel matched the nearest value.
  • #REF! with VLOOKUP: the column number is larger than the table.
  • #VALUE! with XLOOKUP: lookup_array and return_array are different sizes.

What about INDEX and MATCH?

INDEX/MATCH does most of what XLOOKUP does and works in every Excel version, so it is a good fallback when you share files with people on older Excel.

Read Microsoft’s official pages for XLOOKUP and VLOOKUP for every option.

FAQs

Is VLOOKUP obsolete?

No. It still works and appears in many existing workbooks, so you need to read and fix it. For new work, XLOOKUP is safer.

Why doesn’t my Excel have XLOOKUP?

You are probably on Excel 2019 or earlier. Use INDEX/MATCH, or Excel for the web, which includes XLOOKUP.

Which one do interviewers test?

Both come up. Being able to explain the differences above is a quick way to show you understand Excel, not just memorise formulas.

Keep reading

Learn this live with Datamac

Datamac’s 12-month data analytics internship teaches Excel, SQL, Python, Power BI, Tableau and machine learning in live online classes twice a week, with real Nigerian datasets, two capstones and career support.

Apply for the internship · Compare courses · Ask a question on WhatsApp

Learn this live in the new cohort.

Live classes twice a week, real Nigerian datasets, two capstones and career support.

Apply for new CohortCompare courses

Keep reading