Excel/excel 2007 Conditional formatting for dates
Expert: Douglas M. Smith - 8/19/2009
QuestionI'm using Excel 2007. I'm building a tracking spreadsheet to track training dates. As people complete training, they report their completeion dates to me. i enter these into the excel sheet.
I want the sheet to change the cell fill color based on how old the date is. If the date occured within the last 300 days the fill color would be green. if the date occurred between 301 and 330 days ago it would be yellow. any date that occured after 330 days ago would be red.
Thanks,
dan
Answer
Hi Dan,
You will need to set up three cases to do this. In the Conditional Formatting dialog box, set it up for three cases and select the "Formula Is" option for all three. Use the following formulas for the three cases.
=B3>TODAY()-300
=B3>TODAY()-330
=B3<=TODAY()-330
Set their colors green, yellow and red respectively. I have a graphic of the completed dialog box that should help.
Doug Smith
Brainbench MVP for MS Excel
www.brainbench.com
www.abundant-solutions.com
About Excel
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your
Excel question answered in this area then please ask an Excel question here