Complete the formula to highlight cells with dates equal to today.
=A1=[1]()The TODAY() function returns the current date without time, perfect for date comparisons.
Complete the formula to highlight dates before today.
=A1 [1] TODAY()The less than operator < checks if the date in A1 is before today.
Fix the error in the formula to highlight dates within the last 7 days.
=AND(A1>=TODAY()-[1], A1<=TODAY())Subtracting 7 from TODAY() checks dates from 7 days ago up to today.
Fill both blanks to highlight dates in the current month.
=AND(MONTH(A1)=[1], YEAR(A1)=[2])
Compare the month and year of A1 to the current month and year using MONTH(TODAY()) and YEAR(TODAY()).
Fill all three blanks to highlight dates that are weekends.
=OR(WEEKDAY(A1)=[1], WEEKDAY(A1)=[2], WEEKDAY(A1)=[3])
In Google Sheets, WEEKDAY() returns 1 for Sunday and 7 for Saturday by default. Including 6 is incorrect for weekend days.
The correct weekend days are Sunday (1) and Saturday (7). The third blank is a distractor to check understanding.