
Then select Cell Value in the first drop down, less than in the second drop down, and enter the following formula that uses the NOW function: =NOW() You will need to click on the New Rule button again.

This will return you to the Conditional Formatting Rules Manager window. In this example, the preview box shows yellow as the fill color. When you return to the New Formatting Rule window, you should see the preview of the formatting in the Preview box. Then select the color that you'd like to see the dates that will expire in the next 30 days. When the Format Cells window appears, select the Fill tab.

Next, we need to select what formatting to apply when this condition is met. Then select Cell Value in the first drop down, less than in the second drop down, and enter the following formula that uses the NOW function: =NOW()+30 When the New Formatting Rule window appears, select Format only cells that contain as the rule type. When the Conditional Formatting Rules Manager window appears, click on the "New Rule" button to enter the first condition. Then in the Styles group, click on the Conditional Formatting drop-down and select Manage Rules. Select the Home tab in the toolbar at the top of the screen. In this example, we've selected all of column A since we don't know how many rows will have expiration date values. Is that possible?Īnswer: Yes, you can use conditional formatting to achieve exactly what you are looking for.įirst highlight the range of cells that you want to apply the formatting to. I would like Excel to highlight the ones that are 30 days from expiration in yellow and the ones that are past the expiration in red.

Question: In Microsoft Excel 2007, is there a way to automatically highlight upcoming and past due dates?įor example, I have dates that certificates will expire in a spreadsheet.
