ExcelReady
CourseFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before the interview. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Function guides
  • Blog

Product

  • Certificate

Company

  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Comparisons
  3. VLOOKUP vs XLOOKUP: Which Should You Use?

VLOOKUP vs XLOOKUP: Which Should You Use?

By ExcelReady Team·Updated October 30, 2026·7 min read

The short answer

Use XLOOKUP if everyone who opens the file has Excel 2021, Excel 2024 or Microsoft 365: it can look left, defaults to an exact match and doesn't break when columns move. Use VLOOKUP when the file must work in older versions such as Excel 2019, or when a job test asks for it by name.

Key takeaways

  • XLOOKUP defaults to an exact match; VLOOKUP needs FALSE as its fourth argument.
  • XLOOKUP can return a column to the left of the lookup column. VLOOKUP cannot.
  • VLOOKUP uses a column number that breaks when columns are inserted; XLOOKUP points at the return column directly.
  • XLOOKUP needs Excel 2021, Excel 2024 or Microsoft 365. VLOOKUP works in every version.
  • Learn both: many job tests still ask for VLOOKUP, and modern workplaces use XLOOKUP.
On this page+
  1. VLOOKUP vs XLOOKUP at a glance
  2. How the syntax differs
  3. The same lookup, side by side
  4. When to use VLOOKUP
  5. When to use XLOOKUP
  6. Common mistakes with VLOOKUP and XLOOKUP
  7. Is XLOOKUP faster than VLOOKUP?
  8. Our recommendation
  9. Practise it

The short answer to VLOOKUP vs XLOOKUP: use XLOOKUP when everyone who opens the file has Excel 2021, Excel 2024 or Microsoft 365, and use VLOOKUP when the file must work in older versions or a test asks for it. XLOOKUP is simpler and safer, but VLOOKUP runs everywhere. This comparison is for anyone who knows one of the two and wants to know when to switch, especially if you have an Excel test coming up.

VLOOKUP vs XLOOKUP at a glance#

XLOOKUP fixes almost every weakness of VLOOKUP, at the cost of needing a newer version of Excel.

FeatureVLOOKUPXLOOKUP
Syntax=VLOOKUP(value, table, col_num, FALSE)=XLOOKUP(value, lookup_range, return_range)
Default matchApproximate (you must add FALSE)Exact
Look to the leftNoYes
Return columnA number you count (breaks if columns move)A range you select (adjusts automatically)
Built-in "not found" messageNo (wrap in IFERROR)Yes (4th argument)
Search from the bottom upNoYes (search mode -1)
Return several columns at onceNoYes (spills into neighbouring cells)
Excel versionsAll versionsExcel 2021, Excel 2024, Microsoft 365, Excel for the web

How the syntax differs#

VLOOKUP asks for a whole table and a column number. XLOOKUP asks for two separate ranges: where to look and what to bring back.

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

With VLOOKUP, the lookup values must sit in the first column of table_array, and col_index_num counts columns from that first column. With XLOOKUP, lookup_array and return_array can be any two columns of the same height, in any order.

XLOOKUP has three optional arguments:

  • if_not_found: text or a value to show instead of #N/A, for example "Not found".
  • match_mode: 0 exact (the default), -1 exact or next smaller, 1 exact or next larger, 2 wildcard match.
  • search_mode: 1 first to last (the default), -1 last to first, plus 2 and -2 for binary search on sorted data.

The same lookup, side by side#

The clearest way to compare them is to solve the same task on the same data. Here is a small staff list:

ABCD
1IDNameDepartmentSalary
2101PriyaFinance52,000
3102TomSales48,500
4103AishaOperations50,200
5104MateoSales46,900
6105LenaFinance55,300

Task 1: find a salary by ID (a right lookup)#

With the ID 104 in F2, both functions return 46,900:

Excel formula
=VLOOKUP(F2,A2:D6,4,FALSE)
=XLOOKUP(F2,A2:A6,D2:D6)

VLOOKUP needs the column number 4 and FALSE. XLOOKUP just points at the ID column and the salary column, and it uses an exact match by default.

Task 2: find an ID by name (a left lookup)#

