+ Reply to Thread
Results 1 to 6 of 6

Networkdays change weekend from Sat, Sun to either Fri, Sat or Fri in Excel 2007

  1. #1
    Registered User
    Join Date
    12-16-2012
    Location
    Kuwait
    MS-Off Ver
    Excel 2003, 2007
    Posts
    8

    Networkdays change weekend from Sat, Sun to either Fri, Sat or Fri in Excel 2007

    HI,

    Canany body help me to change weekend in networkdays from saturday, sunday to friday and saturday

    and also if i want only one weekend i.e. friday

    Regards,

    Kamal

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,640

    Re: Networkdays change weekend from Sat, Sun to either Fri, Sat or Fri in Excel 2007

    Try C Pearson's solution

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,769

    Re: Networkdays change weekend from Sat, Sun to either Fri, Sat or Fri in Excel 2007

    If the weekend is still 2 consecutive days it's relatively easy to modify NETWORKDAYS, e.g. for Fri/Sat

    =NETWORKDAYS(A2+1,B2+1)

    or to handle a holiday range in H2:H10

    =NETWORKDAYS(A2+1,B2+1,INDEX(H$2:H$10+1,0))

    for Thu/Fri change the +1s to +2s, for Wed/Thu use +3 etc....

    For single weekend day you can use a formula like this

    =B2-A2+1-INT((WEEKDAY(A2-6)+B2-A2)/7)

    That excludes just Friday - change the 6 for other single days (1 = Sun to 7 = Sat)

    If you need to exclude holidays from the latter version then it needs a further tweak......
    Audere est facere

  4. #4
    Registered User
    Join Date
    12-16-2012
    Location
    Kuwait
    MS-Off Ver
    Excel 2003, 2007
    Posts
    8

    Re: Networkdays change weekend from Sat, Sun to either Fri, Sat or Fri in Excel 2007

    Thanks a lot it works for me perfectly.

    Regards,

    Kamal

  5. #5
    Registered User
    Join Date
    11-14-2022
    Location
    Cairo
    MS-Off Ver
    2015
    Posts
    1

    Re: Networkdays change weekend from Sat, Sun to either Fri, Sat or Fri in Excel 2007

    I still couldn't figure out how to change it in a template sheet I use for employees vacations.

    so, please advise how can I attach the file to check and give help.

    Thanks in advance.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,050

    Re: Networkdays change weekend from Sat, Sun to either Fri, Sat or Fri in Excel 2007

    Quote Originally Posted by Nour Amer View Post
    I still couldn't figure out how to change it in a template sheet I use for employees vacations.

    so, please advise how can I attach the file to check and give help.

    Thanks in advance.
    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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