+ Reply to Thread
Results 1 to 4 of 4

networkdays problem

  1. #1
    Registered User
    Join Date
    02-11-2005
    Posts
    85

    networkdays problem

    Hi. I have the following formula which calculates work days with non-Sat/Sun weekends and as a three day weekend. The problem I am having is that for excluding holidays it still works as if it is Sat/Sun weekends. Could anyone help me out with a solution.

    =(NETWORKDAYS(C48+3,F48+3,S$38:S$66))-(INT((((F48+4)-(C48+4))-MOD(7-(C48+4),7))/7)+1)

    Thanks.

  2. #2
    Ron Rosenfeld
    Guest

    Re: networkdays problem

    On Thu, 22 Dec 2005 07:44:12 -0600, goober
    <[email protected]> wrote:

    >
    >Hi. I have the following formula which calculates work days with
    >non-Sat/Sun weekends. The problem I am having is that for excluding
    >holidays it still works as if it is Sat/Sun weekends. Could anyone
    >help me out with a solution.
    >
    >=(NETWORKDAYS(C48+3,F48+3,S$38:S$66))-(INT((((F48+4)-(C48+4))-MOD(7-(C48+4),7))/7)+1)
    >
    >Thanks.


    If your weekend days are "two" and are contiguous, then you just need to add an
    appropriate offset to start_date, end_date, and holiday_dates. You may not be
    adding the appropriate offset to holiday_dates in your formula.

    If you have some other criteria for weekend dates, then I can post a UDF that
    is more flexible.



    --ron

  3. #3
    Registered User
    Join Date
    02-11-2005
    Posts
    85
    Thank you Ron. An offset fixed the issue I was having. I didn't realize that it would be that simple of a fix. Your help is greatly appreciated.

  4. #4
    Ron Rosenfeld
    Guest

    Re: networkdays problem

    On Thu, 22 Dec 2005 20:43:09 -0600, goober
    <[email protected]> wrote:

    >
    >Thank you Ron. An offset fixed the issue I was having. I didn't
    >realize that it would be that simple of a fix. Your help is greatly
    >appreciated.


    Thanks for the feedback. I'm glad I was able to help.

    Best wishes,
    --ron

+ 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