INDEX-MATCH Complete Guide — The Lookup That Beats VLOOKUP (2026)
Home› Functions› Lookup› INDEX-MATCH Complete Guide
Excel Complete Guide

INDEX-MATCH — the complete guide

INDEX-MATCH is the lookup that experienced analysts reach for when VLOOKUP hits its ceiling. It handles left lookups, two-way lookups, approximate matches, and it doesn't break when someone inserts a column. This guide walks through every pattern — from INDEX alone to the INDEX-MATCH-MATCH grid formula — with worked examples and the decision framework for choosing between INDEX-MATCH, VLOOKUP, and XLOOKUP.

🎯

Companion Workbook — 9 sheets, 56 live formulas

INDEX alone, MATCH alone, combined patterns, left lookup, two-way, approximate match, INDEX-MATCH-MATCH, XLOOKUP comparison.

Download workbook →

⚡ Quick Answer

INDEX-MATCH combines two functions: MATCH finds the position of a value in a range, INDEX returns the value at that position from another range. The core pattern: =INDEX(return_range, MATCH(lookup_value, lookup_range, 0)). Unlike VLOOKUP, it can look up in any column and return values from any other column, in any direction.

Why INDEX-MATCH beats VLOOKUP

VLOOKUP has three structural limitations that INDEX-MATCH doesn't:

1. VLOOKUP can only search the leftmost column. If your lookup column is column C and you need to return column A, VLOOKUP is done. INDEX-MATCH doesn't care about column position — search any column, return from any column.

2. VLOOKUP breaks when columns are inserted. VLOOKUP uses a hardcoded column index (like 3 for "return the 3rd column"). Insert a new column at position 2, and now the 3rd column is a different column — but VLOOKUP still returns from position 3, silently wrong. INDEX-MATCH references columns by name via MATCH on headers, so column reorders don't break it.

3. VLOOKUP is slower on large tables. VLOOKUP scans every column of the table for each lookup. INDEX-MATCH scans only the lookup column, then jumps directly to the return column. On tables with many columns and thousands of rows, the difference is measurable.

Bonus: INDEX-MATCH does two-way lookups natively

Need to look up a value by both row AND column (like "sales for Widget in April")? VLOOKUP can't do it without helper columns or nesting hacks. INDEX-MATCH-MATCH handles it in a single formula. We'll cover it in the two-way lookup section.

For a deeper comparison with benchmarks, see our INDEX-MATCH vs XLOOKUP breakdown.

INDEX alone — return a value by position

INDEX by itself takes a range and a position number, and returns the value at that position. It sounds simple because it is:

=INDEX(range, row_num, [column_num]) // Example: =INDEX(A2:D6, 3, 2) returns the value at row 3, column 2 of the range

INDEX arguments

1
range

The range containing your data. Can be one column, one row, or a 2D matrix.

2
row_num

Which row of the range to return. Position 1 = first row of the range (not the sheet). If range is a single row, this refers to column position.

3
column_num (optional)

Which column of the range to return. Only needed for 2D ranges. Omit when range is a single column or single row.

Single column

Get the 3rd name from a column

=INDEX(A7:A11, 3)

If A7:A11 contains ["Alice", "Bob", "Carol", "David", "Eve"], this returns "Carol". Position is relative to the range, not to the whole sheet.

2D range

Get value at row 2, column 3

=INDEX(A7:D11, 2, 3)

Returns the value at the intersection of row 2 and column 3 of the range A7:D11. If that's Bob's salary column, you get Bob's salary.

INDEX alone is rarely useful in practice

Requiring the caller to know the position defeats the point of a lookup. INDEX's real value comes when combined with MATCH, which figures out the position for you. But understanding INDEX in isolation first makes the combined formula click faster.

MATCH alone — find a value's position

MATCH is INDEX's partner. Given a value and a range, MATCH returns the position where that value appears:

=MATCH(lookup_value, lookup_range, [match_type]) // Example: =MATCH("Carol", A2:A6, 0) returns 3 if "Carol" is the 3rd item

MATCH arguments

1
lookup_value

The value to find. Can be text, number, date, boolean, or a cell reference.

2
lookup_range

The range to search in. Must be a single column or single row (not a 2D range).

3
match_type (optional)

0 = exact match (use this for lookups). 1 or omitted = largest value ≤ lookup_value (requires ascending sort). -1 = smallest value ≥ lookup_value (requires descending sort).

Exact match

Find position of "Carol Davis" in a name column

=MATCH("Carol Davis", A2:A6, 0)

