Skip to content
BLOGS

XLOOKUP vs VLOOKUP vs INDEX MATCH: Which to Use in Excel

October 30, 2026 · Aditya Gupta

XLOOKUP vs VLOOKUP vs INDEX MATCH: Which to Use in Excel: cover illustration

In the XLOOKUP vs VLOOKUP debate, the short answer is: use XLOOKUP if everyone who opens the file has Excel for Microsoft 365, Excel 2021 or Excel 2024. It matches exactly by default, looks left or right, and doesn’t break when columns move. Use INDEX MATCH when the file must work in Excel 2016 or 2019. Keep VLOOKUP for quick, throwaway checks.

That’s the verdict. The rest of this guide shows the three formulas side by side on the kind of lookups bookkeepers and finance staff run every week: pulling an expense account from a vendor list, finding a budget figure in a two-way table, and picking a commission rate from a tier table. You’ll also see the mistakes that make lookups return wrong numbers without any error message, which is the outcome that really costs money.

The three lookup formulas at a glance

All three answer the same question: find this value in one column, and bring back the matching value from another column. They differ in how much you have to tell Excel and what can go wrong.

FeatureVLOOKUPINDEX + MATCHXLOOKUP
SyntaxVLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])INDEX(return_range, MATCH(lookup_value, lookup_range, 0))XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode])
Default match typeApproximate (TRUE)MATCH defaults to 1 (approximate), so you add 0Exact
Look to the leftNoYesYes
Survives inserted columnsNo (column number is hard-coded)YesYes
Built-in “not found” messageNo (wrap in IFERROR or IFNA)No (wrap in IFERROR or IFNA)Yes, fourth argument
Search from the bottomNoNot directlyYes, search_mode −1
Excel 2016 and 2019YesYesNo

Microsoft’s own VLOOKUP support page now suggests trying XLOOKUP, describing it as an improved version that works in any direction.

Which Excel versions have XLOOKUP?

According to Microsoft’s XLOOKUP function page, XLOOKUP is available in Excel for Microsoft 365 (Windows and Mac), Excel 2021, Excel 2024, and the Excel apps for iPad, iPhone and Android. The same page notes that XLOOKUP is not available in Excel 2016 or Excel 2019.

This is the single biggest reason INDEX MATCH is still worth knowing. If you send a workbook to a client, an auditor or a colleague still on Excel 2019, an XLOOKUP formula won’t work for them. Before you standardize on XLOOKUP across a shared workbook, check what everyone who touches it is running (File, then Account, shows the version).

How VLOOKUP works, and where it bites

VLOOKUP searches the first column of a range and returns a value from a column you specify by number. The examples in this guide assume your vendor list is formatted as an Excel Table (select it, press Ctrl+T, then name it on the Table Design tab) called Vendors, with four columns in this order: Name, ID, Account and Terms. Table references stay readable and don’t shift when you copy formulas. To pull the expense account for the vendor ID in cell B2 of your transaction list:

=VLOOKUP(B2, Vendors[[ID]:[Terms]], 2, FALSE)

The range starts at the ID column, so the 2 means “second column of the range”, which is Account. The FALSE asks for an exact match.

Three things go wrong with VLOOKUP regularly:

  • The default is approximate match. Microsoft’s documentation states that if you omit the last argument, VLOOKUP uses TRUE (approximate match), which assumes the first column is sorted. Leave out FALSE on an unsorted vendor list and you can get another vendor’s account back, with no error at all.
  • It can’t look left. The lookup value must be in the first column of the range. Vendor name sits to the left of ID, so with only the ID in hand, VLOOKUP can’t fetch the name.
  • The column number is hard-coded. Insert a “Tax ID” column between ID and Account, and the formula quietly starts returning tax IDs instead of expense accounts.

None of these produce an error message. That’s what makes them dangerous in month-end work.

Comparison of VLOOKUP and XLOOKUP. VLOOKUP defaults to approximate match, cannot look left, breaks when columns are inserted and works in Excel 2016 and 2019. XLOOKUP defaults to exact match, looks in any direction, has a not-found argument and can search from the bottom, but is not in Excel 2016 or 2019.
VLOOKUP and XLOOKUP compared on the points that matter for accounting lookups. Version details are from Microsoft Support.

How INDEX MATCH works

INDEX MATCH splits the job in two. MATCH finds the position of the lookup value in a column, and INDEX returns whatever sits at that position in another column. The same vendor-account lookup becomes:

