INDEX MATCH practice

Solve a left-lookup with INDEX and MATCH in the grid below.

In F2, look up the book Code to the left of the title in E2.

Syntax
INDEX(return_range, MATCH(lookup_value, lookup_range, 0))
F2
fx
ABCDEF
1CodeTitlePriceFind TitleCode
2BK-401Clean Grids24.50Data Habits
3BK-402Pivot Craft32.00
4BK-403Data Habits19.75
5BK-404Model Fast41.00
6BK-405Chart Sense28.50
7BK-406Query Lab36.00

How INDEX and MATCH work together

Think of the pair as two tiny jobs: MATCH finds which row number holds your search term, and INDEX reaches into any column at that exact row number.

=INDEX(A2:A7, MATCH(E2, B2:B7, 0))
1. MATCH(E2, B2:B7, 0)

Searches column B for “Data Habits” with exact match (0) and returns 3.

2. INDEX(A2:A7, 3)

Returns the 3rd cell in A2:A7 (to the left of Title): BK-403.

Two-way (row + column) lookup

When you need to match both a row label and a column header — such as pulling Q3 sales for a specific region — add a second MATCH as the 3rd argument of INDEX:

=INDEX(B2:E7, MATCH(G2, A2:A7, 0), MATCH(H1, B1:E1, 0))

4 mistakes that break INDEX/MATCH

Missing 0 in MATCH

Leaving out ,0 makes MATCH assume sorted data and return the wrong row. Always pass 0 for exact match.

Swapped ranges

INDEX takes the column you want returned (A2:A7); MATCH searches the column containing the lookup value (B2:B7).

MATCH without INDEX

=MATCH(E2,B2:B7,0) only returns the row number (3). Wrap it inside INDEX(A2:A7, ...) to pull the actual cell value.

Mismatched starting rows

If INDEX starts on row 1 (A1:A7) while MATCH starts on row 2 (B2:B7), every answer shifts off by one row.

FAQ

Why use INDEX and MATCH instead of VLOOKUP?

INDEX and MATCH can look up values to the left, stay unbroken when you insert or delete columns in the middle of a table, and work in every version of Excel — including older files that do not support XLOOKUP.

What does the 0 do in MATCH(E2, B2:B7, 0)?

The 0 tells MATCH to require an exact match. Without it, MATCH defaults to 1 (largest value less than or equal to lookup_value) and returns wrong rows on unsorted lists.

How do you write a two-way (row and column) INDEX/MATCH?

Pass a 2D table to INDEX and use two MATCH calls — one for the row and one for the column: =INDEX(B2:E7, MATCH(G2, A2:A7, 0), MATCH(H1, B1:E1, 0)).

Should I still learn INDEX/MATCH if I have XLOOKUP?

Yes. Finance models, legacy spreadsheets, and Excel interview assessments still test INDEX/MATCH heavily, and two-way lookups remain concise with INDEX and two MATCH calls.