Excel Conditional Formatting: Highlight Future Dates
In this article
To highlight dates in the future with Excel conditional formatting, select your date cells, go to Home > Conditional Formatting > New Rule > Use a formula to determine which cells to format, and enter a formula such as =A2>TODAY() (replacing A2 with the top-left cell of your selection). Then click Format, choose a fill or font colour, and click OK twice. This makes upcoming dates stand out automatically and keeps the highlighting correct as time passes, because TODAY() updates every time the workbook recalculates.
What You'll Need
- Microsoft Excel on Windows, Mac, or the web (the Conditional Formatting menu is available in all current versions; exact labels can differ slightly by version and region).
- A column of dates stored as real Excel dates, not text. If dates are left-aligned by default, they may be text.
- Your date cells selected, and you know which cell is the top-left of the selection.
Step-by-Step
- Check your dates are real dates. Click a date cell and look at the formula bar. If it shows a date (for example 15/03/2025) rather than text, it is a real date. If the dates are text, convert them first: select the column, go to Data > Text to Columns, click Finish, then format the column as a date. Conditional formatting rules that compare dates will not work reliably on text.
- Select the range you want to format. Drag over the date cells, for example A2:A100. Do not include the header row unless you want it formatted too.
- Note the top-left cell of the selection. If you selected A2:A100, the active cell is A2. Your formula must refer to this cell.
- Open the rule dialog. Go to Home > Conditional Formatting > New Rule.
- Choose the formula option. Select Use a formula to determine which cells to format.
- Enter the formula. In the formula box, type
=A2>TODAY(), replacing A2 with your own top-left cell. Do not put a dollar sign before the column or row (write A2, not $A$2) so the rule applies relative to each cell. - Set the format. Click Format, open the Fill tab, pick a colour, and optionally set a bold font on the Font tab. Click OK.
- Apply the rule. Click OK in the New Formatting Rule dialog. Future dates are now highlighted.
- Test it. Type tomorrow's date into an empty cell in the range and confirm it highlights. Delete the test entry afterwards.
- Adjust or remove later. To change the rule, select the range and go to Home > Conditional Formatting > Manage Rules. Select the rule and click Edit Rule or Delete Rule.
Common Mistakes
- Using absolute references. A formula like
=$A$2>TODAY()compares every cell to A2, so the whole range highlights or none of it does. Use a relative reference. - Referring to the wrong cell. The formula must point to the top-left cell of the selected range, not the first data cell if your selection starts elsewhere.
- Dates stored as text. Text dates do not compare correctly with TODAY(). Convert them to real dates first.
- Including blank cells. Blank cells are treated as zero, which is earlier than today, so they normally will not highlight with a future-date rule. If you use a different formula, add a check such as
=AND(A2<>"",A2>TODAY()). - Typing TODAY without brackets. The function needs empty parentheses: TODAY().
- Forgetting that TODAY() has no time component. A date equal to today is not "in the future"; use > for strictly future dates.
Tips
- Use
>=TODAY()if you want today's date included as well as future dates. - For dates within the next 7 days, use
=AND(A2>=TODAY(),A2<=TODAY()+7). - For dates in the past, use
=A2<TODAY(); for overdue items only, combine with a check that the cell is not blank. - Give each rule a clear name in Manage Rules so you can tell them apart later.
- If you copy the formatted cells to another sheet, check that the rule's range still matches where the data now sits.
- TODAY() recalculates when the workbook recalculates or is reopened, so highlighting stays current without manual edits.
Troubleshooting
- Nothing highlights. Check the formula's cell reference against the top-left of your selection, confirm the dates are real dates, and open Manage Rules to make sure the rule applies to the correct range and is not stopped by a conflicting rule above it.
- Everything highlights. You likely used an absolute reference or pointed at a single cell. Rewrite the formula with a relative reference to the top-left cell.
- Only some rows highlight. Look for text-formatted dates mixed in, or stray spaces. Re-enter those dates or clean them with Text to Columns.
- The rule worked, then stopped. Check whether the range was extended or rows were inserted above the first formatted row. Edit the rule's applies-to range in Manage Rules.
- Colours look wrong. Another rule may be taking priority. In Manage Rules, use the stop-if-true option or reorder rules with the arrow buttons.
Frequently Asked Questions
Does the highlighting update automatically as dates pass?
Yes. TODAY() recalculates whenever the workbook recalculates or is reopened, so a date that was in the future stops highlighting once it is no longer ahead of today.
Can I highlight dates in the next 30 days?
Yes. Use a formula rule with =AND(A2>=TODAY(),A2<=TODAY()+30), again replacing A2 with your top-left cell.
Why does my formula use A2 when my data starts in A2?
Because conditional formatting formulas are written relative to the top-left cell of the selected range. Excel shifts the reference for every other cell automatically.
Can I apply this to a whole row based on a date in one column?
Yes. Select the rows, then use a formula that locks the date column, for example =$C2>TODAY(), so each row is judged by its own value in column C.
Does this work in Excel for the web?
Yes, formula-based conditional formatting is available there, though some dialog labels and layout differ from the desktop version.
Will the rule break if I sort or filter the data?
No. The rule stays attached to the cells and moves with them when you sort, provided the formatted range covers the sorted rows.