Practice by topic / Excel / Lookups

HLOOKUP Exercises

Lookups pull a value from one table into another — a price, a name, a rate. They come up in almost every Excel job interview test. These 10 exercises build up step by step, starting with look up a quarterly value, look up a score by category header, look up a month's budget.

3 of 10 free · no sign-up needed · graded on the formula you write

1

Look Up a Quarterly Value

Free

A1:C2 has quarter labels (Q1, Q2, Q3) in row 1 and revenue in row 2. Write a formula in D2 that returns the revenue for Q2 using HLOOKUP.

ABCD
1Q1Q2Q3
2100015001200?
Show the solution

Use =HLOOKUP("Q2",A1:C2,2,FALSE).

Right — HLOOKUP searches across the first row for the match and returns a value from the specified row below it.

Expected result in D2: 1500

Try it in the live spreadsheet →
2

Look Up a Score by Category Header

Free

A1:C2 has category names (Math, Science, Art) in row 1 and scores in row 2. Write a formula in D2 that returns the Science score using HLOOKUP.

ABCD
1MathScienceArt
2859278?
Show the solution

Use =HLOOKUP("Science",A1:C2,2,FALSE).

Good — HLOOKUP is the row-oriented counterpart to VLOOKUP, searching horizontally instead of vertically.

Expected result in D2: 92

Try it in the live spreadsheet →
3

Look Up a Month's Budget

Free

A1:C2 has month names in row 1, budget amounts in row 2. Write a formula in D2 that returns the budget for 'Feb' using HLOOKUP.

ABCD
1JanFebMar
2500600550?
Show the solution

Use =HLOOKUP("Feb",A1:C2,2,FALSE).

Right — HLOOKUP finds 'Feb' in row 1 and pulls the value from row 2 of that same column.

Expected result in D2: 600

Try it in the live spreadsheet →
4

Look Up a Team's Points From a Row Header

A1:C2 has team names in row 1, points in row 2. Write a formula in D2 that returns the points for 'Falcons' using HLOOKUP.

ABCD
1HawksFalconsEagles
2455238?

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
5

Look Up a Semester's Enrollment

A1:C2 has semester labels in row 1, enrollment counts in row 2. Write a formula in D2 that returns enrollment for 'Fall' using HLOOKUP.

ABCD
1SpringFallSummer
220035090?

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
6

Look Up a Region's Headcount

A1:C2 has region names in row 1, headcounts in row 2. Write a formula in D2 that returns headcount for 'East' using HLOOKUP.

ABCD
1WestEastNorth
2304520?

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
7

Look Up a Product Line's Margin

A1:C2 has product line names in row 1, margin percentages in row 2. Write a formula in D2 that returns the margin for 'Premium' using HLOOKUP.

ABCD
1BasicPremiumDeluxe
20.20.350.4?

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
8

Look Up a Shift's Staffing Level

A1:C2 has shift names in row 1, staffing counts in row 2. Write a formula in D2 that returns staffing for 'Night' using HLOOKUP.

ABCD
1MorningNightEvening
2846?

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
9

Look Up a Model Year's Price

A1:C2 has model years in row 1, prices in row 2. Write a formula in D2 that returns the price for '2023' using HLOOKUP.

ABCD
1202220232024
2200002200024000?

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
10

Look Up a Version's Release Note Count

A1:C2 has version labels in row 1, note counts in row 2. Write a formula in D2 that returns note count for 'v2' using HLOOKUP.

ABCD
1v1v2v3
25128?

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →