+ Reply to Thread
Results 1 to 5 of 5

Spliting Day Shift and Night Shift Hours

  1. #1
    Registered User
    Join Date
    09-21-2012
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    13

    Spliting Day Shift and Night Shift Hours

    Hello,

    On the face of it my problem seems simple, but gets complicted because of the 24hour time system.

    Assuming I have a start time in A1 and a finish time in A2 I can easily work out the total in between.

    For example Production Start 23:00 Production Finish 08:00 - Total time 9 hours - so far so good.

    Now Assume that I have two shifts, Day shift (6am to 6pm) and night shift (6pm to 6am)

    Night shift started production at 23:00 and they hand over to day shift at 6am so..

    Night shift has 7 hours of production and day shift has 2 hours - 9 in total.
    A1 - A2 - A3 - A4 - A5
    23:00 - 08:00 - 9:00 - 7:00 - 2:00

    Production times can start at ANY time but shift patterns are fixed.
    What formula can I use in cells A4 and A5? Or will I need VBA for this task?

    Thanks for reading.

    I'm guessing this is very hard to achieve?
    Last edited by Goldbadger2; 04-26-2013 at 06:04 AM.

  2. #2
    Registered User
    Join Date
    09-21-2012
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Spliting Day Shift and Night Shift Hours

    Bumping this post.

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Spliting Day Shift and Night Shift Hours

    See the attached file with formula.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    09-21-2012
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Spliting Day Shift and Night Shift Hours

    kvsrinivasamurthy, thank you for the formula it works a treat!

    I have tried to break your formula with all kinds of times and so far it has stood strong.

    Kudos to you

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Spliting Day Shift and Night Shift Hours

    Thanks for the compliments.

+ 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