+ Reply to Thread
Results 1 to 7 of 7

CF Saturdays Sundays and Holidays

  1. #1
    Forum Contributor
    Join Date
    05-30-2015
    Location
    Dubai
    MS-Off Ver
    Excel 2016 Mac & PC & 365
    Posts
    633

    CF Saturdays Sundays and Holidays

    Hi,

    I have all the dates of the year in B1:NB1.

    What formula do I use in CF to highlight the columns where the dates are either a Saturday or Sunday or its a public holiday from my table named holidays

    Thanks
    Kevin

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: CF Saturdays Sundays and Holidays

    =OR(WEEKDAY(A$1,2)>5,ISNUMBER(MATCH(A$1,_pr,)))
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    05-30-2015
    Location
    Dubai
    MS-Off Ver
    Excel 2016 Mac & PC & 365
    Posts
    633

    Re: CF Saturdays Sundays and Holidays

    Thank you tim201110!

  4. #4
    Banned User!
    Join Date
    10-29-2012
    Location
    Europe
    MS-Off Ver
    2013, 2016
    Posts
    318

    Re: CF Saturdays Sundays and Holidays

    I think is suffice in CF this formula:

    =WEEKDAY(A$1,2)>5

    or

    =WEEKDAY(A$1)>5

    depending of regional settings.

  5. #5
    Forum Contributor
    Join Date
    05-30-2015
    Location
    Dubai
    MS-Off Ver
    Excel 2016 Mac & PC & 365
    Posts
    633

    Re: CF Saturdays Sundays and Holidays

    =WEEKDAY(A$1,2)>5 will not return public holidays, but thanks for looking

  6. #6
    Banned User!
    Join Date
    10-29-2012
    Location
    Europe
    MS-Off Ver
    2013, 2016
    Posts
    318

    Re: CF Saturdays Sundays and Holidays

    I did not read carefully. Create a dynamic range name with holidays and then use:

    =OR(A$1=holiday) if you want different color for holiday.

    =OR(WEEKDAY(A$1,2)>5, A$1=holiday) if you want same color for weekend and holiday.

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: CF Saturdays Sundays and Holidays

    This formula works for me

    =NETWORKDAYS(A1,A1,_pr)=0
    Audere est facere

+ 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] Workdays / Saturdays / Sundays in a Month
    By JcOrlando in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-03-2014, 12:59 AM
  2. Days of the week (to exclude Saturdays/Sundays)
    By btk125 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-03-2012, 10:08 AM
  3. Include Saturdays and maybe Sundays?
    By lil_ern63 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 06-12-2008, 11:38 AM
  4. [SOLVED] Calculating Business Days by excluding Saturdays/Sundays and other Public Holidays
    By all4excel in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-03-2008, 10:15 PM
  5. counting days excluding saturdays and sundays
    By p_dhoke in forum Excel General
    Replies: 2
    Last Post: 04-24-2007, 04:34 AM
  6. [SOLVED] Calculate the number of Saturdays or Sundays between 2 dates?
    By Jim Long in forum Excel General
    Replies: 1
    Last Post: 11-01-2005, 04:09 PM
  7. Subtract Dates excluding Saturdays and Sundays
    By Shirley Munro in forum Excel General
    Replies: 2
    Last Post: 01-14-2005, 06:26 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