+ Reply to Thread
Results 1 to 3 of 3

Cell to highlight different colors depending on the date in another cell?

  1. #1
    Registered User
    Join Date
    10-11-2013
    Location
    Southampton, England
    MS-Off Ver
    Excel 2007
    Posts
    5

    Cell to highlight different colors depending on the date in another cell?

    Is there away of for instance like a traffic light system where Cell A1 would highlight a different colour depending on the date in B1? For instance if the date is a week away from the present computer date A1 highlights Red, 3 Days away the cell highlights Orange and then the exact date Green?

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Cell to highlight different colors depending on the date in another cell?

    You can use conditional formatting for this.
    For example, add three conditional formats along the lines of:
    =if(B1=Today(),True,False)
    =if(and(B1>=Today()-3,B1<Today()),True,False)
    =if(and(B1>=Today()-7,B1<Today()-3),True,False)
    then assign the format on the first one to red, second one to orange and third one to green.

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,462

    Re: Cell to highlight different colors depending on the date in another cell?

    Quote Originally Posted by Gregwaa View Post
    Is there away of for instance like a traffic light system where Cell A1 would highlight a different colour depending on the date in B1? For instance if the date is a week away from the present computer date A1 highlights Red, 3 Days away the cell highlights Orange and then the exact date Green?
    And what color should it be 4 5 or 6 days away, and 1 or 2 days away?

    You can also use the built-in traffic light formatting once you have decided the above.

    @youdlugar

    CF implictly uses IF, TRUE and FALSE to determine the formatting. Fi your first condition can be =B1=Today() , the rest is redundant. Given the text box is rather short, how shorter the formula, how easier it is to edit

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Help change cell colour depending on date in another cell
    By nubehaviour in forum Excel General
    Replies: 8
    Last Post: 01-14-2013, 07:04 PM
  2. Replies: 5
    Last Post: 07-13-2012, 02:25 AM
  3. Macro To Highlight Range of a row a Certain Color Depending On Contents In a Cell
    By donnydorko in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-18-2010, 02:23 PM
  4. Set colors depending on cell value
    By hussong1555 in forum Excel General
    Replies: 3
    Last Post: 01-07-2010, 03:07 PM
  5. Replies: 2
    Last Post: 01-06-2006, 03:50 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