A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Use another conditional formatting rule that tests whether the due date is within 30 days from today.
Assuming the due dates are in column B starting at B2:
- Select the due date cells (for example, B2:B100).
- On the Home tab, in the Styles group, click Conditional Formatting > New Rule.
- Select Use a formula to determine which cells to format.
- In Format values where this formula is true, enter:
Adjust=AND(B2>=TODAY(), B2<=TODAY()+30)B2to match the first cell in the selected range. - Click Format, choose a yellow Fill color, and click OK.
- Click OK again to save the rule.
Make sure this “yellow” rule is ordered below the “red when overdue” rule in the Conditional Formatting Rules Manager, so that overdue dates stay red and only upcoming (within 30 days) dates turn yellow.
References: