Highlight Annual Training Expiration Dates 14 Days Early in Excel
Question details
Highlight annual training dates when expiration is within the next 14 days.

- 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.
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.
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.
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.
Go to Home > Conditional Formatting > New Rule, then select Use a formula to determine which cells to format.
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.
Select Format, choose a fill color, and click OK to save the rule.

Highlight completion dates when expiration is approaching today
Use this method to flag employees whose training expires within 14 days of the current date, without a date-header grid.
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. Open the spreadsheet: Open WPS Spreadsheets and use Open to select your training workbook.
- 2. Select the completion dates: Select B2:B10, or the range containing the training completion dates.
- 3. Create a conditional formatting rule: Go to Home > Conditional Formatting > New Rule and choose the option to use a formula.
- 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.

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.




