+ Reply to Thread
Results 1 to 2 of 2

Conditional Formatting based on years and months

  1. #1
    Registered User
    Join Date
    06-15-2020
    Location
    Newcastle, UK
    MS-Off Ver
    2007
    Posts
    33

    Conditional Formatting based on years and months

    Hi

    Does anyone know how to use conditional formatting on a cell that is already formatted as years and months?

    I want to highlight cells green if the value is less than 5 years, yellow if between 5 and 9, and red if the value is greater than 10 years. I've tried to do this but it doesn't seem to work with the years and months format.

    I've attached a sample sheet where column C is where I want to apply the formatting.

    Any suggestions appreciated!

    Thanks

    Jay
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,409

    Re: Conditional Formatting based on years and months

    Your formula uses ampersand ( & ) to concatenate numeric years and months with text values ... hence the output of the formula is text. Therefore you won't be able to use CF if it is meant to be based on a numeric value.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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. Sum up series of Years, Months based on name
    By CCHAPO201 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-17-2020, 09:54 AM
  2. [SOLVED] COUNTIFS based on HIJRI&Gregorian Years and months
    By qadeerume in forum Excel General
    Replies: 6
    Last Post: 01-02-2017, 08:32 AM
  3. RD calculation based on No.of weeks,days,months,years
    By santbiju in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-05-2016, 05:38 PM
  4. Conditional formatting based on number of years from now
    By jhiltabidel in forum Excel General
    Replies: 2
    Last Post: 12-17-2013, 09:27 AM
  5. [SOLVED] Age based on DOB; Accounts for leap years. Years old if >2, Months if <2 years old.
    By sharpmel in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-17-2013, 04:20 PM
  6. Months or Years remaining, formatting
    By James C in forum Excel General
    Replies: 3
    Last Post: 09-20-2005, 05:38 PM

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