0
0
Google Sheetsspreadsheet~20 mins

HLOOKUP function in Google Sheets - 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:D2:

A1: "Item"  B1: "Pen"  C1: "Pencil"  D1: "Eraser"
A2: 10 B2: 5 C2: 7 D2: 3

What is the result of the formula =HLOOKUP("Pencil", A1:D2, 2, FALSE)?
A5
B7
C10
D3
Attempts:
2 left
💡 Hint
HLOOKUP searches the first row for the lookup value and returns the value from the specified row number.
Function Choice
intermediate
2:00remaining
Which formula correctly finds the price of "Eraser" in the table?
Using the same table as before:

A1: "Item"  B1: "Pen"  C1: "Pencil"  D1: "Eraser"
A2: 10 B2: 5 C2: 7 D2: 3

Which formula will correctly return the price of "Eraser"?
A=HLOOKUP("Eraser", A1:D2, 2, TRUE)
B=HLOOKUP("Eraser", A1:D2, 1, FALSE)
C=HLOOKUP("Eraser", A1:D2, 2, FALSE)
D=HLOOKUP("Eraser", A2:D3, 2, FALSE)
Attempts:
2 left
💡 Hint
Remember the row index number should point to the row with prices, and exact match is needed.
📊 Formula Result
advanced
2:00remaining
What is the output of this HLOOKUP with approximate match?
Given this table in A1:E2:

A1: 50  B1: 60  C1: 70  D1: 80  E1: 90
A2: "F" B2: "D" C2: "C" D2: "B" E2: "A"

What is the result of =HLOOKUP(75, A1:E2, 2, TRUE)?
A"C"
B"D"
C"B"
D"A"
Attempts:
2 left
💡 Hint
With approximate match TRUE, HLOOKUP finds the largest value less than or equal to the lookup value.
🎯 Scenario
advanced
2:00remaining
You want to find a value but the lookup row is not the first row. What should you do?
You have a table where the first row contains prices and the second row contains product names:

A1: 5  B1: 7  C1: 3
A2: "Pen" B2: "Pencil" C2: "Eraser"

You want to find the price of "Pencil" using HLOOKUP. Which approach will work?
AUse MATCH("Pencil", A2:C2, 0) to find the column, then INDEX(A1:C1, column) to get price
BUse HLOOKUP("Pencil", A2:C2, 1, FALSE)
CUse HLOOKUP("Pencil", A2:C2, 2, FALSE)
DUse HLOOKUP("Pencil", A1:C2, 1, FALSE)
Attempts:
2 left
💡 Hint
HLOOKUP always searches the first row of the range for the lookup value.
📊 Formula Result
expert
2:00remaining
What error does this formula produce?
Given the table:

A1: "Name"  B1: "Age"  C1: "City"
A2: "Alice" B2: 30 C2: "NY"

What error does the formula =HLOOKUP("Bob", A1:C2, 2, FALSE) produce?
A#REF! error
BEmpty string
C0
D#N/A error
Attempts:
2 left
💡 Hint
When HLOOKUP cannot find an exact match with FALSE, it returns a specific error.