Complete the formula to highlight cells with dates greater than today.
=A1 [1] TODAY()The formula checks if the date in cell A1 is after today.
Complete the formula to highlight dates within the last 7 days.
=AND(A1 >= TODAY() [1] 7, A1 <= TODAY())
The formula checks if the date in A1 is between today and 7 days ago.
Fix the error in the formula to highlight dates older than 30 days.
=A1 [1] TODAY() - 30
To highlight dates older than 30 days, check if A1 is less than (before) today minus 30 days.
Fill both blanks to highlight dates that are weekends.
=OR(WEEKDAY(A1) = [1], WEEKDAY(A1) = [2])
In Excel, WEEKDAY returns 1 for Sunday and 7 for Saturday by default.
Fill all three blanks to highlight dates in the current month.
=AND(MONTH(A1) = [1], YEAR(A1) = [2], A1 <= [3])
This formula checks if the date in A1 is in the same month and year as today and is not a future date.
