+ Reply to Thread
Results 1 to 3 of 3

Conditional Formatting - Traffic light dates

  1. #1
    Registered User
    Join Date
    08-01-2012
    Location
    Scotland
    MS-Off Ver
    Excel 2007
    Posts
    2

    Conditional Formatting - Traffic light dates

    Hi Folks,

    First post on the forum, so please forgive me if this problem has been addressed already (I imagine it may already have!)

    I have cell f5 which displays the date of an invoice.

    I want the following conditional formatting to be applied over a cell range if the following conditions are met:

    If it has been more than 5 months since date in f5--> cell range colour fill red
    If it has been more than 4 but less than 5 months since date in f5--> cell range colour fill amber
    If it has been less than 4 months since date in f5--> cell range colour fill green

    I have seen EDATE and TODAY functions but am struggling to get them to work across the three colours. Any help appreciated.

    Thanks guys

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional Formatting - Traffic light dates

    Try these.

    for RED:

    =DATEDIF($F$5,A2,"M")>5

    for YELLOW:

    =DATEDIF($F$5,A2,"M")=4

    for Green:

    =DATEDIF($F$5,A2,"M")<4

    where A2 is topleft most selected cell to format and compare.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    08-01-2012
    Location
    Scotland
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Conditional Formatting - Traffic light dates

    Thanks for the help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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