Returns 3 if Carol is the 3rd item. Always pass 0 for lookups — this is exact match and doesn't require sorted data.

Find column position

Find which column contains "Salary" in a header row

=MATCH("Salary", A1:E1, 0)

Returns the column position of "Salary" in the header row. This is how INDEX-MATCH-MATCH stays resilient to column reordering — reference columns by header name, not fixed position.

Combining INDEX + MATCH — the classic pattern

Here's the whole idea in one line:

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

MATCH finds the row position of your lookup value. INDEX returns the value at that same position from a different column. Two functions, one lookup.

The classic pattern

Look up a price by SKU

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

MATCH finds where "C305" appears in the SKU column (A). INDEX returns the value at that same row from the Price column (D). Change the SKU string (or point to a cell) and the price updates.

With cell input

Interactive lookup driven by an input cell

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

F1 holds the SKU to search. Change F1 to look up different products. Standard dashboard pattern.

Multiple returns

Look up multiple attributes at once

Product name:  =INDEX(B2:B100, MATCH(F1, A2:A100, 0))
Category:      =INDEX(C2:C100, MATCH(F1, A2:A100, 0))
Price:         =INDEX(D2:D100, MATCH(F1, A2:A100, 0))
Stock:         =INDEX(E2:E100, MATCH(F1, A2:A100, 0))

Same MATCH, different INDEX return ranges. All three cells respond to the same F1 input. This is the pattern for product-detail cards on a dashboard.

Wrap with IFERROR for production use

MATCH returns #N/A when the lookup value isn't found. Wrap with IFERROR to display a friendly message: =IFERROR(INDEX(D2:D100, MATCH(F1, A2:A100, 0)), "Not found"). Users see "Not found" instead of an error cell — much cleaner in dashboards. See the Excel errors guide for more error-handling patterns.

Left lookups — what VLOOKUP can't do

Here's the killer feature. Consider this employees table where the lookup you need is by NAME (column C) but you want to return the Employee ID (column A):

Employee ID (A)Department (B)Name (C)Salary (D)
E001EngineeringAlice Chen$95,000
E002SalesBob Smith$75,000
E003MarketingCarol Davis$82,000
E004EngineeringDavid Kim$105,000
VLOOKUP — impossible
=VLOOKUP("David Kim",
         A2:D5, -2, FALSE)

Fails. Negative column index is invalid. VLOOKUP can only return columns to the RIGHT of the lookup column.

INDEX-MATCH — works
=INDEX(A2:A5,
       MATCH("David Kim",
             C2:C5, 0))

Returns E004. MATCH searches column C, INDEX returns from column A. Direction irrelevant.

This is the single biggest reason to learn INDEX-MATCH. Any time you need to look up by a middle column and return an earlier column, VLOOKUP is out. INDEX-MATCH just works.

Common left-lookup scenarios

  • Get customer ID from company name (name in middle column, ID on left)
  • Get SKU from product description (description middle, SKU left)
  • Get username from email address (email middle, username left)
  • Get date from any event ID column that's not first

These come up all the time in real workbooks. Learning left-lookups is a career-long skill unlock.

Two-way lookups — row AND column

What if you need to look up by both a row identifier AND a column identifier? Like "sales for Widget in April" from a grid where regions are rows and months are columns?

The pattern uses INDEX with a hardcoded column position:

=INDEX(matrix, MATCH(row_key, row_labels, 0), col_num)
Two-way lookup

Sales for East region, in the 2nd product column

=INDEX(B7:E11, MATCH("East", A7:A11, 0), 2)

MATCH finds "East" in row labels → returns 3. INDEX(B7:E11, 3, 2) returns the value at row 3, column 2 of the matrix.

This works but the column position is hardcoded — insert a new product column and it breaks. The better pattern uses TWO MATCH functions (see next section).

Approximate match — tax brackets and grades

Set MATCH's third argument to 1 for "largest value less than or equal to lookup_value." This is how you look up values that fall within ranges — tax brackets, grade curves, volume discount tiers.

Critical requirement: the lookup range MUST be sorted ascending. Approximate match walks the range and stops when it finds a value greater than the lookup value.

Grade curve

Convert a numeric score to a letter grade

Given a grade table sorted ascending (Min Score → Grade):

0   → F
60  → D
70  → C
80  → B
90  → A

Formula for a student scoring 87:

=INDEX(B8:B12, MATCH(87, A8:A12, 1))

MATCH finds the largest value ≤ 87 (which is 80) at position 4. INDEX returns the 4th grade: B.