With the name Aisha in F2, you want her ID from column A. The ID column is to the left of the name column, so VLOOKUP cannot do it without rearranging the data. XLOOKUP can:

Excel formula
=XLOOKUP(F2,B2:B6,A2:A6)

The result is 103. Before XLOOKUP, the usual answer was INDEX and MATCH; our comparison of VLOOKUP vs INDEX MATCH explains how that works.

Task 3: handle a name that isn't there#

If F2 holds Sam, both functions fail to find a match. VLOOKUP returns #N/A unless you wrap it. XLOOKUP has the message built in:

Excel formula
=IFERROR(VLOOKUP(F2,B2:D6,3,FALSE),"Not found")
=XLOOKUP(F2,B2:B6,D2:D6,"Not found")

Both show Not found. The XLOOKUP version is shorter, and it only catches the "no match" case, so a real problem such as a broken reference still shows up.

When to use VLOOKUP#

Use VLOOKUP when compatibility matters more than convenience. It is the right choice when:

  • The file goes to people on older Excel. Excel 2019, 2016 and earlier don't have XLOOKUP. They show #NAME? instead of a result.
  • A job test asks for VLOOKUP by name. Many tests still do, because it is the classic lookup skill. Our guide on how to pass an Excel test for a job interview covers what else these tests check.
  • You're editing an existing workbook full of VLOOKUPs. Keeping one style makes the file easier for colleagues to follow.
  • The lookup is simple and to the right, the table won't change shape, and you lock the range with dollar signs.

If you are new to it, the VLOOKUP function guide covers each argument with examples.

When to use XLOOKUP#

Use XLOOKUP for new work whenever everyone has Excel 2021, Excel 2024 or Microsoft 365. It is the better choice when:

  • You need to look left, such as finding an ID from a name.
  • Columns may be inserted or deleted. XLOOKUP references the return column directly, so it keeps pointing at the right data.
  • You want the last match, such as the most recent order for a customer. Use search_mode -1.
  • You want a clean "not found" message without nesting IFERROR.
  • You want several columns back at once. =XLOOKUP(F2,A2:A6,B2:D6) returns name, department and salary in one formula.

The XLOOKUP function guide has more examples, including wildcard matches. Analyst roles increasingly expect it; see the Excel skills every data analyst needs.

Common mistakes with VLOOKUP and XLOOKUP#

Most lookup errors come from a few habits that are easy to fix:

  1. Leaving out FALSE in VLOOKUP. Without it, VLOOKUP uses approximate match and can return the wrong row on unsorted data, with no error to warn you.
  2. Counting the column from column A of the sheet. VLOOKUP counts from the first column of table_array, not from the start of the sheet.
  3. Ranges of different heights in XLOOKUP. =XLOOKUP(F2,A2:A6,D2:D7) returns #VALUE! because the lookup and return ranges must be the same size.
  4. Not locking ranges before copying down. Use $A$2:$A$6 (press F4 on Windows or ⌘T on a Mac) so the ranges don't slide down as you fill with Ctrl+D or ⌘D.
  5. Sending an XLOOKUP file to someone on Excel 2019. They will see #NAME?. Check versions before you share.
  6. Expecting a case-sensitive match. Neither function is case-sensitive: "aisha" matches "Aisha".

Is XLOOKUP faster than VLOOKUP?#

For the small and medium tables used in everyday work and job tests, you won't notice a speed difference. Choose based on compatibility and clarity, not speed. On very large sorted data, XLOOKUP's binary search mode (search_mode 2) can help, but the data must be sorted for it to return correct results.

If you also use INDEX MATCH, our guide to INDEX MATCH vs XLOOKUP explains whether it is still worth learning. The same "old function vs newer, more flexible one" question comes up with SUMIF vs SUMIFS.

Our recommendation#

Learn VLOOKUP first, then switch to XLOOKUP for everyday work. VLOOKUP is still the lookup most job tests ask for, and it works in every version of Excel, so you need to be able to write it quickly and correctly. Once it makes sense, XLOOKUP takes minutes to learn, and it is the better default for new files on Microsoft 365, Excel 2021 or Excel 2024.

In short: XLOOKUP for new files on modern Excel, VLOOKUP for compatibility and tests that name it.

