+ Reply to Thread
Results 1 to 7 of 7

Date color change if date exceeds 14 days

  1. #1
    Registered User
    Join Date
    09-21-2010
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    2

    Date color change if date exceeds 14 days

    Greeting,

    I have a excel worksheet I use to track clients. I see them every two weeks. I have a column labled "Last Contacted" each time I communicate with client in any form I change the date to the current date. Sometimes for various reason client don't make appointments, or no contact has been done in a while, so what I'm looking at doing is when the current date is greater than 14 days since the client was last contacted I would like the text or date to change to maybe a light color like a pale red and if it's more than 21days to change to a bright red to warn me that this client needs to be contacted.

    I know it can be done, I've seen it but just don't know how it was done and the person that was using the formula isn't around anymore. Can anyone help me please. Thanks in advance.

  2. #2
    Valued Forum Contributor
    Join Date
    05-19-2010
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: Date color change if date exceeds 14 days

    if dates are in column A then Highlite column A and conditional format and formula is
    =today()-$A1<=14 and format font colour
    formula 2 =(today()-$A1)*$A1 and format font colour

  3. #3
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Date color change if date exceeds 14 days

    You could use Conditional Formatting from Format menu.
    Select all cells with dates, select Conditional Formatting from Format menu, in the first box select 'Formula is', paste this formula:
    =AND(NOW()-A1>=14,NOW()-A1<=20)
    click on Format button and choose a color.

    Then click on Add to add condition2, select 'Formula is' and paste this formula:
    =NOW()-A1>=21
    click on Format button and choose another color.

    The cell 'A1' in the formula must be changed with the first date range. If your date range is E2:E10 then A1 must be changed in E2.

    Regards,
    Antonio

  4. #4
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Date color change if date exceeds 14 days

    Hi and welcome to the board

    Use conditional formatting with following conditions and selecting the range to format

    =and(today()-$A1>=14,today()-$A1<21) for your first condition ( pale red)
    and =today()-$A1>=21 as second condition ( bright red)

  5. #5
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Date color change if date exceeds 14 days

    =AND(NOW()-A1>=14,NOW()-A1<=20)

    Antoka, the NOW function will give you date AND time ( 12/04/2010 04:15:00) so the results might not be quite correct

  6. #6
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Date color change if date exceeds 14 days

    Right, I didn't think to it, thanks!

    Regards,
    Antonio

  7. #7
    Registered User
    Join Date
    09-21-2010
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Date color change if date exceeds 14 days

    Thanks to everyone for your 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