Review: lookups: practice exercises
VLOOKUP, HLOOKUP, XLOOKUP, INDEX, MATCH. 7 exercises on real-looking data, each marked the moment you press Check. The first exercise is below to try now; the full lesson is part of Pro.
Your turn
In D2, look up each employee's manager using the table in H1:J5.
| A | B | C | D | E | F | G | H | I | J | |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Staff ID | Employee | Team | Manager | Office | Team | Manager | Office | ||
| 2 | 1001 | Grace | Sales | Sales | B. Reid | 2.03 | ||||
| 3 | 1002 | Tom | Finance | Finance | D. Fraser | 1.12 | ||||
| 4 | 1003 | Priya | Support | Support | A. Morgan | G.02 | ||||
| 5 | 1004 | Marek | Marketing | Marketing | C. Lowe | 3.08 | ||||
| 6 | 1005 | Nia | Sales | |||||||
| 7 | 1006 | Ollie | Finance | |||||||
| 8 | 1007 | Lucy | Support | Staff ID | 1007 | |||||
| 9 | 1008 | Hamza | Marketing | Name | ||||||
| 10 | 1009 | Rachel | Sales | |||||||
| 11 | 1010 | Sunil | Finance | |||||||
| 12 | 1011 | Tanya | Support | |||||||
| 13 | 1012 | Will | Marketing |
How it works
Lookups from earlier lessons, on fresh data. Look at how each table is laid out before you choose: down or across, and whether the answer is left of what you're looking for.
What you'll practise
- In D2, look up each employee's manager using the table in H1:J5.
- The pay table in G1:L3 runs across, with the grades along the top. In C2, look up each person's hourly rate.
- In G3, find the ID of the employee named in G2. The ID is to the left of the name, which VLOOKUP can't do.
- Parking permits go to people in order from this waiting list. In H2, use MATCH to find the position on the list of the person named in H1.
- The on-call rota runs for 12 weeks. In H2, use INDEX to show who is on call in the week number typed in H1.
- In G9, find the office for the employee named in G8 using INDEX and MATCH.
- Commission is paid at a rate that depends on how much someone sold (table in G1:H5). The rate applies to all their sales. In C2, work out each person's commission: sales × their rate.