+ Reply to Thread
Results 1 to 6 of 6

Conditional formatting - Look in range of dates - Highlight different cell if...

Hybrid View

hanpete122 Conditional formatting - Look... 01-13-2017, 12:08 PM
Moo the Dog Re: Conditional formatting -... 01-13-2017, 12:22 PM
hanpete122 Re: Conditional formatting -... 01-13-2017, 01:09 PM
Moo the Dog Re: Conditional formatting -... 01-13-2017, 12:38 PM
Moo the Dog Re: Conditional formatting -... 01-13-2017, 01:19 PM
Moo the Dog Re: Conditional formatting -... 01-26-2017, 10:15 PM
  1. #1
    Registered User
    Join Date
    11-30-2016
    Location
    Portsmouth, Virginia
    MS-Off Ver
    2016
    Posts
    11

    Conditional formatting - Look in range of dates - Highlight different cell if...

    Good day,

    I am working with a range of dates where each row in columns (B:Y) contain various dates. I am attempting to highlight the adjacent cell of each row in column AA. Condition to be met: IF any one or more dates in a row are older than 1 year, AND the adjacent cell in AA is NOT blank, DO highlight the cell in AA. This would need to apply (per row) between 6 and 55.

    I have attempted to use this formula: "=AND($B6:$Y6<=TODAY()-365,NOT(ISBLANK($AA6)))". With applies to: "$AA6". Expect that AA6 would be highlighted as per format selected. I then "pull down" to apply to the remainder of rows in the range.

    But am getting incorrect and/or inconsistent results.

    Hoping that I might have some guidance as to best option to achieve desired results.

    Thanks in advance!

    Peter H.
    Virginia, USA

  2. #2
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Conditional formatting - Look in range of dates - Highlight different cell if...

    You could try:
    Formula: copy to clipboard
    =AND(MIN($B6:$Y6)<=TODAY()-365,NOT(ISBLANK($AA6)))
    - Moo

  3. #3
    Registered User
    Join Date
    11-30-2016
    Location
    Portsmouth, Virginia
    MS-Off Ver
    2016
    Posts
    11

    Re: Conditional formatting - Look in range of dates - Highlight different cell if...

    Thanks very much, the above recommendation works best for my current application. Though your below recommendation will come in very handy with future apps as well.

    Thanks again!

    Peter H.
    Virginia, USA

  4. #4
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Conditional formatting - Look in range of dates - Highlight different cell if...

    Although not entirely necessary, you may want to add an additional condition to check to see if there are any dates in the row. With my formula above, if there aren't any dates in the row, it will still return TRUE if there is something in column AA, but if we add a third condition (in my formula below) it should take care of that:
    Formula: copy to clipboard
    =AND(MIN($B6:$Y6)<=TODAY()-365,NOT(ISBLANK($AA6)),COUNT($B6:$Y6)>0)
    - Moo

  5. #5
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Conditional formatting - Look in range of dates - Highlight different cell if...

    Glad to help, and thanks for the feedback!

    - Moo

  6. #6
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Conditional formatting - Look in range of dates - Highlight different cell if...

    If that takes care of your question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

    - Moo

+ 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: 5
    Last Post: 04-08-2016, 03:36 PM
  2. [SOLVED] Conditional Formatting to Highlight a Range when Today is between Two Dates DD/MM
    By AliGW in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-04-2015, 11:10 AM
  3. [SOLVED] Conditional formatting to highlight old dates?
    By mhaness in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-25-2014, 11:57 AM
  4. Replies: 2
    Last Post: 12-18-2012, 11:18 AM
  5. Conditional formatting - highlight range of cells when it equals a cell
    By kingkong321 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-20-2012, 05:13 AM
  6. Conditional Formatting: highlight if cell contents do not exist in range
    By Bjordion in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-28-2012, 04:16 PM
  7. How do I highlight a cell using conditional formatting and dates
    By shane561 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-27-2005, 12:10 AM

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