+ Reply to Thread
Results 1 to 4 of 4

conditional format for cell contain number of year month and days

  1. #1
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    conditional format for cell contain number of year month and days

    Good after noon all
    can please help how can make conditional format for cell contain number of year months and days from for 6 month
    meaning what is will be expired within next 6 months

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,106

    Re: conditional format for cell contain number of year month and days

    the way i would do it is using
    =AND((LEFT(A1,SEARCH("Years",A1,1)-1)*1) =0, (MID(A1,SEARCH("Months",A1,1)-3,3)*1) <6)
    as a rule in conditional formatting

    BUT, 1 of your examples had 7months and highlighted

    and if the figure is 6mths , it will not highlight

    sure there are better ways
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: conditional format for cell contain number of year month and days

    Try this:
    Please Login or Register  to view this content.

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: conditional format for cell contain number of year month and days

    please try

    =(FIND(0,A1)=1)*(--MID(A1,9,2)<6)

+ 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. Replies: 2
    Last Post: 03-27-2020, 08:53 PM
  2. Replies: 2
    Last Post: 01-22-2019, 03:15 AM
  3. Replies: 16
    Last Post: 08-22-2017, 11:20 AM
  4. [SOLVED] How to calculate Year, Month and Day from total number of days?
    By Indra Rai in forum Excel General
    Replies: 4
    Last Post: 06-25-2014, 02:08 PM
  5. Replies: 15
    Last Post: 06-03-2014, 02:08 PM
  6. Conditional Format based on Year & Month.
    By SpiritedAway in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-06-2013, 06:02 PM
  7. [SOLVED] Conditional Format (month and year) = Today()
    By Scott in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-04-2005, 12:55 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