Volume discount

Determine discount rate for an order quantity

Discount tier table (sorted ascending):

0    → 0%
10   → 5%
50   → 10%
100  → 15%
500  → 20%

Formula for an order of 75 units:

=INDEX(B20:B24, MATCH(75, A20:A24, 1))

Returns 10% — the discount tier for 50+ orders. Perfect for CPQ (configure-price-quote) sheets and bulk-order calculators.

Tax bracket

Look up marginal tax rate for a given income

US federal 2024 single filer brackets:

$0       → 10%
$11,000  → 12%
$44,725  → 22%
$95,375  → 24%
$182,100 → 32%
$231,250 → 35%

Formula for an income of $78,000:

=INDEX(B32:B37, MATCH(78000, A32:A37, 1))

Returns 22% — the marginal rate for the $44,725–$95,375 bracket.

Approximate match without sorted data returns wrong answers silently

Excel won't throw an error if the range isn't sorted — it'll just return whatever value it hits when it stops walking. Wrong grades, wrong tax brackets, no warning. Always verify sort order before using match_type = 1.

INDEX-MATCH-MATCH — the full grid pattern

The elite pattern. Uses TWO MATCH functions — one for the row, one for the column — to make BOTH inputs dynamic:

=INDEX(matrix, MATCH(row_val, row_labels, 0), MATCH(col_val, col_headers, 0))

Now both the row identifier and the column identifier can come from cells. Change either input and the result updates. This is the formula behind most real-world grid dashboards.

INDEX-MATCH-MATCH

Fully dynamic grid lookup

Given a monthly sales matrix with products as row labels and months as column headers, look up any cell:

=INDEX(B8:G11,
       MATCH(F1, A8:A11, 0),
       MATCH(F2, B7:G7, 0))

F1 holds the product name, F2 holds the month. Change either and the intersection value returns. The formula is stable even if you reorder columns — MATCH finds them by name.

Building a summary table

The pattern extends into full summary tables. Set up your own row labels and column headers on a new sheet, and use absolute/relative references so a single formula drags across a grid:

=INDEX($B$8:$G$11,
       MATCH($A24, $A$8:$A$11, 0),
       MATCH(B$23, $B$7:$G$7, 0))

The $A24 (row-relative) and B$23 (column-relative) references let one formula fill an entire grid. Each cell looks up its own row label and column header, then INDEX returns the matching value from the source matrix.

This is how big analyst workbooks stay maintainable

When the source data table has 20 columns, INDEX-MATCH-MATCH pulls values into summary tables by name — insert a new column in the source, and the summary keeps working because MATCH resolves the column position dynamically. VLOOKUP-based summaries silently break instead.

INDEX-MATCH vs XLOOKUP

XLOOKUP (Excel 2019 and Microsoft 365) is Microsoft's modern replacement for VLOOKUP, HLOOKUP, and INDEX-MATCH. Should you switch?

AspectINDEX-MATCHXLOOKUP
Available inExcel 2003+ (universal)Excel 2019+, M365 only
Syntax lengthLonger (nested)Shorter (single function)
Left/right lookupYes (any direction)Yes (any direction)
Approximate matchYes (match_type=1)Yes (match_mode=1)
Not found handlingWrap with IFERRORBuilt-in 4th argument
Two-way lookupMATCH × 2Nest two XLOOKUPs
Return array/spillTraditional formulaNative spilling
CompatibilityWorks everywhereBreaks in Excel 2016 and earlier
Google SheetsFull supportFull support (since 2023)

Same problem, both approaches

INDEX-MATCH
=INDEX(C24:C26,
       MATCH("E002",
             A24:A26, 0))
XLOOKUP
=XLOOKUP("E002",
         A24:A26,
         C24:C26)

With not-found handling

INDEX-MATCH + IFERROR
=IFERROR(
  INDEX(C24:C26,
        MATCH(F1, A24:A26, 0)),
  "Not found")
XLOOKUP — built-in
=XLOOKUP(F1,
         A24:A26,
         C24:C26,
         "Not found")
Recommendation

For modern Excel (2019+ or Microsoft 365) users who don't share files with older Excel, XLOOKUP is the better choice for new formulas. It's shorter, cleaner, and easier to read. INDEX-MATCH remains valuable when: sharing files with Excel 2016 or earlier, maintaining legacy workbooks, or wanting universal compatibility. Both work perfectly in Google Sheets — pick based on team standards. See our full INDEX-MATCH vs XLOOKUP comparison for benchmarks.

Common errors and fixes

