0
0
Google Sheetsspreadsheet~20 mins

LABEL for column headers in Google Sheets - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Label Mastery Badge
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 LABEL formula?
Given the formula =LABEL(A1:C1, {"Name", "Age", "City"}) in Google Sheets, what will be the output in the range A1:C1?
Google Sheets
=LABEL(A1:C1, {"Name", "Age", "City"})
AThe cells A1, B1, and C1 will display "Name", "Age", and "City" respectively.
BThe formula will clear the contents of A1:C1 without adding any labels.
CThe formula will produce a #NAME? error because LABEL is not a valid function.
DThe formula will display the array {"Name", "Age", "City"} as text in cell A1 only.
Attempts:
2 left
💡 Hint
Check if LABEL is a valid function in Google Sheets.
🎯 Scenario
intermediate
2:00remaining
How to add headers to a data range without typing in cells?
You want to add column headers "Product", "Price", "Quantity" above your data in cells A2:C10 without manually typing them in A1:C1. Which formula approach can you use?
AUse <code>=SETHEADER(A1:C1, {"Product", "Price", "Quantity"})</code> in cell A1.
BUse <code>=ARRAYFORMULA({"Product", "Price", "Quantity"; A2:C10})</code> in cell A1.
CUse <code>=TRANSPOSE({"Product", "Price", "Quantity"})</code> in cell A1.
DUse <code>=LABEL(A1:C1, {"Product", "Price", "Quantity"})</code> in cell A1.
Attempts:
2 left
💡 Hint
Think about combining headers and data into one array.
Function Choice
advanced
2:00remaining
Which function can dynamically label columns based on the first row?
You want to create a dynamic named range that uses the first row as column headers for your data in A1:D100. Which function helps you extract the headers as a list?
AINDEX(A1:D1, 1, 0)
BFILTER(A2:D100, A1:D1)
CTRANSPOSE(A1:D1)
DSPLIT(A1:D1, ",")
Attempts:
2 left
💡 Hint
You want to get the entire first row as a horizontal array.
data_analysis
advanced
2:00remaining
How many columns will be labeled by this formula?
Given the formula =ARRAYFORMULA({"ID", "Name", "Score"; A2:C10}) in cell A1, how many columns will have headers labeled?
Google Sheets
=ARRAYFORMULA({"ID", "Name", "Score"; A2:C10})
A3 columns will have headers labeled.
BOnly 1 column will have a header labeled.
CNo columns will have headers labeled because the formula is invalid.
D4 columns will have headers labeled.
Attempts:
2 left
💡 Hint
Count the number of items in the header array.
🧠 Conceptual
expert
2:00remaining
What error occurs when using LABEL function in Google Sheets?
You enter =LABEL(A1:C1, {"A", "B", "C"}) in Google Sheets. What error message will you see?
Google Sheets
=LABEL(A1:C1, {"A", "B", "C"})
ANo error; the labels are applied successfully.
B#REF! error because the range is invalid.
C#VALUE! error because the array is malformed.
D#NAME? error because LABEL is not a recognized function.
Attempts:
2 left
💡 Hint
Check if LABEL is a built-in function in Google Sheets.