0
0
Google Sheetsspreadsheet~20 mins

ARRAYFORMULA function in Google Sheets - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
ARRAYFORMULA Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📊 Formula Result
intermediate
2:00remaining
Output of ARRAYFORMULA with simple addition
Given the values in column A as 1, 2, 3, 4 in cells A1 to A4, what will be the output in cells B1 to B4 after entering this formula in B1?

=ARRAYFORMULA(A1:A4 + 5)
Google Sheets
=ARRAYFORMULA(A1:A4 + 5)
A1, 2, 3, 4
B5, 6, 7, 8
C6, 7, 8, 9
DError: Cannot add number to range
Attempts:
2 left
💡 Hint
Think about adding 5 to each number in the range using ARRAYFORMULA.
Function Choice
intermediate
2:00remaining
Choose the correct ARRAYFORMULA to multiply two columns
You have numbers in columns A and B from rows 1 to 3. Which ARRAYFORMULA correctly multiplies each pair of numbers in columns A and B and outputs the results in column C?
A=ARRAYFORMULA(A1:A3 * B1:B3)
B=ARRAYFORMULA(A1 * B1:B3)
C=ARRAYFORMULA(A1:A3 + B1:B3)
D=ARRAYFORMULA(A1:A3 & B1:B3)
Attempts:
2 left
💡 Hint
Multiplying two ranges element-wise requires both ranges to be the same size.
🎯 Scenario
advanced
2:30remaining
Using ARRAYFORMULA to conditionally modify a range
You want to add 10 to values in column A only if they are greater than 5, otherwise keep them unchanged. Which formula entered in B1 will do this for A1:A5?
A=ARRAYFORMULA(A1:A5 * (A1:A5 > 5) + 10)
B=ARRAYFORMULA(IF(A1:A5 > 5, A1:A5 + 10, A1:A5))
C=ARRAYFORMULA(IF(A1:A5 > 5, A1:A5 + 10))
D=ARRAYFORMULA(A1:A5 + IF(A1:A5 > 5, 10))
Attempts:
2 left
💡 Hint
Use IF inside ARRAYFORMULA to apply condition to each element.
data_analysis
advanced
2:30remaining
Counting non-empty cells with ARRAYFORMULA
You want to count how many cells in range A1:A10 are not empty using ARRAYFORMULA combined with another function. Which formula will give the correct count?
A=SUM(ARRAYFORMULA(LEN(A1:A10) > 0))
B=ARRAYFORMULA(COUNTIF(A1:A10, "<>"))
C=ARRAYFORMULA(COUNTA(A1:A10))
D=SUM(ARRAYFORMULA(ISBLANK(A1:A10)))
Attempts:
2 left
💡 Hint
LEN returns length of text, ISBLANK returns TRUE for empty cells.
📊 Formula Result
expert
3:00remaining
Output of ARRAYFORMULA with mixed operations and text
Given column A contains numbers 1, 2, 3 in cells A1 to A3, what is the output in column B after entering this formula in B1?

=ARRAYFORMULA(IF(A1:A3 > 1, "High", "Low"))
Google Sheets
=ARRAYFORMULA(IF(A1:A3 > 1, "High", "Low"))
AHigh, High, High
BError: Cannot compare range with number
CLow, Low, Low
DLow, High, High
Attempts:
2 left
💡 Hint
IF inside ARRAYFORMULA applies condition to each element in the range.