Return a rate by employee ID
What hourly rate belongs to employee E204?
Formula: =INDEX(D2:D5,MATCH("E204",A2:A5,0)) → 39
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: in F2, return the employee name for the team in E2 with INDEX and MATCH.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Employee ID | Name | Team | Rate | Find team | |
| 2 | E201 | Omar | Ops | 38 | Finance | |
| 3 | E202 | Mina | Finance | 44 | ||
| 4 | E203 | Luis | Sales | 41 | ||
| 5 | E204 | Hana | Support | 39 |
Answer: =INDEX(B2:B5,MATCH(E2,C2:C5,0))
Open a task in its lesson.
Try the spreadsheet first, then compare your formula and result.
What hourly rate belongs to employee E204?
Formula: =INDEX(D2:D5,MATCH("E204",A2:A5,0)) → 39
Which team does Luis belong to?
Formula: =INDEX(C2:C5,MATCH("Luis",B2:B5,0)) → Sales
It can look in any direction, keeps the key and return ranges explicit, and extends naturally to two-way lookups.
Your lookup and return ranges may start on different rows. Make them the same height and align their first data rows.
Often, yes. INDEX MATCH remains useful for older workbooks, two-dimensional patterns, and interviews that test lookup fundamentals.
Enter — commit · F2 — edit · F4 — $ in a reference · Ctrl+C/Ctrl+V — copy and paste · Ctrl+Z — undo
Esc or F6 — leave the sheet for the «Check» button · Shift+Tab in the first cell — back to the page