Formatting Issues

Highlight Annual Training Expiration Dates 14 Days Early in Excel

Muhammad TalhaMuhammad Talha Nov 18, 2026 869 views

Question details

Highlight annual training dates when expiration is within the next 14 days.

Highlight Annual Training Expiration Dates 14 Days Early in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
An employee's training expires one year after completion, and the worksheet should flag the approaching expiration.
Observed behavior
The relevant cells should be highlighted from 14 days before expiration through the expiration date.
Before you start

Make sure training completion dates and any date headers are stored as valid Excel dates. Identify the completion-date column and the cells you want to highlight so you can adjust the formula references.

Solution 1Recommended

Highlight a date grid based on each training expiration

Use this method when completion dates are in column B and the dates to test are in row 1.

The rule compares each date header with the training expiration for that row. EDATE calculates expiration as 12 months after completion.

1
Select the date grid

Select D2:S10, or the equivalent range in your worksheet. This example assumes the first completion date is in B2 and the first date header is in D1.

2
Create a formula rule

Go to Home > Conditional Formatting > New Rule, then select Use a formula to determine which cells to format.

3
Enter the formula

Enter =IFERROR(AND(ISNUMBER($B2),ISNUMBER(D$1),D$1>=EDATE($B2,12)-14,D$1<=EDATE($B2,12)),FALSE). Adjust the references to match the top-left cell of your selected range.

4
Choose a highlight

Select Format, choose a fill color, and click OK to save the rule.

Highlight a date grid based on each training expiration
Included dates: The rule highlights dates from 14 days before expiration through the expiration date, inclusive. Dates after expiration are not highlighted.
WPS Spreadsheets

Flag approaching training expirations in WPS Spreadsheets

Use a formula-based conditional formatting rule in WPS Spreadsheets to highlight training records that expire within 14 days.

  1. 1. Open the spreadsheet: Open WPS Spreadsheets and use Open to select your training workbook.
  2. 2. Select the completion dates: Select B2:B10, or the range containing the training completion dates.
  3. 3. Create a conditional formatting rule: Go to Home > Conditional Formatting > New Rule and choose the option to use a formula.
  4. 4. Enter the formula and format: Enter =IFERROR(AND(ISNUMBER($B2),EDATE($B2,12)>=TODAY(),EDATE($B2,12)<=TODAY()+14),FALSE), adjusting B2 to the first selected completion-date cell. Choose a fill color and confirm the rule.
Highlight approaching annual training expirations automaticallyOpen and edit Microsoft Excel XLSX and XLS filesUse a familiar spreadsheet interface and formula-based rulesWork with existing Excel spreadsheets in a free, lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

How can I highlight the entire employee row instead of just the completion date?

Select the employee rows you want to format, then create the TODAY-based rule under Home > Conditional Formatting > New Rule. Keep the completion-date column fixed with $B2 and match the row number to the first selected row.

Why are blank or invalid completion dates not highlighted?

The formulas use ISNUMBER to check for a valid numeric date and IFERROR to suppress errors. Enter a valid date in the completion-date cell and check that the formula references the correct column.

Does the rule highlight training after it has expired?

No. Both rules include an upper limit at the expiration date. To flag overdue training, create a separate conditional formatting rule that compares the expiration date with TODAY().

What happens if training was completed on February 29?

EDATE moves the date forward 12 months and uses the last day of the target month when necessary. For a February 29 completion date, the next annual expiration is February 28 in a non-leap year.