+ Reply to Thread
Results 1 to 7 of 7

Modify coditional format to exclude weekends and holidays

  1. #1
    Forum Contributor
    Join Date
    01-11-2012
    Location
    usa
    MS-Off Ver
    Excel 2007
    Posts
    133

    Modify coditional format to exclude weekends and holidays

    Can this formula in conditional fromatting be modified to if the 30th day falls on weekends or holidays, it would operate on the next day after the holiday and on Monday after the weekend (unless Monday is a holiday)?
    =AND(A1<TODAY()+30,A1>=TODAY())
    Thanks

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Modify coditional format to exclude weekends and holidays

    Perhaps?

    =AND(A1<WORKDAY(TODAY(),30,holidays),A1>=TODAY())

    where holidays is your named holiday range.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    01-11-2012
    Location
    usa
    MS-Off Ver
    Excel 2007
    Posts
    133

    Re: Modify coditional format to exclude weekends and holidays

    Thank you NBVC. I will try it. Do I need to indicate every holiday; Thanks giving, Chrismass, etc with a comma? And how about the weekends?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Modify coditional format to exclude weekends and holidays

    You don't need to indicate the weekends, but you need to list all the holidays somewhere in the workbook. One date in each contiguous cell. Then name that range Holidays. You name it by selecting the range of cells, and typing the name in the Name Box which is located just to the left of the formula bar.. or you can do it through Formula Tab, Define Name.

  5. #5
    Forum Contributor
    Join Date
    01-11-2012
    Location
    usa
    MS-Off Ver
    Excel 2007
    Posts
    133

    Re: Modify coditional format to exclude weekends and holidays

    Thanks again.
    so, in doing so, I baically need to modify the holiday dates each year except for those that are constant; i.e., Thankd Giving.
    Much appreciate your help.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Modify coditional format to exclude weekends and holidays

    Yes, or you can go ahead and make a range that covers future year holiday dates too...

  7. #7
    Forum Contributor
    Join Date
    01-11-2012
    Location
    usa
    MS-Off Ver
    Excel 2007
    Posts
    133

    Re: Modify coditional format to exclude weekends and holidays

    Beautiful. Thanks so much for the education and have a great day.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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