- To post as a guest, your comment is unpublished.· 3 months agoHi Madhu,
The first method in this artice can help you solve the problem. Please have a try.
How to conditional format dates less than/greater than today in Excel?
You can conditional format dates based on current date in Excel. For example, you can format dates before today, or format dates greater than today. In this tutorial, we will show you how to use the TODAY function in conditional formatting to highlight due dates or future dates in Excel in details.
Let’s say you have a list of date as below screenshot shown. For letting the due dates and the future dates outstanding, please do as follows.
1. Select the range A2:A15, then click Conditional Formatting > Manage Rules under Home tab. See screenshot:
2. In the Conditional Formatting Rules Manager dialog box, click the New Rule button.
3. In the New Formatting Rule dialog box, you need to:
1). Select Use a formula to determine which cells to format in the Select a Rule Type section;
2). For formatting the dates older than today, please copy and paste the formula =$A2<TODAY() into the Format values where this formula is true box;
For formatting the future dates, please use this formula =$A2>TODAY();
3). Click the Format button. See screenshot:
4. In the Format Cells dialog box, specify the format for the due dates or future dates, and then click the OK button.
5. Then it returns to the Conditional Formatting Rules Manager dialog box. And the due dates formatting rule is created. If you want to apply the rule now, please click the Apply button.
6. But if you want to apply the due dates rule and the future dates rule together, please create a new rule with the future date formatting formula by repeating the above steps from 2 to 4.
7. When it returns to the Conditional Formatting Rules Manager dialog box again, you can see the two rules are showing in the box, please click the OK button to start formatting.
Then you can see the dates older than today and the date greater than today are successfully formatted.
Easily conditional format every n row in selection:
Kutools for Excel's Alternate Row / Column Shading utility help you to easily add conditional formatting to every n row in Excel selection.
Download the full feature 30-day free trail of Kutools for Excel now!
- How to conditional format cells based on first letter/character in Excel?
- How to conditional format cells if containing #na in Excel?
- How to conditional format or highlight first recurrence in Excel?
- How to conditional format negative percentage in red in Excel?
You are guest
or post as a guest, but your post won't be published automatically.
- To post as a guest, your comment is unpublished.· 3 months agoI want to ignore blank cells which doesn't have a date i.e I do not want blank cells to be highlighted when I am comparing dates<Today(). Please help
- To post as a guest, your comment is unpublished.· 8 months ago1 colum has the dates in it i want another colum to change colour when this formula is applied.
- To post as a guest, your comment is unpublished.· 6 months agoHi grant,
Supposing you want to change the cell color in column B based on dates in column A, please select the column B cells (such as B2:B21), and apply the conditional formatting function with the above formulas =$A2>Today() or =$A2<Today().
- To post as a guest, your comment is unpublished.· 9 months agoHello! can anyone help me?
I have =TODAY() formula in A1 and need 3 more rules to work as per below
rule 1 all dates 8 to 14 days older than today
rule 2 : all dates older 14 to 30 days than today
rule 3: all dates 31 or more days older than today
- To post as a guest, your comment is unpublished.· 9 months agoit should be something like this:
if(*cell*+8>Today();if(*cell*+14<Today();"8-14 from today";"N/A"))
- To post as a guest, your comment is unpublished.· 2 years agoDoes it consider the year?
- To post as a guest, your comment is unpublished.· 1 years agoHi,
It takes the year into consideration.
- To post as a guest, your comment is unpublished.· 2 years agoThis does not work for me. Today is 4/12/18. I want it to highlight dates older than today so I copied the formula =$A2<TODAY() and changed the A to an E since it's column E for me. It's highlighting dates of 5/1/21, etc.
- To post as a guest, your comment is unpublished.· 2 years agoThis also highlights any cells that do not have a date in them, how can they be ommitted?
- To post as a guest, your comment is unpublished.· 2 years agoI have this question es well, do you receive a response?
I tried to add in a isblank function into the formula but no luck
- To post as a guest, your comment is unpublished.· 2 years agoDear Cody and Warren,
Please change the formula to =AND(CELL("FORMAT",A2)="D4",A2 in your conditional formatting rule. Thank you for your comment.
- To post as a guest, your comment is unpublished.· 2 years agoThis did not work for me. Can you tell me what the variables of this formula are? I have 3 columns I am looking to do this for... do I need to do it separately for each or can I select all the cells in all 3 columns into one formatting? Do I need a cell for TODAY to base the formula off of? Sorry... self taught excel user=asks questions that others might consider simple.
- To post as a guest, your comment is unpublished.· 3 years agoThank you for your article. I want to hi light a cell when the date is 60 days in the future. Can you help me write the correct formula to achieve this please.
- To post as a guest, your comment is unpublished.· 8 months ago=AND($D2-$C2>=0,$D2-$C2>=60)
D2- End Date