Formatting Issues

Highlight Dates at Least Two Years Old in Excel

Olivia MillerOlivia Miller Nov 18, 2026 868 views

Question details

Automatically highlight employee acceptance-letter dates that are at least two years old.

Highlight Dates at Least Two Years Old in Excel
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.
Before you start

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.

Solution 1Recommended

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.

1
Select the date cells

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.

2
Create a formula rule

On the Home tab, select Conditional Formatting > New Rule, then choose Use a formula to determine which cells to format.

3
Enter the formula

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.

4
Choose the highlight

Select Format, open the Fill tab, choose red, and select OK. Select OK again to apply the rule.

Create a Conditional Formatting Rule for Dates at Least Two Years Old
How the rule works: EDATE calculates the date 24 calendar months before today. ISNUMBER prevents blank cells and text values from being highlighted. The result updates when Excel recalculates.
WPS Spreadsheets

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. 1. Open the workbook: Open WPS Spreadsheets and choose Open to select your employee workbook.
  2. 2. Select the dates: Select the acceptance-letter date cells, excluding the header.
  3. 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. 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.
Automatically checks dates against the current dateUses calendar months rather than a fixed number of daysOpens and saves Microsoft Excel XLSX filesProvides familiar spreadsheet formatting tools
microsoft office alternative - wps office

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.