+ Reply to Thread
Results 1 to 6 of 6

Conditional Formatting for Dates from Today

  1. #1
    Forum Contributor
    Join Date
    05-01-2013
    Location
    Richmond, VA
    MS-Off Ver
    Excel 365
    Posts
    164

    Conditional Formatting for Dates from Today

    More conditional formatting, but hopefully this is pretty simple.

    I would like to add the following conditions to column C, for which I have named the range/column DATERECEIVED. I would like to use that name in my formula.

    Dates in the DATERECEVIED column (C) that are equal to or less than 12 days and equal to or less than 26 days from TODAY should be highlighted in yellow.
    Dates in the DATERECEIVED column (C) that are equal to or greater than 27 days from TODAY should be highlighted in red.

    The calculation should exclude weekends and HOLIDAYS when counting the number of days. Because the HOLIDAYS for the company are unique, the list of them is in the worksheet HOLIDAYS.
    The formatting should highlight only cells with dates and leave cells that contain either blanks or TBD with no formatting.

    Attached is a sample spreadsheet.

    Thank you
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Conditional Formatting for Dates from Today

    Is this not a similar requirement to ..

    https://www.excelforum.com/excel-for...ml#post4912044

    ???

  3. #3
    Forum Contributor
    Join Date
    05-01-2013
    Location
    Richmond, VA
    MS-Off Ver
    Excel 365
    Posts
    164

    Re: Conditional Formatting for Dates from Today

    It is similar but not the same unfortunately.

  4. #4
    Forum Contributor
    Join Date
    05-01-2013
    Location
    Richmond, VA
    MS-Off Ver
    Excel 365
    Posts
    164

    Re: Conditional Formatting for Dates from Today

    When I used the formulas in the other sample spreadsheet, altering them of course, the highlighting did no t take. I am also having some serious performance issues with the spreadsheet. I am trying to change the formulas to named ranges, but even doing this is taking forever.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Conditional Formatting for Dates from Today

    These appear OK

    for RED

    =AND(ISNUMBER(C2),NETWORKDAYS.INTL(C2,TODAY(),1,Holidays)>=27)

    for Yellow

    =AND(ISNUMBER(C2),NETWORKDAYS.INTL(C2,TODAY(),1,Holidays)>=12,NETWORKDAYS.INTL(C2,TODAY(),1,Holidays)<=27)

    AND change HOLIDAYS to range $A$1:$A$50 instead of whole column
    Last edited by JohnTopley; 06-07-2018 at 01:11 PM.

  6. #6
    Forum Contributor
    Join Date
    05-01-2013
    Location
    Richmond, VA
    MS-Off Ver
    Excel 365
    Posts
    164

    Re: Conditional Formatting for Dates from Today

    Ok - that worked - thank you again
    Also, changing the holidays range helped immensely in spreadsheet performance. It is amazing that it could bog down the spreadsheet as much as it did.

    Thank you for all of your great help!

+ 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] 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
  2. Conditional formatting with dates NOT based on today
    By bionerdette in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-13-2014, 07:13 PM
  3. [SOLVED] Conditional Formatting between two dates that are not today!
    By IreneADS in forum Excel General
    Replies: 12
    Last Post: 01-15-2014, 05:42 PM
  4. Replies: 5
    Last Post: 12-31-2013, 01:44 AM
  5. Replies: 3
    Last Post: 11-20-2013, 08:42 AM
  6. [SOLVED] Conditional Formatting of: dates within 1 month and dates before today.
    By Luke Smith in forum Excel General
    Replies: 5
    Last Post: 06-18-2013, 07:29 AM
  7. Conditional format between dates based on today()
    By StevieNix in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-27-2012, 06:06 PM

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