+ Reply to Thread
Results 1 to 7 of 7

Conditional formatting Highlight Past Year...?

  1. #1
    Forum Contributor
    Join Date
    06-09-2014
    Location
    Sweden
    Posts
    311

    Conditional formatting Highlight Past Year...?

    Greeting to all respected members of this great forum

    i am trying to apply Conditional formatting on month and year from Cell "S6 & X6" , Which i am not successful to do so

    The Date & month part is working fine to Highlight the dates and Month which starts from 1st to 14th of every current month date and from 15th to 31th of previous month date.

    BUT

    The YEAR part cell "X6" is NOT working OK it Highlight the current year which i dont need. what i m trying to solve is it to Highlight previous PAST Years only not the current years.
    Highlight previous years means (i.e 2014, 2013,2012,2010.....). (NOT to Highlight Current year 2015)

    Plz find the attachment
    joining Date Hihghlight 2.xlsx

    cant not figure out the solution

    any kind help will be highly appreciated

    Regards

  2. #2
    Forum Contributor
    Join Date
    06-09-2014
    Location
    Sweden
    Posts
    311

    Re: Conditional formatting Highlight Past Year...?

    any solution will be highly will be highly appreciated

    need to update following code
    Please Login or Register  to view this content.
    Regards

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Conditional formatting Highlight Past Year...?

    Try this...

    =AND(YEAR(D12)<YEAR(NOW()),TEXT(EOMONTH(D12,(DAY(D12)>14)+0),"MMMM")=$S$6)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Contributor
    Join Date
    06-09-2014
    Location
    Sweden
    Posts
    311

    Re: Conditional formatting Highlight Past Year...?

    Quote Originally Posted by Tony Valko View Post
    Try this...

    =AND(YEAR(D12)<YEAR(NOW()),TEXT(EOMONTH(D12,(DAY(D12)>14)+0),"MMMM")=$S$6)
    Dear Tony Valko: your quick reply is highly appreciated. i try the cod but when i change the Year from 2015 to 2016 and soon, it don not highlight the past year date of 2015

    any solution of it

    Reagrds

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Conditional formatting Highlight Past Year...?

    Opps!

    I didn't see that the year number was entered in a cell!

    Try this version:

    =AND(YEAR(D12)<X$6,TEXT(EOMONTH(D12,(DAY(D12)>14)+0),"MMMM")=$S$6)

  6. #6
    Forum Contributor
    Join Date
    06-09-2014
    Location
    Sweden
    Posts
    311

    Re: Conditional formatting Highlight Past Year...?

    Quote Originally Posted by Tony Valko View Post
    Try this version:

    =AND(YEAR(D12)<X$6,TEXT(EOMONTH(D12,(DAY(D12)>14)+0),"MMMM")=$S$6)
    Beautiful working like a charm thanks a lot "Tony Valko" i am very grateful to you for your kind quick help
    highly appreciated

    Thread marked as solved and Reputation added

    Best Regards

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Conditional formatting Highlight Past Year...?

    You're welcome. Thanks for the feedback!

+ 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 - highlight past dates in individual cells
    By iceandaslice in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-10-2015, 09:04 AM
  2. Replies: 4
    Last Post: 05-15-2014, 04:39 PM
  3. [SOLVED] Conditional Format to highlight current year only
    By excelyee in forum Excel General
    Replies: 3
    Last Post: 10-15-2013, 11:30 AM
  4. Replies: 2
    Last Post: 12-18-2012, 11:18 AM
  5. Replies: 5
    Last Post: 08-22-2012, 05:06 PM
  6. Replies: 2
    Last Post: 06-11-2012, 06:08 PM
  7. Replies: 4
    Last Post: 06-23-2011, 11:45 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