Results 1 to 4 of 4

Conditional Formatting Based Upon Various Dates

Threaded View

  1. #1
    Registered User
    Join Date
    07-12-2006
    Posts
    69

    Question Conditional Formatting Based Upon Various Dates

    I have a spreadsheet I'm trying to make which will have various cells change color based upon the date entered compared to today's date. Here are the details of it, and what I've tried to do so far:

    Various safety tickets that employees acquire have a 3 year expiry date on them. What I want to do is be able to enter in the issue date, and then have the conditional formatting color the cell that contains the date based on the following criteria:

    Green = More than 6 months remaining
    Yellow = Between 6 months and 30 days remaining
    Red = 30 days until expiry

    Black = Expired (I wanted to eventually add this one, but Excel 2003 was only allowing me to add 3 conditional formatting conditions, so I just went with the 3 colors. I'm getting Excel 2007 later today, so I might be able to add more with that)

    Now here is what I have so far:

    3 years = 1095 days, 2.5 years = 913 days, 2 years and 11 months = 1065 days

    N3 = 913
    N4 = 1065

    Conditional Formatting on cell C21

    Condition 1 - color Green

    =$C21+$N$3>=TODAY()

    Condition 2 - color Red

    =$C21+$N$4<TODAY()

    Condition 3 - color Yellow

    =AND($C21+$N$3<TODAY(),$C21+$N$4>TODAY())


    Ok, now I think this should work properly, but it doesn't. The ranges of the dates don't work as they should, and also, there are some "gaps" in which the cell ends up white. Anyone able to help me figure this out, or maybe a better way to do it?

    Thanks!
    Last edited by Zaraf; 10-08-2008 at 11:57 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Conditional Formatting (Expiration Dates)
    By ConsbruckR in forum Excel General
    Replies: 7
    Last Post: 09-20-2011, 10:49 AM
  2. Counting dates with Conditional Formatting
    By nee2m in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-20-2008, 07:45 AM
  3. Excel 2007 conditional formatting bug
    By jmessina in forum Excel General
    Replies: 0
    Last Post: 04-28-2008, 09:09 AM
  4. conditional formatting based on menu selection
    By bcamp1973 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-10-2007, 06:52 PM
  5. Conditional Formatting based on 3 different cell values (criteria)
    By xlguy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-05-2007, 05:36 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1