简体   繁体   中英

Conditional Formatting based of date other the Today

I work with a data base that has date of when a approval expire and those date can be any thing from 30 days from now or 5-8 years. The cell is already conditionally formatted =IF(G3<TODAY(),1,0) to turn Red if the date in the box is before today date. The formatting I want add to make the cell turn yellow if it is days out from the date it the box as to give me a quick reference to see what one are to expire soon and give them a heads up. All the formatting on this workbook was done by co-worker before I got it and that coworker no longer works here. I am working with Excel 2010.

Select the cells you want to chage the format, then go to Conditional formatting rules , then New Rules and select " use a formula to determine wich cells to format ". You have to insert these three rules:

Out of date (red) => $A$1-TODAY()<0
Warning (yellow) => $A$1-TODAY()<=10
Good (green) =>$A$1-TODAY()>10

where A1 contains the date when the data will expires and 10 is the number of days to the expires data when you have to give a quick. It is important that you mark the flag "Stop if true" inside the Conditional formatting rules window.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM