+ Reply to Thread
Results 1 to 3 of 3

Conditional formatting based on number of years from now

  1. #1
    Registered User
    Join Date
    06-20-2011
    Location
    Travelers Rest, SC
    MS-Off Ver
    Excel 2010
    Posts
    48

    Conditional formatting based on number of years from now

    I have a list of 2000 pieces of inventory. Only the year of purchase is associated with each one, not a specific month or day. I'm trying to apply conditional formatting so that...

    Less than 2 years old = green
    Between 2 and 4 years old = yellow
    Between 4 and 6 years old = orange
    More than 6 years old = red

    I've been trying =TODAY()-365 (365 replaced by number of days in the above named ranges) but the cell only changes to the color of the most recently applied formatting rule. Any help would be appreciated.

  2. #2
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,289

    Re: Conditional formatting based on number of years from now

    =a1<year(today())-6
    =a1<year(today())-4
    =a1<year(today())-2
    =a1,year(today())
    Try these one
    Last edited by popipipo; 12-17-2013 at 09:33 AM. Reason: formula edit
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Conditional formatting based on number of years from now

    Something like this?

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    For the Green color.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

+ 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. Conditional Formatting based on number of characters
    By amartino44 in forum Excel General
    Replies: 3
    Last Post: 10-11-2013, 05:30 PM
  2. [SOLVED] Conditional formatting with in between years, such as between 5-10 years old
    By gr8fawx in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 05-22-2013, 06:39 PM
  3. conditional formatting with years
    By prologueden in forum Excel General
    Replies: 2
    Last Post: 05-28-2012, 05:54 PM
  4. Conditional formatting based on a row number
    By dlwoodsaust in forum Excel General
    Replies: 3
    Last Post: 03-15-2012, 12:33 PM
  5. Replies: 2
    Last Post: 07-08-2010, 05:52 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