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

Office Tab Enable Tabbed Editing and Browsing in Office, and Make Your Work Much Easier...
Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%
  • Reuse Anything: Add the most used or complex formulas, charts and anything else to your favorites, and quickly reuse them in the future.
  • More than 20 text features: Extract Number from Text String; Extract or Remove Part of Texts; Convert Numbers and Currencies to English Words...
  • Merge Tools: Multiple Workbooks and Sheets into One; Merge Multiple Cells/Rows/Columns Without Losing Data; Merge Duplicate Rows and Sum...
  • Split Tools: Split Data into Multiple Sheets Based on Value; One Workbook to Multiple Excel, PDF or CSV Files; One Column to Multiple Columns...
  • Paste Skipping Hidden/Filtered Rows; Count And Sum by Background Color; Create Mailing List and Send Emails by Cell's Value...
  • Super Filter: Create advanced filter schemes and apply to any sheets; Sort by week, day, frequency and more; Filter by bold, formulas, comment...
  • More than 300 powerful features; Works with Office 2007-2019 and 365; Supports all languages; Easy deploying in your enterprise or organization.

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:

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
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.
    Tagoria · 3 months ago
    It doesn't work well, only the cell L1 is formated and no other one. Only the cell L1 is marked with an other backround color. Pleas add also when and which cells should be marked before clicking on "new rule."
  • To post as a guest, your comment is unpublished.
    Abhishek · 7 months ago
    The issue with less than 30 days is, it is even high

    lighting blank cells.
  • To post as a guest, your comment is unpublished.
    Delmar Penner · 9 months 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 · 1 years 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 · 1 years 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 kunwar.spratap@gmail.com
  • 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?
  • To post as a guest, your comment is unpublished.
    kreemz · 1 years ago
    It works - thanks a lot
  • To post as a guest, your comment is unpublished.
    CS · 2 years ago
    using TODAY is not going to work. I need to highlight annual dates from specific dates. For example, my employees take training at various dates. I need to highlight red cells that are 365 days from their specific date. I have tried DAY, but that doesn't work and EDATE is not effective as far as I can tell for my needs. It is probably a super simple formula but I can't find it.
  • To post as a guest, your comment is unpublished.
    Sarah J · 2 years ago
    I need a formula that does red if greater than 30 days but yellow if less than 30 but greater than 20 days.....help!
  • To post as a guest, your comment is unpublished.
    RandyM · 2 years ago
    THANK YOU SO MUCH!!! I have been searching for a formula to make searching our training database easier to determine who is in need of training. Some of our classes are to be taken every-other-year and some are required annually. I just simply changed the formula to
  • To post as a guest, your comment is unpublished.
    Avri · 2 years ago
  • To post as a guest, your comment is unpublished.
    Anna · 2 years ago
    Doesn't work for me. It highlights some cells but not others -- even cells with the same date in them had some highlighted and others not. I have not found one simple way to highlight all dates OLDER than 6 months. So many sites offer a way to do it, but not one of them have worked for me. I'm relatively advanced in Excel so this is frustrating. This should be easy!!
  • To post as a guest, your comment is unpublished.
    Brandon · 3 years ago
    I have done this rule as instructed and it worked almost perfect. The last cell in my column, though, also highlights as red as if it older than the age specified even though it is not. When I enter a new value underneath that most recent cell, it turns back to white as it should but then the cell I just entered turns red (new most recent value). How do I prevent this?
  • To post as a guest, your comment is unpublished.
    prashant johari · 3 years ago
    how to put the condition to colour the cell if amount is greater than 30 and less than 61