+ Reply to Thread
Results 1 to 7 of 7

Formula

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

    Formula

    hi, I'm hoping someone that brighter than myself can help.

    I need a formula that can calculate a date and time difference in hours/min, but only accounting for an 8 hour work day, discounting weekends.
    work shift 7am-3:30pm.

    ex: time in - 1/1/07 1:00pm
    time start 1/3/07, 8:00am
    time finish 1/3/07, 9:00am

    I am trying to determine a response and cycle time. actually I need both cycle and response time formulas.

    Time In Time start Time finish Cycletime response
    1/1/07 1:00pm 1/3/07 8:00am 1/3/07 9:30a 1:30 ?????
    1/3/07 7:00am 1/3/07 9:00am 1/4/07 10:00a 25:00 ????
    1/5/07 3:30pm 1/8/07 7:15am 1/8/07 7:30a 0:15

    Thanks to anyone that can help

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Are all the times within working hours? If so....

    Assuming you have a start time and date in A1 and end time date in B1 you could use the following formula

    =(NETWORKDAYS(A1,B1)-1)*("15:30"-"07:00")+MOD(B1,1)-MOD(A1,1)

    formatted as [h]:mm

    but I see you mention an 8 hour work day. If you're also deducting a 30 minute lunch break then that complicates things, what time is the lunch break?

  3. #3
    Registered User
    Join Date
    03-03-2007
    Posts
    5

    Lunch break is from 11:30 to 12 noon

    Thanks for your help on this

  4. #4
    Registered User
    Join Date
    03-03-2007
    Posts
    5

    still having trouble using the formula above

    1/2/07 11:00 1/3/07 9:00 1/3/07 10:00 1:00 #name?
    1/5/07 11:00 1/8/07 8:00 1/8/07 9:00 #name? #name?
    1/3/07 14:15 1/4/07 7:00 1/3/07 8:00 1:00 #name?

  5. #5
    Registered User
    Join Date
    03-03-2007
    Posts
    5

    works perfectly thanks again

    Thanks again

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    To take the lunch break into account...

    =(NETWORKDAYS(A1,B1)-1)/3+MOD(B1,1)-MOD(A1,1)+((HOUR(A1)>11)-(HOUR(B1)>11))/48

  7. #7
    Registered User
    Join Date
    03-03-2007
    Posts
    5

    Many thanks to Daddylonglegs

    Thanks Again

+ 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