Cookies help us deliver our services. By using our services, you agree to our use of cookies.
Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in


How to highlight/conditional formatting dates older than 30 days in Excel?

If you have a range of date data as below screenshot shown, and you want to highlight the date cells older than 30 days since now, would you highlight them one by one manually? Now I will tell you a quick way to highlight dates older than 30 days with Conditional Formatting feature in Excel.


Highlight dates older than 30 days

arrow blue right bubble Highlight dates older than 30 days

With Excel’s Conditional Formatting function, you can quickly highlight dates older than 30 days.

1. Select the dates data and click Home > Conditional Formatting > New Rule. See screenshot:


2. In the New Formatting Rule dialog, select Use a formula to determine which cells to format from Select a Rule Type list, and type this formula =L1<TODAY()-30 into Format values where this formula is true text box. See screenshot:


Tip: in the above formula, L1 indicates the first cell of your data range, and 30 indicates older than 30 days, you can change them as your need.

3. Then click Format to go to the Format Cells dialog, and click Fill tab, then select the color you need to highlight the cells. See screenshot:


4. Click OK > OK to close dialogs. Now the dates older than 30 day since today are highlighted.


Tip: If the data in the range is changed, the highlighting is changed, too.

Relative Articles:

Recommended Productivity Tools

Office Tab

gold star1 Bring handy tabs to Excel and other Office software, just like Chrome, Firefox and new Internet Explorer.

Kutools for Excel

gold star1 Amazing! Increase your productivity in 5 minutes. Don't need any special skills, save two hours every day!

gold star1 300 New Features for Excel, Make Excel Much Easy and Powerful:

  • Merge Cell/Rows/Columns without Losing Data.
  • Combine and Consolidate Multiple Sheets and Workbooks.
  • Compare Ranges, Copy Multiple Ranges, Convert Text to Date, Unit and Currency Conversion.
  • Count by Colors, Paging Subtotals, Advanced Sort and Super Filter,
  • More Select/Insert/Delete/Text/Format/Link/Comment/Workbooks/Worksheets Tools...

Screen shot of Kutools for Excel

Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Delmar Penner · 24 days ago
    Hi there, I've searched far and low and have not yet found the specific formatting that I'm looking for. I would like to be able to have a list of all the 5th Sundays in the month, per specific year(There are always 4 months that have 5 Sundays every year).

    So since I don't know how to do that, I have a function that looks at dates (Jan - Dec of a year) and finds the first Sunday of the month, then adds 4 weeks to that, which would give me the 5th Sunday of the month.


    So some months the resulting dates actually show up in the next month - well all of the ones that don't have 5 Sundays.
    So now I was thinking if I could at least have conditional formatting where the "DAY" value in the date is above a certain number, then I could at least easily highlight the ones that have 5 Sundays. But I have not been able to figure it out. Can someone help me with that? It seems to me it should be simple to have a conditional formatting that highlights all the days that are after the middle of the month, regardless of which month or year it is.
  • To post as a guest, your comment is unpublished.
    Pam · 6 months ago
    I am using the Highlighting function with dates greater than 90 days, but then I have a completed date that I would like to use that will remove the highlight when a date is added to this cell. Example Due Date - Highlighted Cell - Completed Date. Is there a formula that will do this?
  • To post as a guest, your comment is unpublished.
    Allan · 1 years ago
    Is it possible to compare 2 dates like; (first date > (second date+5)), and condition a cell colour based on the result?
    • To post as a guest, your comment is unpublished.
      Pratap · 9 months ago
      Yes, you just need to compare the cells $n$m>,<,=$o$p

      Let me know if it works or else, I will provide you another video

      Reach me out
  • To post as a guest, your comment is unpublished.
    Erica · 1 years ago
    I got the above down but what if I only wanted to count weekdays? No weekends or holidays.
  • To post as a guest, your comment is unpublished.
    Diana · 1 years ago
    What about highlighting cells if there is an "open" item vs. "closed" and it is greater than a "x" days?