0
0
Excelspreadsheet~20 mins

HLOOKUP function in Excel - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
HLOOKUP Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📊 Formula Result
intermediate
2:00remaining
What is the output of this HLOOKUP formula?
Given the table below in cells A1:D3:

A1: Year | B1: 2020 | C1: 2021 | D1: 2022
A2: Sales | B2: 100 | C2: 150 | D2: 200
A3: Profit | B3: 20 | C3: 30 | D3: 40

What is the result of the formula =HLOOKUP(2021, A1:D3, 3, FALSE)?
A150
B30
C40
D20
Attempts:
2 left
💡 Hint
Remember, HLOOKUP searches the first row and returns value from the specified row number.
Function Choice
intermediate
2:00remaining
Which formula correctly returns the profit for year 2022?
Using the same table as above, which formula will return the profit value for 2022?
A=INDEX(A1:D3, 3, MATCH(2022, A1:D1, 0))
B=VLOOKUP(2022, A1:D3, 3, FALSE)
C=HLOOKUP(2022, A1:D3, 3, FALSE)
D=HLOOKUP(2022, A1:D3, 2, FALSE)
Attempts:
2 left
💡 Hint
HLOOKUP searches horizontally in the first row and returns value from the specified row.
📊 Formula Result
advanced
2:00remaining
What is the output of this HLOOKUP with approximate match?
Given the table:

A1: Score | B1: 0 | C1: 50 | D1: 75 | E1: 90
A2: Grade | B2: F | C2: C | D2: B | E2: A

What is the result of =HLOOKUP(80, A1:E2, 2, TRUE)?
AF
BC
CA
DB
Attempts:
2 left
💡 Hint
With approximate match TRUE, HLOOKUP finds the largest value less than or equal to lookup value.
🎯 Scenario
advanced
2:00remaining
You want to find a value but get #N/A error. What is the likely cause?
You use the formula =HLOOKUP(2023, A1:D3, 2, FALSE) on the table:

A1: Year | B1: 2020 | C1: 2021 | D1: 2022
A2: Sales | B2: 100 | C2: 150 | D2: 200
A3: Profit | B3: 20 | C3: 30 | D3: 40

But the formula returns #N/A. Why?
AThe lookup value 2023 is not found in the first row.
BThe row index 2 is invalid for the table.
CThe range A1:D3 is missing headers.
DThe formula needs TRUE instead of FALSE for exact match.
Attempts:
2 left
💡 Hint
Check if the lookup value exists in the first row when using exact match.
data_analysis
expert
2:00remaining
How many items does this HLOOKUP formula return when used in an array formula?
Given the table:

A1: Month | B1: Jan | C1: Feb | D1: Mar
A2: Sales | B2: 100 | C2: 120 | D2: 130
A3: Profit | B3: 20 | C3: 25 | D3: 30

What is the result of the array formula =HLOOKUP({"Jan","Mar"}, A1:D3, 3, FALSE) entered with Ctrl+Shift+Enter in Excel?
AAn array with two values: {20, 30}
BA single value: 20
CAn error because HLOOKUP does not support arrays
DAn array with three values: {20, 25, 30}
Attempts:
2 left
💡 Hint
HLOOKUP can return multiple values when given an array of lookup values.