=INDEX(Vendors[Account], MATCH(B2, Vendors[ID], 0))

The 0 at the end of MATCH asks for an exact match. Microsoft’s MATCH documentation confirms that if you leave it out, the default is 1, which finds the largest value less than or equal to the lookup value and expects ascending order. So INDEX MATCH has the same “forgot the exact-match flag” trap as VLOOKUP, just in a different place.

Because you point at the return column directly, INDEX MATCH can look left (return the vendor name using the ID) and doesn’t care if someone inserts columns. It works in every Excel version you’re likely to meet, which is why it became the standard for shared financial models.

Two-way lookups with INDEX MATCH MATCH

For a budget table with account names down column A and months across row 1, you can find one cell with two MATCH functions:

=INDEX($B$2:$M$40, MATCH("Rent", $A$2:$A$40, 0), MATCH("Mar", $B$1:$M$1, 0))

This is common in budget vs actual reports, where you need to pull the budget for a given account and month next to the actual figure from the general ledger.

How XLOOKUP works

XLOOKUP takes the lookup value, the column to search and the column to return, in that order. Exact match is the default. The vendor lookup becomes:

=XLOOKUP(B2, Vendors[ID], Vendors[Account], "Not found")

The fourth argument replaces the IFERROR wrapper: if the ID isn’t in the list, you see “Not found” instead of #N/A. Leave it out and XLOOKUP returns #N/A, which is sometimes what you want, because an error is harder to overlook than a polite message.

Useful XLOOKUP options for accounting work

  • Look left: =XLOOKUP(B2, Vendors[ID], Vendors[Name]) returns the vendor name, even though Name sits to the left of ID.
  • Return several columns at once: =XLOOKUP(B2, Vendors[ID], Vendors[[Account]:[Terms]]) returns both the expense account and the payment terms, filling two cells.
  • Find the most recent entry: set search_mode to −1 to search from the bottom. =XLOOKUP("Acme Ltd", Payments[Vendor], Payments[Date], , 0, -1) returns the date of the last payment to Acme in a payments table sorted oldest to newest.
  • Two-way lookup: nest one XLOOKUP inside another. =XLOOKUP("Rent", $A$2:$A$40, XLOOKUP("Mar", $B$1:$M$1, $B$2:$M$40))

Approximate matches: tax tables, commission tiers and price bands

Approximate matching is the one place where VLOOKUP’s default actually makes sense. Take a sales commission plan with tiered rates:

Monthly sales fromCommission rate
$02%
$10,0003%
$25,0004%
$50,0005%
Bar chart of a tiered commission table: 2% from $0, 3% from $10,000, 4% from $25,000 and 5% from $50,000 of monthly sales.
Illustrative example: the commission tier table used for the approximate-match formulas.

With the thresholds in A2:A5 and rates in B2:B5, each of these returns the rate for the sales figure in D2:

  • VLOOKUP: =VLOOKUP(D2, $A$2:$B$5, 2, TRUE) (the thresholds must be sorted ascending)
  • INDEX MATCH: =INDEX($B$2:$B$5, MATCH(D2, $A$2:$A$5, 1)) (also needs ascending order)
  • XLOOKUP: =XLOOKUP(D2, $A$2:$A$5, $B$2:$B$5, , -1) (match_mode −1 means exact match or the next smaller item)

All three give the same results:

SalesRate returnedCommission
$8,4002%$168.00
$24,9993%$749.97
$31,2504%$1,250.00
$50,0005%$2,500.00
$72,0005%$3,600.00

Notice the edge case: $24,999 sits one dollar below the next tier and gets 3%, while exactly $50,000 gets 5%. Always test the boundary values when you build a tier table. One practical edge for XLOOKUP is that match_mode −1 doesn’t require the table to be sorted unless you also choose binary search, so a tier table someone re-sorted by rate won’t silently break it the way it would break VLOOKUP with TRUE.

Common lookup mistakes that return wrong numbers

Text that looks like a number

Bank and accounting exports often store IDs as text. A lookup for the number 1045 won’t find the text “1045”, and you get #N/A even though you can see the value. Convert one side so both match. Our guide to cleaning bank and accounting exports in Excel covers the fixes.

Hidden spaces

“Acme Ltd ” with a trailing space doesn’t match “Acme Ltd”. Wrap the lookup column in TRIM in a helper column, or clean the data before you look anything up.

Relative ranges that drift

