How to Highlight the Next Date After Today Using Conditional Formatting in Excel
Question details
The user needs a conditional formatting rule to highlight the earliest upcoming date in a dataset when today's date is not present, without highlighting all subsequent future dates.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Managing a schedule or task list where the user wants to visually identify the immediate next relevant date when there are no entries for the current day.
- Observed behavior
- Standard conditional formatting for future dates highlights all dates greater than today, or requires complex nested IF statements. The user wants a dynamic way to pinpoint only the closest upcoming date.
Ensure that the cells in your date column contain valid numerical Excel dates rather than plain text strings, otherwise the MINIFS and TODAY functions will not calculate properly.
Highlight All Rows Matching the Next Available Date
Use a formula combining AND, COUNTIF, MINIFS, and TODAY to find and highlight the closest upcoming date when today's date is absent from the dataset.
This formula checks if today's date is missing from your range. If it is missing, the MINIFS function evaluates the entire column to find the absolute smallest date that is strictly greater than today. This approach dynamically finds the next date whether it is tomorrow, next week, or next year, eliminating the need for nested IF statements.
Highlight the data range you want to apply the formatting to, for example, cells A3:B32.
Navigate to the Home tab on the ribbon, click 'Conditional Formatting', and select 'New Rule'.
In the dialog box, select 'Use a formula to determine which cells to format'.
Enter the following formula: =AND(COUNTIF($A$3:$A$32,TODAY())=0,$A3=MINIFS($A$3:$A$32,$A$3:$A$32,">"&TODAY()))
Click the 'Format' button, choose your desired fill color on the Fill tab, and click OK twice to apply the rule.

Highlight Only the First Occurrence of the Next Date
Limit the conditional formatting highlight to only the first row of the next available date, even if multiple rows share that exact same date.
Easily Track Important Dates in WPS Spreadsheet
WPS Spreadsheet fully supports advanced conditional formatting formulas, including TODAY, COUNTIF, and MINIFS. You can build dynamic schedules, highlight upcoming deadlines, and manage your data effortlessly with a familiar, highly compatible interface.
- 1. Open your file in WPS Spreadsheet: Launch WPS Office and open the spreadsheet containing your date records.
- 2. Highlight the date range: Select the cells you want to format using your mouse.
- 3. Access Conditional Formatting: Navigate to the Home tab, click on Conditional Formatting, and select New Rule.
- 4. Apply the MINIFS formula: Choose the formula option, paste the MINIFS formula provided in the solutions, and set your desired highlight color.

Frequently Asked Questions
Why is the conditional formatting formula not working on my date column?
Your dates might be stored as text rather than valid numerical dates. To verify, select a date cell and change its format to 'General'. If it changes to a 5-digit number (like 45000), it's a valid date. If it stays looking like a date, it is stored as text and needs to be converted.
Will this formula work if the next available date is weeks or months away?
Yes, the MINIFS function evaluates the entire specified range and finds the absolute smallest date that is strictly greater than today. It works perfectly regardless of how far in the future the next available date is.
What happens to the highlight if today's date is actually present in the list?
Because the formula includes the condition 'COUNTIF(...,TODAY())=0' (or <1), this specific rule is ignored entirely if today's date exists in the range. It will only activate to find the next date when today's date is completely absent.
Can I use these formulas in WPS Office?
Yes, WPS Spreadsheet fully supports MINIFS, COUNTIF, and TODAY functions. You can apply the exact same conditional formatting rules in WPS Office as you would in Microsoft Excel.




