FormulaCamp
Completed
All interactive exercises
Hands-on Excel exercises

INDEX MATCH Practice

Practice INDEX MATCH in a live spreadsheet. Build exact, leftward, and two-way lookups, then check your method with worked answers.

INDEX and MATCH split a lookup into two clear jobs. MATCH finds a position; INDEX returns the value at that position. That separation makes the pattern flexible, especially when the return column sits to the left of the key or when you need both a row and a column match. In the live spreadsheet, use a team name as the key and return the matching employee from a small roster.

The exercise sequence begins with each component, then combines them in exact and two-way lookups. It also includes VLOOKUP and XLOOKUP so you can compare the same business problem across patterns. The important detail is alignment: the array passed to INDEX must correspond row for row with the range searched by MATCH. A one-row offset can return a valid-looking value from the wrong record.

Use the worked answers after attempting the tasks. They show how to inspect MATCH on its own, confirm the returned position, and only then wrap it in INDEX. This staged approach is useful during spreadsheet interviews because you can explain and debug your reasoning. It also makes old workbooks easier to audit when a long nested formula is producing an unexpected result.

Your turn

Your turn: in F2, return the employee name for the team in E2 with INDEX and MATCH.

Example spreadsheet for employee roster
ABCDEF
1Employee IDNameTeamRateFind team
2E201OmarOps38Finance
3E202MinaFinance44
4E203LuisSales41
5E204HanaSupport39
Not yet solved.

Related exercises

Open a task in its lesson.

  1. In G2:G4, find the employee ID for each name. The ID is to the left of the name, so VLOOKUP will not help.

    INDEX + MATCH Free

  2. In H2:H4, find each employee's salary.

    INDEX + MATCH Free

  3. In I2:I4, find the shipping cost for the city and weight in the table on the left.

    Lookup by Row and Column Free

  4. In F2:F4, look up the item name for each code in column E.

    The VLOOKUP Function Free

  5. In F2:F5, look up the item name for each SKU. If the SKU does not exist, show "Not in catalog".

    XLOOKUP Free

  6. In E2:E5, calculate the order total.

    A Lookup Table on Another Sheet Free

  7. In F10:F13, find the prepayment discount from the scale in F2:G5 (approximate match on the number of months).

    Practice: Lookups Free

  8. In J2:J4, find the course code by teacher (the code is to the left!). If there is no such teacher, show "No course".

    Practice: Lookups Free

Worked answers

Try the spreadsheet first, then compare your formula and result.

Return a rate by employee ID

What hourly rate belongs to employee E204?

Formula: =INDEX(D2:D5,MATCH("E204",A2:A5,0)) → 39

Return a team by name

Which team does Luis belong to?

Formula: =INDEX(C2:C5,MATCH("Luis",B2:B5,0)) → Sales

Frequently asked questions

Why use INDEX MATCH?

It can look in any direction, keeps the key and return ranges explicit, and extends naturally to two-way lookups.

Why am I getting the wrong adjacent row?

Your lookup and return ranges may start on different rows. Make them the same height and align their first data rows.

Is XLOOKUP easier?

Often, yes. INDEX MATCH remains useful for older workbooks, two-dimensional patterns, and interviews that test lookup fundamentals.