+ Reply to Thread
Results 1 to 2 of 2

Conditional Format on date driving me mad

  1. #1
    Forum Contributor
    Join Date
    02-09-2007
    Location
    UK
    MS-Off Ver
    2019 & 365
    Posts
    304

    Conditional Format on date driving me mad

    Hi Guys,

    I need a conditional format formula that looks at the date and says if less that 14 days old cell colour green, if 15 to 25 days old sell colour red, if 26 days old or older cell colour red.

    The range of cells it needs to apply to is B5:B325 in the attached sheet.

    I have tried lots of different formulas but none work, plus its late on a Friday afternoon here, its hot and sunny and I am stuck inside doing reports on the last day of the month when I should be out on my jet ski......

    Thanks BVG
    Attached Files Attached Files

  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 Format on date driving me mad

    Select B5:B325 and invoke Conditional Formatting.

    Green Rule:

    =AND(B5<TODAY(),B5>=TODAY()-14)

    Yellow Rule:

    =AND(B5>=TODAY()-25,B5<=TODAY()-15)

    Red Rule:

    =AND(B5<>"",B5<=TODAY()-26)

    I am not sure, but you cells don't seem to be real dates.. they seem to be text.

    If the format doesn't work, select the B range and go to Data|Text to Columns. Click Next, then Next again, then select Date from column data format and then DMY from adjacent drop down and click Finish.
    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.

+ 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