0
0
Google Sheetsspreadsheet~10 mins

XLOOKUP function in Google Sheets - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the formula to look up the value in cell A2 within the range B2:B10.

Google Sheets
=XLOOKUP([1], B2:B10, C2:C10)
Drag options to blanks, or click blank then click option'
AD2
BB2
CC2
DA2
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong cell reference for the lookup value.
Confusing the lookup array with the return array.
2fill in blank
medium

Complete the formula to return the value from the range C2:C10 that matches the lookup value in A2.

Google Sheets
=XLOOKUP(A2, B2:B10, [1])
Drag options to blanks, or click blank then click option'
AC2:C10
BB2:B10
CA2:A10
DD2:D10
Attempts:
3 left
💡 Hint
Common Mistakes
Using the lookup array again as the return array.
Choosing a range that does not align with the lookup array.
3fill in blank
hard

Fix the error in the formula to return "Not found" if the lookup value in A2 is missing.

Google Sheets
=XLOOKUP(A2, B2:B10, C2:C10, [1])
Drag options to blanks, or click blank then click option'
A0
B"Not found"
CFALSE
DTRUE
Attempts:
3 left
💡 Hint
Common Mistakes
Using 0 or FALSE which are not descriptive messages.
Forgetting to put text in quotes.
4fill in blank
hard

Fill both blanks to make the formula search for the value in A5, look in B5:B15, and return from C5:C15.

Google Sheets
=XLOOKUP([1], [2], C5:C15)
Drag options to blanks, or click blank then click option'
AA5
BB5:B15
CC5:C15
DA1
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping the lookup value and lookup array.
Choosing ranges that do not match in size.
5fill in blank
hard

Fill all three blanks to create a formula that looks up the value in A3, searches in B3:B12, returns from C3:C12, and shows "Missing" if not found.

Google Sheets
=XLOOKUP([1], [2], [3], "Missing")
Drag options to blanks, or click blank then click option'
AA3
BB3:B12
CC3:C12
DD3:D12
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up the lookup and return ranges.
Forgetting to match the sizes of lookup and return arrays.