Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

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.

Conditional format dates before today or dates in the future in Excel


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 60-day free trail of Kutools for Excel now!

Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download the free trial Now!

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; Send Personalized Emails to Multiple Recipients in Bulk.
  • 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.

Conditional format dates before today or dates in the future in Excel


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.


Office Tab - Tabbed Browsing, Editing, and Managing of Workbooks in Excel:

Office Tab brings the tabbed interface as seen in web browsers such as Google Chrome, Internet Explorer new versions and Firefox to Microsoft Excel. It will be a time-saving tool and irreplaceble in your work. See below demo:

Click for free trial of Office Tab!

Office Tab for Excel


Related 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.
    grant · 2 months ago
    1 colum has the dates in it i want another colum to change colour when this formula is applied.

    any ideas?
    • To post as a guest, your comment is unpublished.
      crystal · 14 days ago
      Hi 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.
    SG · 3 months ago
    Hello! 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.
      Lukas · 3 months ago
      it 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.
    Jason · 1 years ago
    Does it consider the year?
  • To post as a guest, your comment is unpublished.
    Jason · 1 years ago
    This 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.
    Cody · 2 years ago
    This 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.
      Warren · 1 years ago
      I 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.
        crystal · 1 years ago
        Dear 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.
          FARRAH LARGE · 1 years ago
          This 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.
    Kim Fabian · 3 years ago
    Thank 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.
      Gabar · 2 months ago
      =AND($D2-$C2>=0,$D2-$C2>=60)

      C2-Start Date
      D2- End Date