Highlight Dates at Least Two Years Old in Excel
Question details
Automatically highlight employee acceptance-letter dates that are at least two years old.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- An employee worksheet contains acceptance-letter dates that need to be checked against the current date.
- Observed behavior
- Dates at least 24 calendar months before today should receive a red fill, while newer dates remain unhighlighted.
Make sure the acceptance-letter dates are stored as Excel dates rather than text. Identify the first date cell in the range, excluding any header.
Create a Conditional Formatting Rule for Dates at Least Two Years Old
Use EDATE and TODAY to compare each date with the date 24 calendar months ago.
Select the acceptance-letter date range in the worksheet, excluding the column header. For example, select A1:A100 if A1 is the first date cell.
On the Home tab, select Conditional Formatting > New Rule, then choose Use a formula to determine which cells to format.
Enter =AND(ISNUMBER(A1),A1<=EDATE(TODAY(),-24)). Replace both references to A1 with the first cell in your selected range, and leave the references relative so Excel checks each row.
Select Format, open the Fill tab, choose red, and select OK. Select OK again to apply the rule.

Highlight Older Employee Dates in WPS Spreadsheets
Use a formula-based conditional formatting rule in WPS Spreadsheets to highlight acceptance-letter dates that are at least two years old.
- 1. Open the workbook: Open WPS Spreadsheets and choose Open to select your employee workbook.
- 2. Select the dates: Select the acceptance-letter date cells, excluding the header.
- 3. Add a formula rule: On the Home tab, open Conditional Formatting and create a new rule using a formula. Enter =AND(ISNUMBER(A1),A1<=EDATE(TODAY(),-24)), replacing A1 with the first cell in the selected range.
- 4. Set the fill and save: Choose a red fill for the rule, apply it, and select Save to keep the formatting in your workbook.

Frequently Asked Questions
Why use EDATE instead of subtracting 730 days?
EDATE(TODAY(),-24) moves back 24 calendar months, accounting for different month lengths and leap years. Subtracting 730 days uses a fixed number of days.
Will dates exactly two years old be highlighted?
Yes. The <= operator includes dates equal to EDATE(TODAY(),-24), as well as earlier dates.
Why isn't an old date being highlighted?
Check whether the cell contains a real date rather than text, and confirm that the formula references the first cell in the selected range. You can review the rule under Home > Conditional Formatting > Manage Rules.
Does the highlighting update automatically?
Yes. TODAY returns the current date when Excel recalculates, so the rule can highlight additional dates as they reach the 24-month threshold. Check Formulas > Calculation Options and select Automatic if necessary.




