Cellgrids Cellgrids
Home › Practice questions › HLOOKUP › Question 1

Excel HLOOKUP Practice Question: Look up the sales of each month in the table A1:E2. Put the results in B5 to B7.

By Rinkesh Shah, founder of Cellgrids.

The question

Look up the sales of each month in the table A1:E2. Put the results in B5 to B7.

The data

ABCDE
1JanFebMarAprMay
210015012018090
3
4MonthSales
5Feb?
6May?
7Jan?

The yellow cells are where your answer goes.

Show answer

Expected results:

  • B5 = 150
  • B6 = 90
  • B7 = 100

How it works

Explanation: HLOOKUP looks for the month in the top row of the table and returns the value from the row number you give (2 here).
Syntax: =HLOOKUP(A5,$A$1:$E$2,2,FALSE)
Feb has 150. May has 90. Jan has 100.

Try it yourself in the live sheet

Type your formula in the highlighted cell and get instant feedback. Free, no Excel install needed.

Try this question in the live sheet →

HLOOKUP syntax

=HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup])

Like VLOOKUP but searches across the first row and pulls a value down a column. Pulling a specific month's figure from a report laid out horizontally instead of in columns. Full HLOOKUP guide.

More HLOOKUP practice questions

All practice questions · Excel exercises · Interview prep · Cheat sheet