0
0
Google Sheetsspreadsheet~20 mins

Date-based formatting in Google Sheets - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Date Formatting Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📊 Formula Result
intermediate
2:00remaining
Highlight dates within the next 7 days
You want to highlight cells in column A that contain dates within the next 7 days from today. Which custom formula should you use in conditional formatting?
A=A1>=TODAY()-7
B=AND(A1>TODAY(), A1<TODAY()+7)
C=AND(A1>=TODAY(), A1<=TODAY()+7)
D=A1<TODAY()+7
Attempts:
2 left
💡 Hint
Think about including today and the next 7 days exactly.
Function Choice
intermediate
1:30remaining
Choose the function to check if a date is in the past
Which function correctly returns TRUE if the date in cell B2 is before today?
A=B2<TODAY()
B=ISBEFORE(B2, TODAY())
C=DATEVALUE(B2)<TODAY()
D=B2<=NOW()
Attempts:
2 left
💡 Hint
Compare the date directly to TODAY().
🎯 Scenario
advanced
2:30remaining
Conditional formatting for overdue tasks
You have a list of tasks with due dates in column C. You want to highlight tasks that are overdue (due date before today) but only if the task status in column D is not "Completed". Which custom formula should you use for conditional formatting starting at row 2?
A=AND(C2<TODAY(), D2<>"Completed")
B=AND(C2<=TODAY(), D2!="Completed")
C=IF(C2<TODAY(), D2<>"Completed")
D=AND(C2<TODAY(), NOT(D2="Completed"))
Attempts:
2 left
💡 Hint
Use AND to combine conditions and exact comparison for status.
data_analysis
advanced
2:30remaining
Count dates in the current month
You have dates in column E. Which formula correctly counts how many dates fall in the current month?
A=COUNTIFS(E:E, ">="&EOMONTH(TODAY(),-1)+1, E:E, "<="&EOMONTH(TODAY(),0))
B=COUNTIFS(E:E, ">="&DATE(YEAR(TODAY()), MONTH(TODAY()), 1), E:E, "<"&DATE(YEAR(TODAY()), MONTH(TODAY())+1, 1))
C=COUNTIF(E:E, "<"&EOMONTH(TODAY(),0))
D=COUNTIF(E:E, ">="&TODAY()-DAY(TODAY())+1)
Attempts:
2 left
💡 Hint
Use COUNTIFS with start and end dates of the current month.
📊 Formula Result
expert
2:00remaining
Result of complex date formula
What is the result of this formula if today is June 15, 2024, and cell F1 contains the date June 10, 2024? =IF(AND(F1=EOMONTH(TODAY(), -1)+1), "Last Month", "Other")
A"Last Month"
B"Today"
CError
D"Other"
Attempts:
2 left
💡 Hint
Check if F1 is between the first day of the current month and yesterday.