Highlight Dates Based on Due Date in Excel
In many organizations, it’s important to call attention to dates that fall after a specified time period. With conditional formatting, you can easily create a “past due” report highlighting overdue items. The example shown demonstrates a scenario where the dates that are more than 90 days overdue are formatted in red.
To build this basic formatting rule, follow these steps:
Select the data cells in your target range (cells C4:C9 in this example), click the Home tab of the Excel Ribbon, and then select Conditional Formatting→New Rule.
This opens the New Formatting Rule dialog box.
In the list box at the top of the dialog box, click the Use a Formula to Determine which Cells to Format option.
This selection evaluates values based on a formula you specify. If a particular value evaluates to TRUE, the conditional formatting is applied to that cell.
In the formula input box, enter the formula shown here. In this formula, you evaluate whether today’s date is greater than 90 days past the date in your target cell (C4). If so, the conditional formatting will be applied.
Note that in the formula, you exclude the absolute reference dollar symbols ($) for the target cell (C4). If you click cell C4 instead of typing the cell reference, Excel will automatically make your cell reference absolute. It’s important that you don’t include the absolute reference dollar symbols in your target cell because you need Excel to apply this formatting rule based on each cell’s own value.
Click the Format button.
This opens the Format Cells dialog box, where you have a full set of options for formatting the font, border, and fill for your target cell. After you have completed choosing your formatting options, click the OK button to confirm your changes and return to the New Formatting Rule dialog box.
Back in the New Formatting Rule dialog box, click the OK button to confirm your formatting rule.
If you need to edit your conditional formatting rule, simply place your cursor in any of the data cells within your formatted range and then go to the Home tab and select Conditional Formatting→Manage Rules. This opens the Conditional Formatting Rules Manager dialog box. Click the rule you want to edit and then click the Edit Rule button.