Apply Conditional Formatting for Dates Older Than Today in Excel

Let’s consider a shipment date of 10 items. The name of the items is in column B, their delivery time is in column C. So, our dataset is in the range of cells B5:C14. We get today’s date in cell D5 using the TODAY function.

The TODAY function will change the date automatically when you open the file on your device. The images in this article may not match your result.


Method 1 – Apply Simple Conditional Formatting to Highlight Dates Older Than Today

Steps:

  • Select the range of cells C5:C14.
  • In the Home tab, click on the drop-down arrow of the Conditional Formatting option from the Styles group and choose the New Rules option.

Launching New Formatting Rule dialog box to apply conditional formatting dates older than today

  • A small dialog box called the New Formatting Rule will appear.
  • Select the Format only cells that contain option.
  • In the second field, change the option from between to less than.

Choosing Format only cells that contain option

  • In the next empty field, copy the following formula:

=TODAY()

  • Click the Format button.

Setting the suitable criteria

  • Another dialog box called Format Cells will appear.
  • In the Fill tab, choose a cell color. We chose Orange, Accent 2, Lighter 40% color.
  • Click OK to close the dialog box.

  • Click OK to close the New Formatting Rule dialog box.

  • You will see the dates which are older than today will get our desired cell color.

Simple Method to Apply Conditional Formatting to Highlight Dates Older Than Today

Read More: Highlight Row with Conditional Formatting Based On Date in Excel


Method 2 – Apply Conditional Formatting for Dates Older Than Today Using a Range

Steps:

  • Select the range of cells C5:C14.
  • In the Home tab, click on the drop-down arrow of the Conditional Formatting option from the Styles group and choose the New Rules option.

Opening Conditional Formatting dialog box to apply conditional formatting

  • A small dialog box called the New Formatting Rule will appear.
  • Select the Use a formula to determine which cells to format option.

Use a formula to determine which cells to format to apply conditional formatting dates older than today

  • In the empty field below the text Format values where this formula is true, copy the following formula:

=C4>TODAY()-10

  • Click the Format button.

Writing suitable formula to apply conditional formatting dates older than today

  • Choose a Fill color from the selector.
  • Click OK.

  • Click OK to close the New Formatting Rule dialog box.

  • The dates which are older than 10 days from today are now highlighted.

Apply Conditional Formatting to Highlight Dates Older Than Today Using Range

Read More: Excel Conditional Formatting Based on Date


Method 3 – Highlight Dates Using Conditional Formatting Between Today and 30 Days Ago (Range of Dates)

Steps:

  • Select the range of cells C5:C14.
  • In the Home tab, click on the drop-down arrow of the Conditional Formatting option from the Styles group and choose the New Rules option.

Opening New Formatting Rule dialog box to apply conditional formatting dates older than today

  • A small dialog box called the New Formatting Rule will appear.
  • Select the Format only cells that contain option.

Selecting Format only cells that contain option to apply conditional formatting

  • In the third empty box, copy the following:

=TODAY()

  • In the remaining empty box, insert the following formula:

=TODAY()-30

  • Click the Format button.

Applying formula using TODAY function in the empty box to apply conditional formatting

  • Choose a color from the Fill tab.
  • Click OK to close the Format cells dialog box.

  • Click OK to close the New Formatting Rule dialog box.

  • Excel will highlight dates that are between today and 30 days ago.

Highlight Dates by Conditional Formatting between Today and 30 Days Ago (Range of Dates)

Read More: How to Change Cell Color Based on Date Using Excel Formula


Apply Conditional Formatting for Dates within 90 Days

Steps:

  • Select the range of cells C5:C14.
  • In the Home tab, click on the drop-down arrow of the Conditional Formatting option from the Styles group.
  • Select Highlight Cell Rules and choose the Between option.

Choosing Between option to apply conditional formatting to highlight older dates within 90 days from today

  • A small dialog box called Between will appear.
  • In the first box, remove the default date and insert the following formula:

=TODAY()

  • In the next value box, copy the following formula:

=TODAY()-90

  • If you want your custom format, select the Custom Format option from the drop-down arrow and create your custom formatting.
  • Click OK to close the dialog box.

Utilizing TODAY function to apply conditional formatting to highlight older dates within 90 days from today

  • Excel will highlight dates no older than 90 days ago.

Apply Conditional Formatting for Dates within 90 Days from Today

Read More: Excel Conditional Formatting for Dates within 30 Days


Perform Conditional Formatting for Dates Within 6 Months from Today

Steps:

  • Select the range of cells C5:C14.
  • In the Home tab, click on the drop-down arrow of the Conditional Formatting option from the Styles group.
  • Select Highlight Cell Rules and choose the Between option.

Choosing Between option to apply conditional formatting to highlight older dates

  • A small dialog box called Between will appear.
  • In the first value box, remove the default date and insert the following:

=TODAY()

  • In the second value box, insert the following:

=TODAY()-180

  • Customize the format if you want by clicking the third box.
  • Click OK to close the dialog box.

Using TODAY function to apply conditional formatting to highlight older dates within 180 days or 6 months from today

  • You will get the dates with the default highlighting color.

Perform Conditional Formatting for Dates Within 6 Months from Today


Use Conditional Formatting for Dates Within 1 Year

Steps:

  • Select the range of cells C5:C14.
  • In the Home tab, click on the drop-down arrow of the Conditional Formatting option from the Styles group.
  • Select Highlight Cell Rules and pick the Between option.

Choosing Between option to apply conditional formatting to highlight older dates

  • A small dialog box called Between will appear.
  • In the first value box, remove the default date and insert the following:

=TODAY()

  • In the second box, insert the following:

=TODAY()-365

  • Customize the format in the third box if you want.
  • Click OK to apply the formatting.

Using TODAY function to apply conditional formatting to highlight older dates within 365 days or 1 year from today

  • You will get the dates with the chosen highlighting color.

Use Conditional Formatting for Dates Within 1 Year


Download Practice Workbook

Download this workbook for practice. Modify the dates to check if the highlighting works.


Related Articles

<< Go Back to Conditional Formatting Based on Date | Conditional Formatting | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Md. Abdullah Al Murad
Md. Abdullah Al Murad

Md. Abdullah Al Murad is a computer engineer who loves exploring Excel and VBA programming. Programming, to him, is a time-saving tool for efficiently managing data, files, and internet tasks. He is proficient in C, C++, Python, JavaScript, HTML, SQL, MySQL, PostgreSQL, Microsoft Office, and VBA and goes beyond the basics. He holds a B.Sc. in Computer Science and Engineering from American International University-Bangladesh. He has transitioned into the role of a content developer. Beyond his work, find... Read Full Bio

4 Comments
  1. Very clear instructions. How to make it so the blanks don’t get filled in?

    • Reply Avatar photo
      Osman Goni Ridwan Aug 21, 2022 at 10:49 AM

      Hello, JACK! For this, you have to add a new conditional Formatting rule. Go to Home tab >> Conditional Formatting >> New Rule.

      Then, Select the “Format Only Cells That Contain” and select the “Blanks” option in the “Format only cells with” box.

      Then, go to the “Format” option and select White as the fill color.

      Try this and let us know the outcome. Thank you!

  2. Is there a way to apply this rule so that the entire row is highlighted instead of just the cell?

    • Hello Noelle,

      To highlight the entire row, insert the following formula: =$C5 < TODAY()

      Formula

      In applies to select the rows
      Applies to

      Regards
      ExcelDemy

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo