The short answer
Use XLOOKUP if every person who opens the workbook has Excel 2021, Excel for the web or Microsoft 365. It is shorter, it reads in the order you think about the problem, and it handles “not found” results without a wrapper function. Use INDEX MATCH if the file must work in Excel 2016 or 2019, or if you cannot control which version the recipients have.
For a plain exact match, both formulas return the same result. The choice comes down to compatibility, readability and a few specific capabilities, not accuracy.

Skip the setup
Binsight Inventory Spreadsheet
Stock in, stock out and reorder alerts that turn red before you run out. Uses lookups and conditional formatting.
What each formula does
Both formulas answer one question: “Find this value in this list, then return the matching value from another list.” The difference lies in how many separate functions they need to do it.
How XLOOKUP works
XLOOKUP takes up to six arguments in this order:
=XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode])
Only the first three are required. The last three are optional and control what happens when there is no match, how the match is made, and which direction the search runs.
The lookup array and the return array are separate ranges. XLOOKUP does not need the return column to sit to the right of the lookup column, and it does not need a column number. If someone inserts a column, the reference adjusts automatically.
How INDEX MATCH works
INDEX MATCH combines two functions. MATCH finds the position of the lookup value in a list. INDEX then uses that position to return a value from a second list.
=INDEX(return_array, MATCH(lookup_value, lookup_array, 0))
The 0 at the end tells MATCH to look for an exact match. Leaving it out is one of the most common errors in this formula, and it is covered in the mistakes section below.
Worked example: adding customer names to an orders sheet
Suppose you have two sheets. The Customers sheet holds customer IDs in column A (A2:A500) and names in column B (B2:B500). The Orders sheet holds a customer ID in column A for each order, and you want the name in column B.
With XLOOKUP, in cell B2 of Orders:
=XLOOKUP(A2, Customers!$A$2:$A$500, Customers!$B$2:$B$500, "Not found")
With INDEX MATCH, in the same cell:
=INDEX(Customers!$B$2:$B$500, MATCH(A2, Customers!$A$2:$A$500, 0))
Both return the name. If the ID does not exist, the XLOOKUP version shows “Not found” directly. The INDEX MATCH version returns #N/A, which you would need to wrap in IFERROR or IFNA to replace with a message.
Copy either formula down the column. Note the dollar signs. They lock the ranges so that the reference to Customers does not drift as you fill down. Without them, the second row would search a range shifted one row lower, and the results would be wrong without any visible error.
Side-by-side comparison
| Attribute | XLOOKUP | INDEX MATCH |
|---|---|---|
| Availability | Excel 2021, Microsoft 365, Excel for the web, Google Sheets | Every version of Excel and most other spreadsheet tools |
| Argument order | Lookup, return, then options | Return column first, then MATCH wrapper |
| Handling of no match | Built in through if_not_found | Needs IFNA or IFERROR |
| Search direction | First to last or last to first | First to last only |
| Left-side lookup | Native, no extra work | Native, no extra work |
| Approximate match | match_mode values of -1 or 1 | MATCH third argument of -1 or 1 |
| Wildcard match | match_mode value of 2 | MATCH with 0 and wildcards in the lookup value |
| Returns a spill range | Yes, in dynamic-array versions | Only in dynamic-array versions, with extra care |
| Readability for a new user | High once the argument order is known | Moderate, two nested functions |
| Calculation cost on typical workbooks | Comparable | Comparable |
Where XLOOKUP pulls ahead
XLOOKUP’s advantages are small individually, but they add up in day-to-day work.
Built-in not-found handling. The fourth argument replaces the error with text, a blank cell or a number. You do not need a second function to catch the error, and you cannot accidentally hide other errors, such as a broken reference, behind a broad IFERROR.
Search from the bottom up. Set search_mode to -1 and XLOOKUP searches from the last row to the first. If a list contains duplicate keys and you want the most recent entry, this is the simplest way to get it. With INDEX MATCH you would need LOOKUP(2,1/(...)) or a reversed sort, both of which are harder to audit.
Returning several columns. If the return array is a two-column range, XLOOKUP spills both values into adjacent cells. For example, =XLOOKUP(A2, Customers!$A$2:$A$500, Customers!$B$2:$C$500) returns the name and the region in one step. Achieving the same result with INDEX MATCH requires one formula per column, or a more complicated array construction.
Fewer moving parts. A single function with named arguments is easier to hand over to a colleague than two nested functions. When someone asks “what does this do?”, the answer fits on one line.
Where INDEX MATCH still earns its place
INDEX MATCH is older, but it is far from obsolete. It has several strengths that matter in specific situations.
Compatibility. A workbook that uses XLOOKUP and is opened in Excel 2016 or 2019 shows #NAME? in every cell that contains the function. The formula is still there, but it does not calculate. If your file goes to a client, a partner or a department that has not upgraded, INDEX MATCH avoids that problem entirely.
Portability across tools. Many other spreadsheet and data tools support INDEX and MATCH. If your formulas will be copied into a different system, or if you maintain templates that people use in several products, INDEX MATCH is the safer default.
Familiarity in mixed teams. Many experienced analysts know INDEX MATCH by heart. If your team is split between people who learned the older pattern and people who are new to Excel, a formula that everyone can read may matter more than a formula that is slightly tidier.
Left lookups and older versions
Both formulas handle lookups to the left of the return column. This was a major reason people moved away from VLOOKUP, which could only look to the right of its key column. You do not need to choose INDEX MATCH for left lookups. Choose it only for the compatibility reasons above.
Ready-made template
Every client, lead and follow-up in one sheet, with drop-downs and status colours already set up.
Approximate matches and banded lookups
Approximate matching is useful for tax bands, commission tiers, shipping rates and grade boundaries. Here the lookup finds the largest threshold that does not exceed the value.
Suppose column A lists lower bounds in ascending order (0, 10,000, 25,000, 50,000) and column B lists the rate for each band. To find the rate for an income of 31,500:
XLOOKUP: =XLOOKUP(31500, A2:A5, B2:B5, , -1)
INDEX MATCH: =INDEX(B2:B5, MATCH(31500, A2:A5, 1))
In XLOOKUP, the -1 in the match mode argument means “exact match, or the next smaller value”. The empty argument skips if_not_found. In INDEX MATCH, the 1 in MATCH asks for the largest value less than or equal to the lookup value, and that requires the lookup list to be sorted in ascending order.
This is where the sorting requirement matters most. If the bounds are out of order, MATCH with 1 returns wrong results without warning. XLOOKUP with -1 also depends on the data, but its linear search can work on unsorted lists, which makes it less fragile in practice. If you cannot guarantee the order, XLOOKUP is the safer choice for this task.
Two-way lookups
A two-way lookup finds a value where a row label and a column label intersect. For example, a price grid with product codes down the side and sizes across the top.
With INDEX MATCH, the pattern is clean and well understood:
=INDEX(Prices!$B$2:$F$50, MATCH(A2, Prices!$A$2:$A$50, 0), MATCH(B2, Prices!$B$1:$F$1, 0))
With XLOOKUP, you nest one lookup inside another:
=XLOOKUP(A2, Prices!$A$2:$A$50, XLOOKUP(B2, Prices!$B$1:$F$1, Prices!$B$2:$F$50))
The nested version is shorter, but it is harder to read at a glance. Many analysts find the INDEX MATCH version easier to audit because each MATCH has a clear job. If the grid is large and will be maintained by others, consider which version they will understand fastest.
Common mistakes and how to avoid them
Most lookup errors are not caused by the functions themselves. They come from the setup around them.
Leaving out the exact match argument. In MATCH, the third argument defaults to 1, which means approximate match. If the lookup list is not sorted, the result is wrong without any error. Always write 0 explicitly when you want an exact match. XLOOKUP avoids this trap because its default is exact match.
Numbers stored as text. An ID that looks like 1001 but is stored as text will not match the number 1001. Both formulas return #N/A. Check with =ISTEXT(A2) or =ISNUMBER(A2). The fix is to convert the column consistently, using Text to Columns or VALUE, depending on the source.
Trailing or leading spaces. A name that ends in a space, such as “Smith ” instead of “Smith”, will not match. TRIM on both sides of the comparison removes this problem, though it adds to the formula length.
Missing dollar signs. Without absolute references, copying a formula down or across shifts the lookup range. The formula still runs, but it searches a different block of data. Lock the lookup and return ranges with $, or use an Excel table with structured references, such as Customers[ID].
Mismatched range sizes. The lookup array and return array must be the same height (for a vertical lookup) or the same width (for a horizontal one). XLOOKUP returns #VALUE! when they differ. INDEX MATCH may return a result from the wrong row if the ranges are misaligned, which is harder to spot.
Hiding errors with IFERROR. Wrapping a lookup in IFERROR(..., 0) replaces every error with zero, including errors caused by a broken reference or a deleted sheet. Use IFNA to catch only missing matches, or use XLOOKUP’s if_not_found argument, which is narrower by design.
Assuming the first match is the right one. Both formulas return the first match they find when keys are duplicated. If you need the last match, use XLOOKUP with search_mode set to -1, or sort the data first. Decide this before building the workbook, not after a figure looks wrong.
Edge cases to check before you commit
Case sensitivity. Both formulas ignore case. “ACME” and “acme” match. If you need a case-sensitive match, you must use a formula such as EXACT inside an array, which is more complex with either choice.
Wildcards. XLOOKUP supports wildcards with match_mode set to 2, where * matches any string of characters and ? matches a single character. INDEX MATCH supports wildcards only when the MATCH match type is 0 and the lookup value contains them. Test wildcard behaviour on a small sample first, because a stray asterisk in real data can match more rows than intended.
Dynamic arrays. If XLOOKUP returns several values, it spills into neighbouring cells. If one of those cells already contains data, the formula returns #SPILL!. Keep the spill area clear, or use a single-cell return.
Very large datasets. Both formulas are fast on typical business workbooks. The difference is rarely noticeable below tens of thousands of rows. For very large data, or for repeated lookups across hundreds of thousands of rows, consider a database, Power Query or the data model. Recalculation speed in these cases depends more on the structure of the workbook than on the choice of lookup function.
Full-column references. Writing Customers!A:A instead of a bounded range makes both formulas search over a million rows. This slows recalculation and can make a workbook feel sluggish. Use bounded ranges or an Excel table.
Trade-offs: speed, readability and sharing
Performance is rarely the deciding factor. Both formulas use the same underlying search logic in most cases, and the difference in calculation time on a normal workbook is too small to matter.
Readability and portability matter more. XLOOKUP is easier to read and to write once you know the argument order. INDEX MATCH is easier to share, because it works in every version and every compatible tool.
Maintenance matters most over time. A workbook that will be passed between people over several years needs formulas that the next person can understand without a tutorial. A workbook that stays within one team and one software version can use the newer function without any risk.
Consider also the cost of mistakes. XLOOKUP’s built-in not-found handling reduces the chance of an error being hidden by a broad wrapper. INDEX MATCH’s lack of a default exact match means every formula needs a deliberate 0. Neither is a flaw. Each one demands a different discipline.
A decision rule you can apply in a minute
Work through these questions in order. Stop at the first answer that settles it.
- Does anyone who will open the file use Excel 2016 or 2019, or a tool without XLOOKUP? If yes, use INDEX MATCH.
- Does the file need to be shared outside your organisation or maintained by people who do not know either formula? If yes, use INDEX MATCH, since it is the more widely recognised pattern.
- Do you need a reverse search, a multi-column return or a spill range? If yes, use XLOOKUP.
- Is the lookup a two-way grid that others will audit? If yes, use INDEX MATCH for clarity.
- Is the lookup a plain exact match or a banded approximate match with unsorted data? If yes, use XLOOKUP.
- None of the above applies? Use XLOOKUP, because it is shorter and less prone to the default-argument errors described above.
Whichever formula you choose, test it on a sample that includes a missing key, a duplicate key and a text-stored number. If the result is right on those three cases, it is probably right on the rest.