Lookup Functions
Beginner

HLOOKUP from a table laid out sideways

When the keys run along the top, look across instead of down.

Task:

Annual subscription prices are listed by year across row 1, with the price in row 2. In C5:C8 give the price each customer paid in the year they joined.

Interactive Spreadsheet

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.

8 rows × 5 columns4 cells you fill in
ABCDE
1Year2021202220232024
2Price120132145159
3
4CustomerJoinedPrice paid
5Garnet Ltd2023
6Hazel & Co2021
7Indigo plc2024
8Jade Inc2022
What this exercise teachesMay contain the answer

HLOOKUP is VLOOKUP turned on its side: the keys are in the first row and you count rows instead of columns. Tables like this — one column per year or per month — are common in budgets and price histories.