Lookup Functions
Advanced

Two-way lookup with VLOOKUP and MATCH

VLOOKUP finds the row; MATCH tells it which column.

Task:

The staffing table has one row per site and one column per shift. In C10:C12 return the headcount for each site and shift requested, using VLOOKUP with MATCH for the column.

Hints

+5 XPno-hints bonus

Solve it on your own to keep the bonus. Each hint gets one step closer to the formula.

The data in this exercise

This is the grid you start with. Cell references in the task — B6, C2 — point at the row numbers and column letters below.

12 rows × 4 columns3 cells you fill in
ABCD
1SiteEarlyLateNight
2Leeds14116
3Hull984
4York12105
5Selby763
6
7
8
9SiteShiftHeadcount
10HullNight
11LeedsLate
12SelbyEarly
What this exercise teachesMay contain the answer

Matching against the whole header row, including the Site column, makes MATCH count columns exactly the way VLOOKUP does. Match against only B1:D1 and every result shifts one column left — the most common two-way lookup bug.