0
0
Google Sheetsspreadsheet~20 mins

Borders and background colors in Google Sheets - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Borders and Colors Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📊 Formula Result
intermediate
2:00remaining
What is the background color of cell A1 after applying this formula?
You use the formula =IF(B1>100, "#FF0000", "#00FF00") in a conditional formatting rule for cell A1. If B1 contains 150, what background color will A1 show?
AGreen (#00FF00)
BRed (#FF0000)
CNo color (default white)
DBlue (#0000FF)
Attempts:
2 left
💡 Hint
Think about the condition B1 > 100 and what color is assigned when true.
Function Choice
intermediate
2:00remaining
Which function can you use to set a cell's background color based on its value?
You want to automatically color cells green if their value is above 50 and red if 50 or below. Which Google Sheets feature or function should you use?
AUse Conditional Formatting rules with custom formulas
BUse the IF() function inside the cell to change background color
CUse the COLOR() function in the cell
DUse the SETCOLOR() function in the formula bar
Attempts:
2 left
💡 Hint
Think about how colors are usually applied automatically in Google Sheets.
🎯 Scenario
advanced
2:00remaining
You want to add a thick border only around the outside of a range A1:C3. How do you do this?
You select the range A1:C3. Which border option will add a thick border only around the outside edges of this range, not between the cells inside?
ASelect all cells, then click the 'All borders' button
BSelect the range, then click the 'Inner borders' button and choose thick line style
CSelect each cell individually and add thick borders on all sides
DSelect the range, then click the 'Outer borders' button and choose thick line style
Attempts:
2 left
💡 Hint
Think about which border option affects only the outside edges of a selected range.
📊 Formula Result
advanced
2:00remaining
What happens if you apply this conditional formatting formula to range A1:A5?
Conditional formatting formula: =MOD(ROW(),2)=0 with background color set to light gray. What cells in A1:A5 will have the gray background?
ACells A2, A4 will be gray
BNo cells will be gray
CAll cells A1 to A5 will be gray
DCells A1, A3, A5 will be gray
Attempts:
2 left
💡 Hint
Remember ROW() returns the row number. MOD(ROW(),2)=0 means even rows.
data_analysis
expert
3:00remaining
You have a table with sales data in B2:E6. You want to highlight cells with sales above the average sales of their row. Which conditional formatting formula correctly applies this?
Given the range B2:E6, which formula should you use in conditional formatting to highlight cells in each row that are greater than the average of that row?
A=B2>AVERAGE(B2:E2)
B=B2>AVERAGE(B$2:E$2)
C=B2>AVERAGE($B2:$E2)
D=B2>AVERAGE($B$2:$E$2)
Attempts:
2 left
💡 Hint
Think about how to fix the row reference so it changes per row but columns stay fixed.