You are here:

Excel/use conditional formatting to track due dates

Advertisement


Question
I am using Excell 2007 and have a spreadsheet with dates completed. I want the cell to be green if training is current, yellow if it's within 60 days and red if it's within 30 days. I read one of you posts with the same subject:Everyone else wants this also, so Excel has a 'function' called CONDITIONAL FORMATTING that does exactly what you want.  You MUST know about this already since you referred to an "icon set" which is only available in the Conditional Formatting section of Excel 2007.

  So all you need to do is use the FORMULA mode of Conditional Formatting to compare the date in the cell with TODAY().  Depending on the results, the cell will change colors accordingly.  Your formula will be something like:

=(cell-with-date)<TODAY() to turn RED,

=(cell-with-date)<=TODAY()+30  to turn yellow

=(cell-with-date)>TODAY()+30 to turn green

I open up cf and use "new rule w/3 color scale" I use the formula for all three and type in for ex, =$D$2<$I$2--CELL I2 has the =TODAY() formula. This isn't working. Is there anyway to break this down for me so I can get it to work? I would greatly appreciate it. Thank you, MSgt Robert Campos

Answer
Robert,

   Before I can help you properly, I need to know more about how 'it doesn't work'.  What exactly is wrong?  

   My GUESS is that you are trying to format a number of cells, not just one... although your question refers repeatedly to THE cell, perhaps implying a single cell instead of a column.  If my GUESS is correct, I;'d say off hand that your formula is using an Absolute Reference to the Time cell ($D$2) so all the cells have the same formula, and thus they all format the same and don't seem to 'listen to' the contents of the proper cells.  If this seems like your difficulty, then what you'd want is D2, not $D$2.

 Let me know additional details and I surely can help you.

   >>> Bill
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

All Answers

Answers by Expert:


Ask Experts

Volunteer


Bill Hermanson

Expertise

Please tell me WHICH EXCEL VERSION you are using!

DO NOT ASK ME me about Macros or VBA.

Please read my "instructions to questioners" in my full profile [use View Profile, at right], to help you write a question that I can understand, without having to ask you what you mean.

If your question contains any of the words THIS, IT, THAT, THOSE, or THEY, I likely won't understand IT. Please rewrite!

My Expertise: I am an expert at data manipulation, the use of incredibly complex logical statements, databases, combining tables and extracting data, all the LOGICAL, LOOKUP & REFERENCE functions, dynamic ranges, creating professional appearing spreadsheets, complex functions, integrated charts and visual displays, user interfaces.... I can make Excel do anything!

But PLEASE... NO MACRO or VBA QUESTIONS!

Experience

25 years development of complex spreadsheets for personal and professional use. I've developed hundreds (or thousands!) of spreadsheets in all fields, from complex engineering calculations to game scoring, financial analysis, scheduling, cost-of-doing-business, and analysis of home energy use. I even used Excel to assist in design of the flight computers presently on board the Hubble Space Telescope (1984-1991)

Education/Credentials
BSEE Electrical Engineering, CU Boulder CO USA
Use of spreadsheets since 1982
Boulder Valley School District, Life Long Learning, Instructor
Owner & Operator of Excel Expert, LLC

©2009 About.com, a part of The New York Times Company. All rights reserved.