+ Reply to Thread
Results 1 to 4 of 4

Highlight dates that are 3 years old as of the current date.

  1. #1
    Registered User
    Join Date
    09-28-2012
    Location
    Minnesota
    MS-Off Ver
    Excel 2010
    Posts
    41

    Highlight dates that are 3 years old as of the current date.

    Hello. I have a column of various dates, and I want to set up a couple conditional formatting rules that will highlight a given cell yellow if the date is 3 years old as of the current date, or highlight the cell red if the date is 4 years old as of the current date. Even if it is possible to do this with one rule, I would probably just use 2 rules to keep it simple.

    Thanks in advance for the help!

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Highlight dates that are 3 years old as of the current date.

    yes

    you could use
    cell to check < =DATE(YEAR(TODAY())-4,MONTH(TODAY()),DAY(TODAY()))
    highlight red
    set Stop if True
    then
    cell to check < =DATE(YEAR(TODAY())-3,MONTH(TODAY()),DAY(TODAY()))
    and highlight yellow

    you will need two rules as the colour is changing

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Highlight dates that are 3 years old as of the current date.

    I assume you know how to bring up the CF dialogue box having selected "Use a formula ...". First Rule (check for oldest first):

    =AND($D2<>"",TODAY()-$D2>=4*365)

    then format as red (Note, I have assumed 365 days in a year). Second Rule:

    =AND($D2<>"",TODAY()-$D2>=3*365)

    then format as yellow.

    These assume that you have selected all the data to be governed by the CF beforehand, and that the date of interest is in column D.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    09-28-2012
    Location
    Minnesota
    MS-Off Ver
    Excel 2010
    Posts
    41

    Re: Highlight dates that are 3 years old as of the current date.

    That worked great, thanks much.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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