+ Reply to Thread
Results 1 to 3 of 3

Calculate Days, Hours & Minutes Worked

  1. #1
    Registered User
    Join Date
    02-16-2015
    Location
    Hull England
    MS-Off Ver
    2013
    Posts
    1

    Calculate Days, Hours & Minutes Worked

    Good Morning

    I would welcome any help you guys can offer, with a formula for calculating the time we spend on a particular project.

    The rules are:

    Each working day starts at 08:30 and finishes at 17:30.
    Saturdays are 08:30 through to 12:30.

    I require a formula to tell me how many days, hours and minutes worked based on the start date in column A and the end date in column B. Ideally formula should be in C.

    For example:

    Column (A) : 01/07/15 08:30
    Column (B) : 01/07/15 17:30
    Column (C) : 8 Hours

    For example:

    Column (A) : 01/07/15 08:30
    Column (B) : 02/07/15 17:30
    Column (C) : 1 Day 8 Hours

    For example:

    Column (A) : 01/07/15 08:30
    Column (B) : 04/07/15 12:30
    Column (C) : 3 Days 4 Hours

    For example:

    Column (A) : 01/07/15 08:30
    Column (B) : 06/07/15 12:00
    Column (C) : 3 Days 7 Hours 30 Minutes

    For example:

    Column (A) : 01/07/15 08:30
    Column (B) : 07/07/15 15:30
    Column (C) : 5 Days 3 Hours

    Any help you could offer would be Excellent. Many thanks for Looking ..

    Mulderman

  2. #2
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Calculate Days, Hours & Minutes Worked

    Hi

    C2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copy down
    To help you by my post? it would be nice to click on to say "Thank you".
    If you are happy with a solution to your problem?
    Click Thread Tools above your first post,
    select "Mark your thread as Solved".

  3. #3
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: Calculate Days, Hours & Minutes Worked

    This is actually a lot more complicated than it first seems. A shift from 0830 to 1730 is actually 9 hours and yet you show 8 hours. I presume you've excluded lunch hour on each day. This works fine on all examples except for the last one, which have a finishing shift at 15:30, which, if I assume lunch to be between 12:30 and 13:30, does not take into account lunch hour on the very last day (hence 3 hours as opposed to 2).

    I fail to find any 1 formula that can fit, reasonably well in 1 cell. If you look at the attached, all my methods of calculations ultimately lead to the need of 2 cells. 1 being the total number of work hours - and another for the worded version of that in days, hours and minutes.

    Just a brief on the methods I used, the Additive method is one I thought of to build up the number of work hours required per day. The Subtractive method is to take the full time difference between the start and end, and start deducting "outside hours" (e.g. between Monday 1730 to Tuesday 0830, which is 15 hours), taking also into account Saturday half-days and Sundays. There are 2 versions of these two methods, the Breakdown method is one I used with multiple helper cells when building up these methods, the non-Breakdown method is one that I removing all the helper cells and started combining them.

    The one I think you should look at in terms of "simplicity" is the Subtractive methods.
    Attached Files Attached Files

+ 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. Replies: 4
    Last Post: 02-12-2013, 07:01 AM
  2. Replies: 2
    Last Post: 02-11-2013, 02:26 PM
  3. Replies: 6
    Last Post: 12-01-2012, 05:28 PM
  4. Calculate hours / minutes worked
    By suma in forum Excel General
    Replies: 3
    Last Post: 12-15-2011, 03:02 AM
  5. Calculate Work Days Based on Hours Worked
    By FM1 in forum Excel General
    Replies: 7
    Last Post: 02-04-2009, 12:27 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