0
0
Google Sheetsspreadsheet~20 mins

Custom formula-based rules in Google Sheets - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Custom Formula Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📊 Formula Result
intermediate
2:00remaining
Highlight cells with values greater than the average
You want to create a custom formula-based rule in Google Sheets to highlight cells in column A that have values greater than the average of all values in column A. Which formula should you use in the conditional formatting rule?
A=A1>MAX(A:A)
B=A1>SUM(A:A)/COUNT(A:A)
C=A1>AVERAGE(A:A)
D=A1>MEDIAN(A:A)
Attempts:
2 left
💡 Hint
Think about how to compare each cell to the average of the entire column.
Function Choice
intermediate
2:00remaining
Choose the correct formula to highlight weekends
You want to highlight dates in column B that fall on weekends (Saturday or Sunday) using a custom formula in conditional formatting. Which formula will correctly identify weekend dates?
A=WEEKDAY(B1)=0
B=OR(WEEKDAY(B1)=7, WEEKDAY(B1)=1)
C=IF(WEEKDAY(B1)=6, TRUE, FALSE)
D=WEEKDAY(B1, 2)>5
Attempts:
2 left
💡 Hint
Remember that WEEKDAY can use different numbering systems for days.
🎯 Scenario
advanced
3:00remaining
Create a rule to highlight duplicate entries ignoring case
You want to highlight duplicate text entries in column C regardless of letter case (e.g., "Apple" and "apple" should be considered duplicates). Which custom formula will correctly highlight duplicates ignoring case?
A=COUNTIF(ARRAYFORMULA(LOWER(C:C)), LOWER(C1))>1
B=COUNTIF(C:C, C1)>1
C=COUNTIF(C:C, LOWER(C1))>1
D=COUNTIF(C:C, EXACT(C1, C:C))>1
Attempts:
2 left
💡 Hint
Think about how to compare all entries in lowercase to ignore case.
data_analysis
advanced
3:00remaining
Identify cells with values outside 1.5 times the interquartile range
You want to highlight cells in column D that are outliers, defined as values less than Q1 - 1.5*IQR or greater than Q3 + 1.5*IQR, where IQR = Q3 - Q1. Which custom formula correctly identifies these outliers?
A=OR(D1 < QUARTILE(D:D, 1) - 1.5 * (QUARTILE(D:D, 3) - QUARTILE(D:D, 1)), D1 > QUARTILE(D:D, 3) + 1.5 * (QUARTILE(D:D, 3) - QUARTILE(D:D, 1)))
B=OR(D1 < QUARTILE(D:D, 2) - 1.5 * (QUARTILE(D:D, 4) - QUARTILE(D:D, 1)), D1 > QUARTILE(D:D, 4) + 1.5 * (QUARTILE(D:D, 4) - QUARTILE(D:D, 1)))
C=OR(D1 < MEDIAN(D:D) - 1.5 * (MAX(D:D) - MIN(D:D)), D1 > MEDIAN(D:D) + 1.5 * (MAX(D:D) - MIN(D:D)))
D=OR(D1 < PERCENTILE(D:D, 0.25) - 1.5 * (PERCENTILE(D:D, 0.75) - PERCENTILE(D:D, 0.25)), D1 > PERCENTILE(D:D, 0.75) + 1.5 * (PERCENTILE(D:D, 0.75) - PERCENTILE(D:D, 0.25)))
Attempts:
2 left
💡 Hint
Recall the definition of quartiles and interquartile range (IQR).
📊 Formula Result
expert
3:00remaining
Custom formula to highlight rows where sum of columns E and F exceeds 100
You want to highlight entire rows where the sum of values in columns E and F is greater than 100. You apply a custom formula-based rule starting from row 2. Which formula should you use to correctly highlight these rows?
A=SUM(E2:F2)>100
B=SUM($E2:$F2)>100
C=$E$2+$F$2>100
D=$E2+$F2>100
Attempts:
2 left
💡 Hint
Think about how to sum values in columns E and F for each row dynamically.