+ Reply to Thread
Results 1 to 4 of 4

Calculating working time between 2 dates minus weekend

  1. #1
    Registered User
    Join Date
    03-21-2007
    Posts
    1

    Calculating working time between 2 dates minus weekend

    I have 3500 of these to do so a formula solution would be really appreciated.

    Cell A1 - 06/03/2007 10:00
    Cell B1 - 14/03/2007 14:00

    I need the difference between these two taking into account that my working day is 08:00-18:00 and I do not work weekends.


    I think it can be done using NETWORKDAYS but I cant figure out how to calculate the 2 part days.
    The following gives me the 50 hours Wed/Thu/Fri/Mon/Tue
    =((NETWORKDAYS(A1,B1)-2)*("18:00"-"08:00"))*24

    See my attachment for a manual calculation of my problem.

    Thanks
    Attached Files Attached Files
    Last edited by langered; 03-21-2007 at 11:14 PM.

  2. #2
    Forum Contributor
    Join Date
    12-12-2006
    Location
    New Zealand
    Posts
    151
    Cross Posting Wastes The Time of The kind People Who Have Takin The Time To Help You

    Please Read The Rules.

    Cross Post

  3. #3
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    langered

    As Reafidy pointed out you have failed to follow the rules of this site & ozgrid

    See the links below for forum rules
    Last edited by mudraker; 03-23-2007 at 04:35 PM.
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

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

    assuming your start and end times are always within business hours try

    =((NETWORKDAYS(A1,B1)-1)*("18:00"-"08:00")+MOD(B1,1)-MOD(A1,1))*24

+ 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