Practice by topic / Excel / Lookups

INDEX and MATCH Exercises

Lookups pull a value from one table into another — a price, a name, a rate. They come up in almost every Excel job interview test. These 10 exercises build up step by step, starting with find a position with match, retrieve a value with index, combine index and match for a lookup.

3 of 10 free · no sign-up needed · graded on the formula you write

1

Find a Position With MATCH

Free

A1:A5 hold a list of names. D1 holds a name to find. Write a formula in E1 that returns its position in the list using MATCH.

ABCDE
1AlexPriya?
2Sam
3Priya
4Chen
5Lena
Show the solution

Use =MATCH(D1,A1:A5,0) — the 0 means exact match.

Right — MATCH returns the 1-based position of the value within the range, not the value itself.

Expected result in E1: 3

Try it in the live spreadsheet →
2

Retrieve a Value With INDEX

Free

A1:A5 hold a list of prices. Write a formula in B1 that returns the 3rd price in the list using INDEX.

AB
110?
220
330
440
550
Show the solution

Use =INDEX(A1:A5,3).

Good — INDEX(range, position) returns the value at that position within the range.

Expected result in B1: 30

Try it in the live spreadsheet →
3

Combine INDEX and MATCH for a Lookup

Free

A1:A4 hold product names, B1:B4 hold prices. D1 holds a product name to look up. Write a formula in E1 that returns its price using INDEX and MATCH together.

ABCDE
1Widget10Gizmo?
2Gadget15
3Gizmo8
4Sprocket12
Show the solution

Combine them: =INDEX(B1:B4,MATCH(D1,A1:A4,0))

Right — MATCH finds the row position of the product, and INDEX uses that position to pull the price from a separate range.

Expected result in E1: 8

Try it in the live spreadsheet →
4

Use INDEX/MATCH to Look Left

A1:A4 hold prices, B1:B4 hold product names (name is to the right of price, so a plain VLOOKUP can't look backward). D1 holds a product name. Write a formula in E1 using INDEX/MATCH that returns the price.

ABCDE
110WidgetGadget?
215Gadget
38Gizmo
412Sprocket

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
5

Find an Employee's Row Position

A1:A4 hold employee names. D1 holds a name. Write a formula in E1 that returns which row number (1-based within the range) they're in using MATCH.

ABCDE
1ChenOmar?
2Diego
3Lena
4Omar

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
6

Look Up a Score by Combining INDEX and MATCH

A1:A4 hold student names, B1:B4 hold scores. D1 holds a name. Write a formula in E1 using INDEX/MATCH for the score.

ABCDE
1Alex88Chen?
2Sam92
3Priya79
4Chen95

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
7

Retrieve the Nth Item From a Range

A1:A5 hold a ranked list of finishers. Write a formula in B1 that returns the name in 4th position using INDEX.

AB
1Alex?
2Sam
3Priya
4Chen
5Lena

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
8

Find the Position of the Highest Score With MATCH

A1:A4 hold scores. Write a formula in B1 that finds the position of the value 95 within the range using MATCH.

AB
180?
295
370
488

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
9

Combine INDEX/MATCH to Look Up a Vendor Term

A1:A4 hold vendor names, B1:B4 hold payment terms. D1 holds a vendor. Write a formula in E1 using INDEX/MATCH for the terms.

ABCDE
1AcmeNet 30Initech?
2GlobexNet 15
3InitechNet 60
4UmbrellaNet 45

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
10

Look Up a Bin Location With INDEX/MATCH

A1:A4 hold SKUs, B1:B4 hold bin locations. D1 holds a SKU. Write a formula in E1 using INDEX/MATCH for the bin.

ABCDE
1S1B12S4?
2S2B04
3S3B19
4S4B07

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →