+ Reply to Thread
Results 1 to 2 of 2

Elapsed time, respecting work hours

  1. #1
    Registered User
    Join Date
    11-17-2014
    Location
    Phoenix, AZ
    MS-Off Ver
    8
    Posts
    1

    Elapsed time, respecting work hours

    I am trying to set a formula to calculate elapsed time respecting work hours/days. I've looked around for an answer to this particular issue and have found some others that got me part of the way there, but not completely. Here's what I've got:

    I will have a submission date and time (month, day, year, hours, minutes) and a review date and time.

    Work hours are 08:00 - 12:00 and 13:00 - 17:00, Monday through Friday. There are holidays as well, which I'll have in a list off to the side.

    I've attached an example sheet with the correct turn times. I'd like the "Turn time" shown in Column F to be in either hh:mm format or as a number giving number of hours plus number of minutes as a fraction of an hour (i.e. time elapsed between 8:30 and 10:45 is 2.25). No preference on which - just something I can easily see what the time elapsed is and something I'll be able to do calculations on. I'll be averaging these turns times to give daily and monthly averages, and then calculating a bonus based on those averages.


    Any help would be greatly appreciated. Like I said, I saw some that calculated based on work hours, but I only found one that considered specific shifts and it was pretty confusing on how the formula worked, and when I copied it over to my sheet and substituted my own numbers the calculations were off.
    Attached Files Attached Files

  2. #2
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Elapsed time, respecting work hours

    It took me some time but I think I solved it.
    Used some names to make the formula more readable. They're documented in the sheet.
    The formula is constructed of 3 parts:
    1. Calculate the net working hours of the first day
    2. Calculate the net working hours of the last day, but only if that's not the same as the first day
    3. Calculate the net working hours of the working days between the first and last day (if any)
    The sheet with the formula is attached.
    Attached Files Attached Files
    Cheers!
    Tsjallie




    --------
    If your problem is solved, pls mark the thread SOLVED (see Thread Tools in the menu above). Thank you!

    If you think design is an expensive waste of time, try doing without ...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Calculated elapsed time during specified hours
    By edslead in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-13-2013, 10:15 AM
  2. [SOLVED] Calculating elapsed time,respecting working hours.
    By CoryX in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-10-2013, 04:13 PM
  3. Replies: 7
    Last Post: 07-25-2012, 09:14 AM
  4. Computing for Elapsed Time, in Hours
    By dizzygirl in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-21-2012, 04:32 PM
  5. [SOLVED] Elapsed Time over 24 hours
    By Fast Learner in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-17-2006, 08:55 PM

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