INDEX MATCH is the lookup formula experienced Excel users reach for once VLOOKUP starts to feel limiting. Most tutorials taught it first, and most offices used it every day. Then INDEX MATCH became popular, and experienced Excel users started saying the same thing: this is better than VLOOKUP.
They were right. INDEX MATCH is more flexible, handles changes better, and can look in any direction. In this article, I will explain how INDEX MATCH works, why so many people prefer it, and how to write it correctly.

What Does INDEX Do?
INDEX returns a value from a range, based on a row number (and optionally a column number). The syntax is:
=INDEX(array, row_num, [column_num])
Example: If A2:A10 contains names and you write =INDEX(A2:A10, 3), Excel returns the third name in that range. That is all INDEX does on its own. It is simple.
What Does MATCH Do?
MATCH returns the position of a value inside a range. The syntax is:
=MATCH(lookup_value, lookup_array, [match_type])
Example: If A2:A10 contains “Delhi, Mumbai, Pune, …” and you write =MATCH(“Pune”, A2:A10, 0), Excel returns 3 because Pune is the third value. The 0 means exact match, which is what you almost always want.
How to Combine INDEX and MATCH
The magic happens when you nest MATCH inside INDEX. MATCH finds the position, INDEX uses that position to return a value.
Example: You have product IDs in A2:A100 and prices in D2:D100. You want to find the price of a specific product.
=INDEX(D2:D100, MATCH("P-204", A2:A100, 0))Step by step:
- MATCH(“P-204”, A2:A100, 0) finds the position of “P-204” in column A. Say it is row 5.
- INDEX(D2:D100, 5) returns the 5th value in column D.
- That is your price.
Compare that to VLOOKUP:
=VLOOKUP("P-204", A2:D100, 4, FALSE)Both work. But look at what happens if someone inserts a new column inside A2:D100. The VLOOKUP breaks because “4” no longer points to column D. The INDEX MATCH version does not care because it references D2:D100 directly. That is the first big advantage.
Why INDEX MATCH Beats VLOOKUP
- Look Left — VLOOKUP cannot look to the left. The lookup column must be the first column in the range. INDEX MATCH does not care. You can look left, right, up, or down. This alone makes it more flexible for real-world tables where the lookup column is not always first.
- Column Insert Safety — VLOOKUP uses a column number. Insert a new column and the number is wrong. INDEX MATCH references columns by name, so inserting columns does not break the formula.
- Better Performance on Large Files — VLOOKUP with whole-column references can slow down a big file. INDEX MATCH using defined ranges is usually faster. In small files you will not notice. In large ones, it matters.
- No Need to Count Columns — With VLOOKUP, you have to count which column number to return. This is easy to get wrong. INDEX MATCH references the return column directly, so there is no counting.
- Clearer Formulas — Once you get used to INDEX MATCH, it reads more naturally. “Return the value from column D, where column A matches this value.” That is easier to debug than “Return column 4 from A:D”.
Look Left Example
Say your table has Product Name in column B and Product ID in column A. You want to find the ID by name. VLOOKUP cannot do it. INDEX MATCH can:
=INDEX(A2:A100, MATCH("Chair", B2:B100, 0))This is one of the most common reasons people switch. Real tables rarely have the lookup column in the first position.
Two-Way Lookup with INDEX MATCH
INDEX MATCH can also do a two-way lookup — finding a value by row and column at the same time. This is where VLOOKUP cannot help at all.
Example: A table of sales by month (rows) and region (columns). You want to find the sales value for March in the East region.
=INDEX(B2:M10, MATCH("Mar", A2:A10, 0), MATCH("East", B1:M1, 0))MATCH finds the row for March and the column for East. INDEX returns the intersection. This is a very common scenario in financial models and reporting sheets.
Returning Multiple Rows with INDEX (Array Behavior)
In modern Excel, INDEX can return more than one value. For example, to return the top 3 products by revenue, you can combine INDEX with other functions. This is a bit advanced, but it shows how flexible INDEX is. It is not just a lookup function — it is a range-returning function.
Why INDEX MATCH Returns the Wrong Result
- Forgetting exact match. Use 0 (or FALSE) in MATCH for most lookups. If you use 1, you will get approximate matches, which is rarely what you want.
- Mismatched range sizes. INDEX and MATCH ranges must be the same size (same number of rows). If INDEX is D2:D100 and MATCH is A2:A50, the formula will not work correctly.
- Extra spaces in text. A value like “Chair ” with a space at the end will not match “Chair”. Use TRIM if needed.
- Duplicate lookup values. If “P-204” appears twice, MATCH returns the first one. If you need the last one, you need a different approach.
- Using $ appropriately. When copying formulas, lock the ranges with $ to avoid shifting. Use $A$2:$A$100 instead of A2:A100 when you plan to fill down or across.
- Forgetting IFERROR. If MATCH finds nothing, the formula returns #N/A. Wrap it:
=IFERROR(INDEX(D2:D100, MATCH(A2, A2:A100, 0)), "Not found")
Practical Example: Employee Lookup
You have Employee ID in A, Name in B, Department in C, and Salary in D. You want to find the department for a given ID.
=INDEX(C2:C500, MATCH("E-1042", A2:A500, 0))Or, using a cell reference:
=INDEX(C2:C500, MATCH(F2, A2:A500, 0))
This is clean, safe against column changes, and easy to read.
When to Use VLOOKUP Instead
VLOOKUP is fine in a few cases: when you are sharing a file with people on very old Excel versions, when the lookup column is clearly first and will not move, and when you need a quick simple lookup and do not plan to build on it.
For anything more than that, INDEX MATCH is usually the better choice.
What About XLOOKUP?
XLOOKUP is the modern replacement for both. It is simpler than INDEX MATCH and handles more cases with less setup. But INDEX MATCH is still useful because it works in older Excel versions, and many existing templates use it. Learning both is worth the effort. If you understand INDEX MATCH, XLOOKUP will feel easy.
INDEX MATCH with Approximate Match
Most lookups use 0 in MATCH for an exact match. But MATCH also supports approximate match with match_type 1, which is useful when you want to find which band or bracket a value falls into.
With match_type 1, MATCH returns the position of the largest value not more than your lookup value. The lookup column must be sorted in ascending order, or the result will be wrong.
Take a tax slab table: income thresholds in A2:A5 (0, 250000, 500000, 1000000) and tax rates in B2:B5 (0%, 5%, 20%, 30%). To find the rate for an income of 750000, write:
=INDEX(B2:B5, MATCH(750000, A2:A5, 1))
MATCH finds 3, because 500000 is the largest threshold not more than 750000, so INDEX returns the third rate, 20%. The same pattern works for grades, discount tiers, and commission bands.
Use approximate match only when you deliberately want a bracket. For ID lookups, names, and product codes, stay with exact match (0). And always check the sort order first: an unsorted list with match_type 1 gives a wrong answer with no error message.
INDEX MATCH Performance Tips
It is fast, but a few habits keep it fast in large files. First, use defined ranges instead of whole columns: A2:A1000 is much faster than A:A, because a whole-column reference forces Excel to check more than a million rows. If your data grows, use an Excel Table so the range expands automatically.
Second, avoid volatile functions inside your lookup. OFFSET, INDIRECT, TODAY, and NOW recalculate every time anything changes in the workbook, so one OFFSET inside a lookup can slow a whole sheet. Use INDEX itself for dynamic ranges instead of OFFSET, and put TODAY or NOW in one cell and reference it.
Third, do not repeat the same MATCH in ten formulas. If several columns all look up the same ID, put the MATCH in a helper column once and let each INDEX formula reuse that position. Finally, keep lookup ranges tidy: remove blank rows and make sure the lookup column holds one data type. Mixed text and numbers slow MATCH down and cause missed matches.
Practice With Your Own Data
Make a small employee table in A1:D11 with the headers ID, Name, Department, and Salary, and ten rows of sample data. In F1 type an ID from the table, and in G1 write an INDEX MATCH that returns the name for that ID: =INDEX(B2:B11, MATCH(F1, A2:A11, 0)). Change F1 to another ID and confirm the name changes. Now do a look-left: in F2 type a name, and in G2 write a formula that returns the ID for that name using INDEX MATCH. This is the lookup VLOOKUP cannot do.
Next, build a two-way lookup. Create a small grid with products in A14:A17 and months in B13:E13, fill in sales numbers, then in a separate cell use INDEX with two MATCH functions, one for the row and one for the column, to fetch the sales for any product and month you type. Wrap your first formula in IFERROR so a missing ID shows Not found instead of an error. If a formula returns the wrong row, check that your MATCH uses 0 for an exact match and that both ranges are the same size.
Frequently Asked Questions
Can INDEX MATCH return text?
Yes. INDEX returns whatever is stored in the cell it points to — text, numbers, or dates. For example, =INDEX(B2:B100, MATCH(“E-1042”, A2:A100, 0)) returns the employee name in column B, with no change to the formula.
Does INDEX MATCH work in Google Sheets?
Yes. Google Sheets supports both INDEX and MATCH with the same syntax, so a formula written in Excel works in Sheets too, and you can wrap it in ARRAYFORMULA to look up a whole column at once.
Related guide: XLOOKUP vs VLOOKUP in Excel: Which Formula Should You Use?
Related guide: How to Build a Dashboard in Excel Without Any Add-ins
Final Thoughts
INDEX MATCH is not just an alternative to VLOOKUP. In many cases, it is the better formula. It is safer when columns change, works left or right, and handles two-way lookups. Once you learn the pattern, you will find yourself using it in half your reports. And when you eventually move to XLOOKUP, INDEX MATCH will have taught you the core idea: find the position, then return the value.









