Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, and Excel in Office 365. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Alerts About Approaching Due Dates.

Alerts About Approaching Due Dates

by Allen Wyatt
(last updated February 29, 2020)

1

Jonathan developed a worksheet that tracks due dates for various departmental documents. He wondered if there was a way for Excel to somehow alert him if the due date for a particular document was approaching.

There are several ways that this can be done in Excel, and you should pick the method that is best for your purposes. The first method is to simply add a column to your worksheet that will be used for the alert. Assuming your due date is in column F, you could place the following type of formula in column G:

=IF(F3<(TODAY()+7),"<<<","")

The formula checks to see if the date in cell F3 is earlier than a week from today. If so, then the formula displays "<<<" in the cell. The effect of this formula is to alert you to any date that is either past or within the next week.

Another approach is to use the conditional formatting capabilities of Excel. Follow these steps:

  1. Select the cells that contain the document due dates.
  2. Make sure the Home tab of the ribbon is displayed.
  3. Click the Conditional Formatting option in the Styles group. On the resulting submenu, click Manage Rules. Excel displays the Conditional Formatting Rules Manager dialog box. (See Figure 1.)
  4. Figure 1. The Conditional Formatting Rules Manager dialog box.

  5. Click the New Rule button. Excel displays the New Formatting Rule dialog box.
  6. In the Select a Rule Type list, choose Format Only Cells That Contain. (See Figure 2.)
  7. Figure 2. The New Formatting Rule dialog box.

  8. Make sure the first drop-down list in the Edit the Rule Description area is "Cell Value." (This should be the default.)
  9. Make sure the second drop-down list is "Less Than."
  10. In the formula area, enter "=TODAY()" (without the quote marks).
  11. Click the Format button. Excel displays the Format Cells dialog box.
  12. Using the Color drop-down list, choose the color red.
  13. Click OK to close the Format Cells dialog box.
  14. Click OK. The Conditional Formatting Rules Manager dialog box reappears with your newly defined condition in it.
  15. Click the New Rule button. Excel displays the New Formatting Rule dialog box.
  16. In the Select a Rule Type List, choose Format Only Cells That Contain.
  17. Make sure the first drop-down list in the Edit the Rule Description area is "Cell Value." (This should be the default.)
  18. Make sure the second drop-down list is "Less Than."
  19. In the formula area, enter "=TODAY()+7" (without the quote marks).
  20. Click the Format button. Excel displays the Format Cells dialog box.
  21. Using the Color drop-down list, choose the color blue.
  22. Click OK to close the Format Cells dialog box.
  23. Click OK. The Conditional Formatting Rules Manager dialog box reappears with your newly defined condition in it. (The newly defined condition should actually be selected in the list of conditions.)
  24. Click the Move Down arrow. This moves the last condition you defined (steps 13 through 21) so it is in the proper order.
  25. Click OK to close the Conditional Formatting dialog box.

This is a two-tiered format, and you end up with two levels of alert. If the due date is already past, then it shows up as red. If the due date is today or within the next seven days, then it shows up in blue.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (9327) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Office 365. You can find a version of this tip for the older menu interface of Excel here: Alerts About Approaching Due Dates.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Combinations for Members in Meetings

Got a large group of people listed in a worksheet and you want to make sure that each person has met with every other ...

Discover More

Specifying an Index Entry Separator

One of the switches you can use with the index field allows you to specify how index entries should be separated from the ...

Discover More

Remembering Copies to Print

If you routinely need to print more than one copy of a document, you'll love the ideas presented in this tip. There's ...

Discover More

Professional Development Guidance! Four world-class developers offer start-to-finish guidance for building powerful, robust, and secure applications with Excel. The authors show how to consistently make the right design decisions and make the most of Excel's powerful features. Check out Professional Excel Development today!

More ExcelTips (ribbon)

Highlighting Cells Containing both Letters and Numbers

Conditional formatting is a great tool for changing the format of cells based on whether certain conditions (rules) are ...

Discover More

Conditionally Formatting for Multiple Date Comparisons

When you compare dates in a conditional formatting rule, you need to be careful how you put your comparisons together. Do ...

Discover More

Detecting Errors in Conditional Formatting Formulas

If an error exists in a formula tucked inside a conditional format, you may never know it is there. There are ways to ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is seven minus 4?

2020-10-30 18:40:59

sara

How do I keep blank cells from turning red? I don't want the cell red or yellow unless there is a date entered.


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.