+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Networkdays not bringing in the final jours of a weekday b4 weekend

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    08-26-2011
    Location
    Bristol, England
    MS-Off Ver
    Excel 2007
    Posts
    149

    Networkdays not bringing in the final jours of a weekday b4 weekend

    Hi All,

    I hope the title makes sense!!!

    I have a formula based on Networkdays, but when a job is logged on a friday and actioned on a saturday we count the response time as when the job was logged (friday) to the end of that day, not using the saturday arrival time as that is classed as out of hours (overtime)

    so the background data is hours worked Mon-Fri 8am - 5pm.

    I have attaced an example, I need a formula that will count all instances of Mon- Fri 8am-5pm hours worked, along with when a job is logged on a weekday and actioned on a weekend, to count the hours 'til close of play on the friday, instead of giving me ########.

    I would be most grateful of any answers.

    cheers

    Donnascenario 2 get work day hours.xlsx
    Last edited by Icehockey44; 12-09-2011 at 07:11 AM.

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

    Re: Networkdays not bringing in the final jours of a weekday b4 weekend

    Shouldn't the correct result be 7:19?

    This formula will count all MF hours in the period defined by B10 and B11 for any start and end times/dates in A2 and B2, even weekends, evenings etc.

    =(NETWORKDAYS(A2,B2)-1)*(B11-B10)+IF(NETWORKDAYS(B2,B2),MEDIAN(MOD(B2,1),B10,B11),B11)-MEDIAN(NETWORKDAYS(A2,A2)*MOD(A2,1),B10,B11)
    Audere est facere

  3. #3
    Forum Contributor
    Join Date
    08-26-2011
    Location
    Bristol, England
    MS-Off Ver
    Excel 2007
    Posts
    149

    Re: Networkdays not bringing in the final jours of a weekday b4 weekend

    Hi daddylonglegs,

    Thanks very much for this, has worked a treat. And event he other way, in that if the call was logged on the weekend and finished on a tuesday it counts from Monday to time finish. brilliant, saved me a huge amount of time.

    cheers

+ 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