Think about how to compare the date in the cell to today's date minus 30 days.
The formula =A1<TODAY()-30 checks if the date in A1 is earlier than 30 days before today, which means it is older than 30 days.
Remember that the WEEKDAY function returns a number representing the day of the week.
WEEKDAY(B1,2) returns 1 for Monday through 7 for Sunday. Days greater than 5 are Saturday (6) and Sunday (7), so =WEEKDAY(B1,2)>5 correctly identifies weekends.
Use a formula that checks if the date is between today and 7 days from today.
The formula =AND(C1>=TODAY(), C1<=TODAY()+7) checks if the date is today or later but not more than 7 days ahead.
Think about dates that are earlier than today.
The formula =D1<TODAY() highlights dates before today, meaning expired dates.
=E1>=TODAY() to highlight dates in column E that are today or in the future. How can you count how many dates are highlighted without manually counting?Use a function that counts cells meeting the same condition as the formatting formula.
=COUNTIF(E:E, ">="&TODAY()) counts all dates in column E that are today or later, matching the conditional formatting rule.