If you use plain cell ranges instead of a Table, copy =VLOOKUP(B2, F2:H200, 2, FALSE) down 100 rows without dollar signs and by row 50 the range starts at F50, so the 48 vendors in rows 2 to 49 drop out of the search. Lock ranges as $F$2:$H$200 or use an Excel Table, whose structured references don’t drift.

Hiding every error with IFERROR

Wrapping a lookup in IFERROR(…, 0) turns a missing vendor into a zero, and a zero in a reconciliation looks like a real number. Prefer IFNA, or XLOOKUP’s if_not_found with a visible label like “Not found”, so missing items stand out.

Duplicates in the lookup column

All three formulas return the first match they find (or the last, with XLOOKUP’s reverse search). If a vendor ID appears twice with different accounts, you get one of them and no warning. Run a quick COUNTIF on the lookup column to find duplicates before you rely on it, especially before a lookup feeds a bank reconciliation.

Checklist for trusting a lookup: exact match set, ranges locked, numbers and text consistent, no trailing spaces, no duplicate keys, missing items visible, boundary values tested, file recipients have the right Excel version.
Run through this list before a lookup feeds a reconciliation or a report.

So which lookup should you use?

  • Use XLOOKUP for any workbook that only you, or people on Microsoft 365, Excel 2021 or Excel 2024, will open. It’s the easiest to read and the hardest to misuse.
  • Use INDEX MATCH for templates, client files and models that may be opened in Excel 2016 or 2019, and for two-way lookups where you want something every version can calculate.
  • Use VLOOKUP for quick one-off checks where the lookup column is already on the left, and always type FALSE as the last argument.

If you’re converting an old workbook, there’s no need to rewrite every VLOOKUP at once. Replace them as you touch each sheet, and test each change against the old result before deleting it. For the other formulas that come up alongside lookups in finance work, see our roundup of essential Excel skills for business professionals.

Key takeaways

  • XLOOKUP matches exactly by default, can look left, and returns a custom message when nothing is found, but Microsoft says it isn’t available in Excel 2016 or 2019.
  • VLOOKUP defaults to approximate match, so always add FALSE as the fourth argument for IDs, account codes and names.
  • INDEX MATCH works in every current version, looks in any direction and survives inserted columns, as long as you set MATCH’s third argument to 0.
  • Use approximate matching only for sorted threshold tables such as commission tiers or price bands, and test the boundary values.
  • Most wrong lookup results come from text-formatted numbers, stray spaces, ranges without $ signs and blanket IFERROR wrappers, not from the choice of function.

Frequently asked questions

Is XLOOKUP better than VLOOKUP?

For most work, yes. XLOOKUP matches exactly by default, can return values from columns to the left, isn’t thrown off by inserted columns, and has a built-in argument for what to show when nothing is found. The main reason to stick with VLOOKUP or INDEX MATCH is compatibility, because Microsoft states XLOOKUP isn’t available in Excel 2016 or Excel 2019.

Why does my VLOOKUP return the wrong value instead of an error?

The most common cause is a missing fourth argument. When you leave it out, VLOOKUP uses approximate match, which assumes the first column is sorted and returns the closest smaller value. On an unsorted list of IDs or names, that can bring back a different row’s data with no warning. Add FALSE as the last argument to force an exact match.

Is INDEX MATCH faster than XLOOKUP?

For the size of workbooks most small businesses and finance teams use, you won’t notice a speed difference between them. Choose based on compatibility and readability instead. If you are working with very large data sets, sorting the lookup column and using a binary search option can speed things up, but only when you’re certain the data stays sorted.

What happens if I open an XLOOKUP formula in Excel 2019?

Microsoft says XLOOKUP isn’t available in Excel 2016 or Excel 2019, so formulas that use it won’t calculate properly in those versions. If you share files with people on older Excel, use INDEX MATCH for anything they need to recalculate, or paste the lookup results as values before sending the file.

Can XLOOKUP return more than one column?

Yes. If the return array covers several columns, XLOOKUP returns all of them for the matching row, filling the cells to the right of the formula. That lets one formula bring back, for example, both an expense account and payment terms for a vendor. Make sure the cells it needs to fill are empty, or Excel won’t be able to show the results.

Sources

This article is general education, not tax, legal, accounting or investment advice. Rules and thresholds differ by country and change over time, so check the specifics for your situation. See our financial disclaimer.

The Business Skill Forge Newsletter

Get practical finance & accounting tips in your inbox

Join US professionals getting our best guides, templates and tools. Free. Unsubscribe anytime.