INDEX MATCH as VLOOKUP? Use It Like This

Formulas & functions · Updated November 23, 2026

Yes, INDEX MATCH can replace VLOOKUP in almost every situation, and it is often more flexible and faster in large spreadsheets. The core difference: VLOOKUP searches only the first column of a range and returns a value from a column to the right, while INDEX MATCH lets you search any column and return a value from any column, left or right, without rearranging your data.

Why INDEX MATCH Exists

VLOOKUP has been around since the earliest spreadsheet programs, and it works fine for simple lookups. But it has built-in limitations that become painful as your data grows. The classic complaint: if you add a column to the left of your lookup column, VLOOKUP breaks because it always counts columns from the left edge of the range. INDEX MATCH avoids that entirely because you reference columns directly, not by position.

Another reason people switch is performance. VLOOKUP calculates every column in its table array, even the ones you do not need. INDEX MATCH only touches the two columns you actually use. On a sheet with 50,000 rows and several lookups, that difference can make recalculation noticeably snappier.

How INDEX MATCH Works

INDEX MATCH is actually two functions nested together. MATCH finds the row (or column) number where a value lives. INDEX then returns the value at that row (or column) in a separate range. You write it like this:

=INDEX(return_range, MATCH(lookup_value, lookup_range, 0))

For example, with product names in A2:A20 and prices in B2:B20, to find the price of “Widget”:

=INDEX(B2:B20, MATCH("Widget", A2:A20, 0))

This returns the price from column B for the row where A equals “Widget”. The 0 in MATCH means exact match, which is what you want for most lookups. If you omit it, MATCH defaults to 1 (approximate match), which can return wrong results.

VLOOKUP vs INDEX MATCH: Side-by-Side

Here is a concrete example. Suppose you have employee data with ID in column A, Name in B, Department in C, and Salary in D. You want to look up salary by employee ID.

VLOOKUP:

=VLOOKUP(102, A2:D100, 4, FALSE)

This works, but if you insert a new column between A and D, the column index (4) now points to the wrong field. You must manually update every formula.

INDEX MATCH:

=INDEX(D2:D100, MATCH(102, A2:A100, 0))

Here, the return range is D2:D100 directly. Inserting a column anywhere does not affect the formula because the range references update automatically when you insert or delete columns, just like any other range reference.

Also, VLOOKUP cannot look to the left. If your lookup value is in column C and the value you want is in column A, VLOOKUP fails. INDEX MATCH handles it easily:

=INDEX(A2:A100, MATCH("Sales", C2:C100, 0))

When to Use INDEX MATCH Instead of VLOOKUP

  • When your lookup column is not the leftmost column in the table.
  • When you need to return a value from a column to the left of the lookup column.
  • When you frequently insert or delete columns in your data.
  • When you work with large datasets and want faster calculation.
  • When you need to do a two-way lookup (matching both row and column headers) – INDEX MATCH can do that with two MATCH functions, while VLOOKUP cannot.

Common Mistakes and How to Avoid Them

The most common error is forgetting the third argument in MATCH. Always use 0 for exact match unless you truly need an approximate match (like finding the nearest lower value in a sorted list). Another frequent issue: mismatched range sizes. If your lookup range is A2:A100 and your return range is B2:B99, MATCH might return a row number that does not exist in the return range, giving a #REF! error. Keep both ranges the same height.

Another trap: using full-column references like A:A in MATCH. That is fine, but then your return range should also be full-column (B:B) to stay aligned. Mixing full-column and limited ranges can cause errors.

If you get #N/A, that means the lookup value is not found. Check for extra spaces, text vs. number formatting, or trailing invisible characters. Use =TRIM(A2) to clean data, or use IFERROR to display a friendly message:

=IFERROR(INDEX(B2:B20, MATCH("Widget", A2:A20, 0)), "Not found")

Alternatives to INDEX MATCH

Since Excel 2021 and Microsoft 365, you have XLOOKUP, which is even simpler and does everything INDEX MATCH does, plus more. XLOOKUP syntax:

=XLOOKUP(lookup_value, lookup_range, return_range)

For the employee example, it would be:

=XLOOKUP(102, A2:A100, D2:D100)

XLOOKUP defaults to exact match, handles missing values with a built-in if_not_found argument, and can return multiple columns with a single formula. If you are on Microsoft 365, XLOOKUP is usually the best choice. However, if you need to share files with users on older Excel versions (2016 or earlier), INDEX MATCH remains the safer bet because XLOOKUP is not available there.

Another alternative is the older LOOKUP function, but it is limited and rarely the best option. For two-way lookups, you can also use INDEX with two MATCH functions, which is a powerful pattern:

=INDEX(B2:E10, MATCH("RowHeader", A2:A10, 0), MATCH("ColHeader", B1:E1, 0))

That returns the value at the intersection of a specific row and column.

Frequently Asked Questions

Is INDEX MATCH faster than VLOOKUP?

Generally yes, especially on large datasets, because INDEX MATCH only evaluates the two columns you reference, while VLOOKUP evaluates the entire table array. The difference is negligible on small sheets but can be significant with tens of thousands of rows.

Can INDEX MATCH return multiple columns?

Not directly. INDEX MATCH returns a single value. To return multiple columns, you would need multiple formulas or use XLOOKUP with a return array (in Microsoft 365). For example, =XLOOKUP(102, A2:A100, B2:D100) returns three values in a spill range.

Does INDEX MATCH work with wildcards?

Yes, if you use wildcards in the lookup value with MATCH, but only when the lookup range is text and you use exact match (0). For example, =MATCH("Wi*", A2:A20, 0) finds the first cell starting with “Wi”. However, wildcards do not work with numeric lookup values.

Why does my INDEX MATCH return #REF!?

#REF! usually means the row number returned by MATCH is larger than the number of rows in the return range. Check that both ranges have the same number of rows. For example, if MATCH is on A2:A100 (99 rows) and INDEX is on B2:B99 (98 rows), a match in row 100 will cause #REF!.

Can I use INDEX MATCH with multiple criteria?

Yes, by using array formulas or the MATCH function with multiple conditions. In Microsoft 365, you can use =INDEX(return_range, MATCH(1, (criteria1_range=criteria1) * (criteria2_range=criteria2), 0)) entered normally (dynamic arrays handle it). In older Excel, you would press Ctrl+Shift+Enter to confirm it as an array formula.

Is INDEX MATCH case-sensitive?

No, by default it is not case-sensitive. If you need case-sensitive matching, use EXACT inside an array formula: =INDEX(B2:B20, MATCH(TRUE, EXACT(A2:A20, "Widget"), 0)) (confirmed with Ctrl+Shift+Enter in older versions).

Final Thoughts

INDEX MATCH is a reliable, flexible replacement for VLOOKUP that works in every Excel version. It is worth learning even if you have access to XLOOKUP, because you will encounter legacy workbooks and colleagues on older software. Start with the simple pattern =INDEX(return, MATCH(lookup, lookup_range, 0)), test it on a small dataset, and you will quickly see why it has been the go-to lookup method for years.

Related

Try it: the Formula Explainer: paste any formula and see each function and reference in plain English.

More in Formulas & functions

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.