+ Reply to Thread
Results 1 to 7 of 7

Conditional Format to Highlight Row Where Date in Column Within 5 Business Days of Range

  1. #1
    Registered User
    Join Date
    05-04-2018
    Location
    MD
    MS-Off Ver
    2016
    Posts
    20

    Conditional Format to Highlight Row Where Date in Column Within 5 Business Days of Range

    Hello All,

    I have a table that lists items extracted in sharepoint. In one column is that created date of an item and a named range that contains our quarterly release dates. I need a conditional format, that will highlight the row if the Created Date is within 5 BUSINESS DAYS of the Target Release Date, any idea on how to accomplish this?

    Capture.PNG

  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,323

    Re: Conditional Format to Highlight Row Where Date in Column Within 5 Business Days of Ran

    Use the same CF formula that you have used for the date created column. Easy way is to edit the range that the CF is applied to.
    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


  3. #3
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    483

    Re: Conditional Format to Highlight Row Where Date in Column Within 5 Business Days of Ran

    See if the following CF rule works for you:

    =ABS(NETWORKDAYS(F22,B22,Holidays))<=5

    where Holidays is a named range that contains holiday dates.

  4. #4
    Registered User
    Join Date
    05-04-2018
    Location
    MD
    MS-Off Ver
    2016
    Posts
    20

    Re: Conditional Format to Highlight Row Where Date in Column Within 5 Business Days of Ran

    Quote Originally Posted by TMS View Post
    Use the same CF formula that you have used for the date created column. Easy way is to edit the range that the CF is applied to.
    There is no CF formula, I just highlighted the cells to produce the desired outcome.

  5. #5
    Registered User
    Join Date
    05-04-2018
    Location
    MD
    MS-Off Ver
    2016
    Posts
    20

    Re: Conditional Format to Highlight Row Where Date in Column Within 5 Business Days of Ran

    Quote Originally Posted by Root_ View Post
    See if the following CF rule works for you:

    =ABS(NETWORKDAYS(F22,B22,Holidays))<=5

    where Holidays is a named range that contains holiday dates.
    This formula does not highlight anything .

  6. #6
    Registered User
    Join Date
    05-04-2018
    Location
    MD
    MS-Off Ver
    2016
    Posts
    20

    Re: Conditional Format to Highlight Row Where Date in Column Within 5 Business Days of Ran

    Quote Originally Posted by Root_ View Post
    See if the following CF rule works for you:

    =ABS(NETWORKDAYS(F22,B22,Holidays))<=5

    where Holidays is a named range that contains holiday dates.
    I found the issue. So I need B22 to refer to a named range, as opposed to a value in an adjacent column, is that possible?

  7. #7
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    483

    Re: Conditional Format to Highlight Row Where Date in Column Within 5 Business Days of Ran

    Assuming range B22:B30 in your example is named Release_Dates, try the following CF rule:

    =OR(ABS(NETWORKDAYS(F22,+Release_Dates,Holidays))<=5)

+ 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. [SOLVED] matching error between column having every date and column having business days
    By jrtaylor in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-17-2017, 01:58 PM
  2. Macro to change date as per business days and its format daily in a column
    By galbatrox9 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-05-2016, 09:26 PM
  3. Replies: 4
    Last Post: 05-15-2014, 04:39 PM
  4. [SOLVED] Conditional Format formula - highlight over 14 days
    By Matt1985 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-27-2014, 07:39 AM
  5. [SOLVED] Display only business days in date range formula?
    By 00pumpkin in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-20-2013, 01:59 PM
  6. [SOLVED] Need to count business days in a date range with results grouped by fiscal year
    By PaulStamper in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-07-2013, 11:46 AM
  7. [SOLVED] Macro to highlight cells that are 5 business days from trade date
    By Jason via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-09-2005, 04:06 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