Excel.Tips.Net Welcome toExcel.Tips.Net

Helpful Links

Tips.Net Home
ExcelTips Home
Ask an Excel Question
Make a Comment

Tips.Net Store

ExcelTips FAQ
ExcelTips Premium

Learn Access Now
Free Printable Forms

Beauty Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Legal Tips
Money Tips
Organizing Tips
Pest Tips
Pet Tips
Wedding Tips
Word2007 Tips
WordTips

Advertise on the
ExcelTips Site

Newest Tips

Recording a Macro

Adding a Little Animation to Your Life

Converting a Range of URLs to Hyperlinks

Making the Formula Bar Persistent

Engineering Calculations

Digital Signatures for Macros

Fixing the Decimal Point

 

Alerts About Approaching Due Dates

Summary: If you keep a series of dates in a worksheet, you may need some way to highlight if those dates are within a certain range. This can be done in a couple of ways, as described in this tip. (This tip works with Microsoft Excel 97, Excel 2000, Excel 2002, Excel 2003, and Excel 2007.)

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 if you are using a version of Excel prior to Excel 2007:

  1. Select the cells that contain the document due dates.
  2. Choose Conditional Formatting from the Format menu. Excel displays the Conditional Formatting dialog box. (Click here to see a related figure.)
  3. Make sure the first drop-down list is "Cell Value Is." (This should be the default.)
  4. Make sure the second drop-down list is "Less Than."
  5. In the formula area, enter "=TODAY()" (without the quote marks).
  6. Click the Format button. Excel displays the Format Cells dialog box. (Click here to see a related figure.)
  7. Using the Color drop-down list, choose the color red.
  8. Click OK to close the Format Cells dialog box.
  9. Click Add. The Conditional Format dialog box expands to include a second condition.
  10. Make sure the first drop-down list for the second condition is "Cell Value Is." (This should be the default.)
  11. Make sure the second drop-down list is "Less Than."
  12. In the formula area, enter "=TODAY()+7" (without the quote marks).
  13. Click the Format button. Excel displays the Format Cells dialog box.
  14. Using the Color drop-down list, choose the color blue.
  15. Click OK to close the Format Cells dialog box. (Click here to see a related figure.)
  16. 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.

If you are using Excel 2007, then the steps to implement the conditional formatting technique are different:

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

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (3179) applies to Microsoft Excel versions: 97 | 2000 | 2002 | 2003 | 2007

Change Formatting Based On Your Data! Conditional formatting provides a way for you to adjust the appearance of your data based on the data itself. Discover how to put this amazingly powerful feature to work for you, today. This comprehensive volume is available in two editions.
 
Check out Excel Conditional Formatting today!