INDEX MATCH practice exercises (with answers)
Twelve INDEX/MATCH problems on a product catalog—exact match, fill-down locks, two-way lookups, and the column-index trap—plus links into live drills.
These exercises use one product table. Put it in A1:D8 (headers in row 1), write each answer in column F, then check yourself against the formulas below. Live drills: INDEX MATCH practice, INDEX MATCH lookup, guides INDEX and MATCH.
The practice table
| SKU | Product | Category | Price |
|---|---|---|---|
| P100 | Widget | Hardware | 12.5 |
| P101 | Gadget | Hardware | 19 |
| P102 | Cable | Accessories | 4.5 |
| P103 | Case | Accessories | 8 |
| P104 | Hub | Hardware | 22 |
| P105 | Sleeve | Accessories | 6.5 |
| P106 | Dock | Hardware | 35 |
Refresher
=INDEX(return_range, MATCH(lookup_value, lookup_range, 0))
Use match type 0 (exact). Lock both ranges with $ before you fill down.
Exercise 1 — product from SKU
In F2, return Product for SKU P104.
Answer: =INDEX($B$2:$B$8, MATCH("P104", $A$2:$A$8, 0)) → Hub
Exercise 2 — lookup from a cell
Type P102 in E3. In F3, return Category.
Answer: =INDEX($C$2:$C$8, MATCH(E3, $A$2:$A$8, 0)) → Accessories
Exercise 3 — price fill-down
In E4:E6 type P100, P103, P106. In F4, return Price, then fill to F6.
Answer in F4: =INDEX($D$2:$D$8, MATCH(E4, $A$2:$A$8, 0))
Exercise 4 — missing key
Look up SKU P199 for Product.
Answer: #N/A — MATCH found nothing. Wrap with IFERROR(..., "Not listed") only when a friendly blank is expected.
Exercise 5 — look left (VLOOKUP cannot)
Return SKU for Product Cable (SKU sits to the left of Product).
Answer: =INDEX($A$2:$A$8, MATCH("Cable", $B$2:$B$8, 0)) → P102
This is why teams move off VLOOKUP column indexes.
Exercise 6 — category filter mistake
Someone writes =INDEX($D$2:$D$8, MATCH("Hardware", $C$2:$C$8, 0)). What price do they get?
Answer: the first Hardware row only (Widget → 12.5). MATCH returns the first exact hit. For all Hardware totals, use SUMIF/SUMIFS—not a single INDEX/MATCH.
Exercise 7 — approximate match on purpose
Build a shipping band in A11:B14: 0→5, 50→8, 100→12, 200→18. Return shipping for weight 75 with approximate MATCH.
Answer: =INDEX($B$11:$B$14, MATCH(75, $A$11:$A$14, 1)) → 8
Bands must be sorted ascending; match type 1 is for thresholds, not SKUs.
Exercise 8 — two-way lookup
Headers Q1 Q2 Q3 in B1:D1. Regions East, West in A2:A3. Values 10 12 9 / 8 11 14. Return West Q2.
Answer: =INDEX($B$2:$D$3, MATCH("West", $A$2:$A$3, 0), MATCH("Q2", $B$1:$D$1, 0)) → 11
Exercise 9 — wrong match type
=INDEX($B$2:$B$8, MATCH("P101", $A$2:$A$8, 1)) on unsorted text SKUs—what goes wrong?
Answer: match type 1 expects sorted ascending numeric/text bands. Exact IDs need 0.
Exercise 10 — interview narration
Why prefer INDEX/MATCH (or XLOOKUP) over =VLOOKUP(A2, B2:D50, 3) filled down?
Three points: column index breaks when columns insert; VLOOKUP cannot look left; unlocked table ranges slide on fill. Say that out loud. More Q&A: interview practice.
Exercise 11 — TRIM trap
Lookup key in E12 is P104 (trailing space). Exact MATCH fails until you clean it.
Answer: =INDEX($B$2:$B$8, MATCH(TRIM(E12), $A$2:$A$8, 0))
Exercise 12 — XLOOKUP bridge
Rewrite exercise 1 with XLOOKUP.
Answer: =XLOOKUP("P104", $A$2:$A$8, $B$2:$B$8) → Hub
Compare patterns in VLOOKUP vs XLOOKUP, XLOOKUP practice, and the head-to-head XLOOKUP vs INDEX MATCH.
Check your work in a live sheet
- Drill INDEX MATCH practice.
- Review INDEX and MATCH.
- Browse more topics on the practice hub.
- Rehearse the full screen-share story in the Excel interview case study.