Practise it#

Try the XLOOKUP exercise on this page: it is a left lookup that VLOOKUP cannot do. Then practise VLOOKUP exact match in a live spreadsheet and work through the XLOOKUP lesson to get fast with both before your test.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

The ID column is to the left of the names, so VLOOKUP can't do this. In G2, use XLOOKUP to find the ID of the employee named in F2.

fx
ABCDEFGH
1
ID
Name
Department
Salary
Name
ID
2
101
Priya
Finance
52000
Aisha
3
102
Tom
Sales
48500
4
103
Aisha
Operations
50200
5
104
Mateo
Sales
46900
6
105
Lena
Finance
55300
7
8
9

Tip: XLOOKUP needs three parts: what to find (F2), where to look (the names), and what to bring back (the IDs).

Practise this in a lesson

LessonVLOOKUP exact matchPull product names and prices from a catalog with VLOOKUP, and lock the table so the formula fills down cleanly.LessonXLOOKUPLook up in any direction with XLOOKUP and show a friendly message when nothing matches.Function guideVLOOKUPLearn VLOOKUP with clear examples, the 4 most common mistakes, and a live practice exercise you can try in your browser.Function guideXLOOKUPXLOOKUP explained with real examples: exact matches, looking left and custom not-found messages, plus a live exercise to try now.

Frequently asked questions

Is XLOOKUP better than VLOOKUP?

+

For most new work, yes. XLOOKUP is easier to read, defaults to an exact match, can look left and keeps working when columns are inserted. VLOOKUP is still the safer choice when the file must open in Excel 2019 or older.

Will VLOOKUP be removed from Excel?

+

There is no sign of that. Microsoft keeps old functions so existing workbooks keep working, and VLOOKUP is used in millions of files.

Does XLOOKUP work in Excel 2016 or 2019?

+

No. XLOOKUP is available in Excel 2021, Excel 2024, Microsoft 365 and Excel for the web. In Excel 2019 or older, a file that uses XLOOKUP shows a #NAME? error.

Can XLOOKUP replace INDEX MATCH?

+

In most cases, yes. XLOOKUP does the same left lookups and two-way lookups with one function. INDEX MATCH is still useful when you need a formula that works in every version.

Which lookup should I use in an Excel job test?

+

Use the function the task names. If it doesn't name one, VLOOKUP is the safest choice when you don't know which Excel version the test uses, and XLOOKUP is fine on Microsoft 365.

Sources

  • XLOOKUP function - Microsoft Support
  • VLOOKUP function - Microsoft Support

Written and checked by the ExcelReady Team. First published October 30, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. VLOOKUP vs XLOOKUP at a glance
  2. How the syntax differs
  3. The same lookup, side by side
  4. When to use VLOOKUP
  5. When to use XLOOKUP
  6. Common mistakes with VLOOKUP and XLOOKUP
  7. Is XLOOKUP faster than VLOOKUP?
  8. Our recommendation
  9. Practise it

Keep reading

Comparisons· 7 min read

VLOOKUP vs INDEX MATCH: Differences and When to Use Each

Use VLOOKUP for quick lookups to the right in a table that won't change shape. Use INDEX MATCH when you need to look left, when columns may be inserted, or when you want a two-way lookup. Both work in every version of Excel, so INDEX MATCH is the flexible choice when XLOOKUP isn't available.

Comparisons· 7 min read

INDEX MATCH vs XLOOKUP: Is INDEX MATCH Still Worth Learning?

Yes, INDEX MATCH is still worth learning. XLOOKUP is shorter and has a built-in "not found" message, so use it for new files when everyone has Excel 2021, Excel 2024 or Microsoft 365. INDEX MATCH works in every version, appears in many existing workbooks, and still comes up in interviews.

Comparisons· 8 min read

SUMIF vs SUMIFS: What's the Difference?

SUMIF adds up numbers that meet one condition. SUMIFS adds up numbers that meet one or more conditions, and every condition must be true. The other big difference is argument order: SUMIF puts the range to add last, while SUMIFS puts it first. Both work in every current version of Excel.

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback. The first lessons are free, with no download.

Start learning for free