0
0
Google Sheetsspreadsheet~20 mins

Alternating row colors in Google Sheets - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Alternating Row Colors Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📊 Formula Result
intermediate
1:30remaining
What color will row 5 be with this formula?
You apply this custom formula for alternating row colors in Google Sheets:
=ISEVEN(ROW())
What color will row 5 have if the first color is white and the second color is light gray?
Google Sheets
=ISEVEN(ROW())
ALight gray (second color)
BNo color (default)
CWhite (first color)
DRed (error color)
Attempts:
2 left
💡 Hint
Remember that ROW() returns the row number and ISEVEN checks if it is even.
Function Choice
intermediate
1:30remaining
Which formula colors odd rows in alternating colors?
You want to color odd rows with the first color and even rows with the second color using conditional formatting. Which formula should you use?
A=ISEVEN(COLUMN())
B=ISODD(ROW())
C=MOD(ROW(),2)=0
D=ROW()=ODD(ROW())
Attempts:
2 left
💡 Hint
Think about which function checks if a number is odd.
🎯 Scenario
advanced
2:00remaining
You want to alternate colors every 3 rows. Which formula works?
You want to color rows in groups of 3: first 3 rows one color, next 3 rows another color, then repeat. Which formula should you use in conditional formatting?
A=ISEVEN(INT((ROW()-1)/3))
B=MOD(ROW(),3)=0
C=ISEVEN(MOD(ROW(),3))
D=MOD(INT(ROW()/3),2)=1
Attempts:
2 left
💡 Hint
Divide the row number minus 1 by 3, then check if the result is even or odd.
📊 Formula Result
advanced
1:30remaining
What is the output of this formula for row 10?
Given the formula:
=MOD(ROW()+1,2)=0
What is the result when applied to row 10?
Google Sheets
=MOD(ROW()+1,2)=0
AFALSE
BError
CTRUE
DBlank
Attempts:
2 left
💡 Hint
Calculate ROW()+1 for row 10, then find the remainder when divided by 2.
data_analysis
expert
2:30remaining
How many rows will be colored with this formula in a 20-row sheet?
You apply this formula for alternating row colors:
=MOD(ROW(),4)<2
How many rows will be colored with the first color in a sheet with 20 rows?
Google Sheets
=MOD(ROW(),4)<2
A8 rows
B5 rows
C12 rows
D10 rows
Attempts:
2 left
💡 Hint
MOD(ROW(),4) cycles through 0,1,2,3. The formula colors rows where this value is less than 2.