Error 1: #N/A from unmatched lookup value

Symptom

Formula returns #N/A. You can see the value in the data, but MATCH won't find it.

Cause & fix

Three usual causes:

1. Hidden whitespace. "ABC " with trailing space doesn't equal "ABC". Wrap the lookup range with TRIM in a helper column, or clean the source data.

2. Number vs text mismatch. The number 100 doesn't match the text string "100". Convert with VALUE() or check cell formatting.

3. Match type not 0. Default match_type is 1 (approximate), which requires sorted data and returns wrong answers on unsorted ranges. Always pass 0 for exact lookups.

Error 2: #REF! from row_num exceeding range

Symptom

INDEX returns #REF!. Formula looks fine.

Cause & fix

You asked for a position that doesn't exist. If your range is A2:A6 (5 cells) and MATCH returns 6, INDEX(A2:A6, 6) is out of bounds. Usually means MATCH failed silently on approximate match, or your range doesn't cover all your data. Extend the range to match your data, and use match_type=0 to force exact lookups.

Error 3: Wrong result from approximate match on unsorted data

Symptom

MATCH with match_type=1 returns a plausible number, but INDEX returns the wrong value.

Cause & fix

Approximate match requires ASCENDING sorted data. Excel doesn't error on unsorted data — it just returns whatever value it hit when it stopped scanning. Sort the lookup range ascending, or switch to match_type=0 for exact match.

Error 4: Formula returns "0" instead of empty

Symptom

INDEX returns 0 when the source cell is actually blank.

Cause & fix

Excel treats blank cells as 0 in numeric contexts. To preserve empty, check with IF: =IF(INDEX(...)="", "", INDEX(...)). Or use an ampersand to coerce: =INDEX(...) & "" returns an empty string for blanks (but converts numbers to text — trade-off).

Frequently asked questions

What's the difference between INDEX-MATCH and VLOOKUP?

INDEX-MATCH can look up values in any column and return values from any other column — including columns to the LEFT of the lookup column. VLOOKUP can only search the leftmost column and return values to the right. INDEX-MATCH is also faster on large datasets, doesn't break when columns are inserted, and handles two-way lookups natively. VLOOKUP is shorter to type and easier to learn, but has significant structural limits.

Is INDEX-MATCH faster than VLOOKUP?

Yes, especially on large datasets. VLOOKUP scans every row of the entire table for each lookup. INDEX-MATCH only scans the specific lookup column, then jumps directly to the return column. On tables with many columns, INDEX-MATCH can be 3-10x faster. For small tables (under 1,000 rows), the difference is negligible.

Should I use INDEX-MATCH or XLOOKUP?

XLOOKUP (Excel 2019+ / Microsoft 365) is shorter, easier to read, and has built-in not-found handling. For modern Excel users, XLOOKUP is the better choice for new formulas. INDEX-MATCH remains valuable when: sharing files with older Excel versions (2016 and earlier), maintaining legacy workbooks, or working in environments where XLOOKUP isn't available. Both work perfectly in Google Sheets.

How do I do a two-way lookup with INDEX-MATCH?

Use INDEX with two MATCH functions — one for the row, one for the column: =INDEX(matrix, MATCH(row_value, row_labels, 0), MATCH(col_value, col_headers, 0)). This is often called INDEX-MATCH-MATCH. Perfect for grid-style lookups like sales by region × product, or performance by employee × quarter.

What does the 0 mean in MATCH?

The third argument of MATCH is match_type. 0 means exact match — the value must match precisely. 1 (or omitted) means approximate match — returns the largest value less than or equal to lookup_value (requires ascending sort). -1 means the smallest value greater than or equal (requires descending sort). For lookups, always use 0. Save 1 for range-based lookups like tax brackets and grade curves.

Why do I get #N/A with INDEX-MATCH?

#N/A means MATCH couldn't find the lookup value. Common causes: (1) hidden whitespace — "ABC " with trailing space doesn't match "ABC". (2) numeric vs text mismatch — the number 100 doesn't match the text "100". (3) partial match — MATCH requires exact match with match_type=0. Wrap with IFERROR to handle gracefully: =IFERROR(INDEX(...), "Not found").

Does INDEX-MATCH work in Google Sheets?

Yes, identically. Same syntax, same behavior. Google Sheets also supports XLOOKUP as of 2023, but INDEX-MATCH remains fully supported and works exactly the same way as in Excel.

📥

Grab the companion workbook

56 live formulas across 9 sheets — every pattern from this guide, editable and ready to copy.

Download workbook →