+ Reply to Thread
Results 1 to 6 of 6

Calculating Hours Worked from Shift Begin and Shift End

  1. #1
    Registered User
    Join Date
    08-12-2011
    Location
    Brighton, UK
    MS-Off Ver
    Excel 2010
    Posts
    3

    Calculating Hours Worked from Shift Begin and Shift End

    Argh!

    I cannot figure this out!

    I have

    SHIFT STARTS SHIFT ENDS SHIFT LENGTH
    0930 1715 ?

    Any ideas how to calculate the lengths of the shifts? I REALLY don't want to have to manually put in all of the start and end times again in another format if i can avoid it!

    Thanks so much

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Calculating Hours Worked from Shift Begin and Shift End

    I'm going to assume your numbers are entered as text since you have the 0 in front of the 9 and I'm going to assume that all your time values are 4 digits.

    If Start is in A1 and End is in B2, Try
    =(LEFT(B1,2)&":"&RIGHT(B1,2))-(LEFT(A1,2)&":"&RIGHT(A1,2))
    Format the column as Custom [hh]:mm
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    08-12-2011
    Location
    Brighton, UK
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Calculating Hours Worked from Shift Begin and Shift End

    Quote Originally Posted by ChemistB View Post
    I'm going to assume your numbers are entered as text since you have the 0 in front of the 9 and I'm going to assume that all your time values are 4 digits.

    If Start is in A1 and End is in B2, Try
    =(LEFT(B1,2)&":"&RIGHT(B1,2))-(LEFT(A1,2)&":"&RIGHT(A1,2))
    Format the column as Custom [hh]:mm
    Does that work for you?
    Afraid not...
    am I doing something really stupid? all I'm getting is this:

    http://i204.photobucket.com/albums/b...el12th1533.jpg

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Calculating Hours Worked from Shift Begin and Shift End

    Okay, your numbers are numbers (note: there's no zero in front of the 9 in your picture, unlike your post). Try this

    =MOD(TEXT(B1,"00\:00")-TEXT(A1,"00\:00"),1)
    Does that work for you?

  5. #5
    Registered User
    Join Date
    08-12-2011
    Location
    Brighton, UK
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Calculating Hours Worked from Shift Begin and Shift End

    Hurrah!

    That did it :]

    =MOD(TEXT(C3,"00\:00")-TEXT(B3,"00\:00"),1)

    and the DAY TOTALS add up bueatifully.
    Thank you so much

  6. #6
    Registered User
    Join Date
    07-20-2011
    Location
    PA
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Calculating Hours Worked from Shift Begin and Shift End

    I have a example of my pay sheet, figured I would post it may be useful.
    Attached Files Attached Files
    Last edited by Guinness85; 08-12-2011 at 03:30 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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