+ Reply to Thread
Results 1 to 7 of 7

How to calculate regular and overtime on a timesheet for excel...

  1. #1
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    How to calculate regular and overtime on a timesheet for excel...

    I have a timesheet I am trying to create.

    Format, Custom HH:MM

    Cell A1 8:30 am (start time)
    Cell B1 6:30 pm (end time)
    Cell D1 12:00 pm (lunch start)
    Cell E1 1:00pm (lunch end)

    I want F1 to show regular time up to 8 hours (no more)
    I want G1 to show overtime, over 8 hours. (no limit)

    F1 should read 8 hours and G1 should read 1 hour if this works as I want.

    Anyone know of a creative way to do this?

    Thanks!

  2. #2
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: How to calculate regular and overtime on a timesheet for excel...

    in f1 put:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    IN G1 put:
    =IF(F1<8,0,((HOUR(B1)-HOUR(A1))-(HOUR(D1)-HOUR(C1)))-8)

    ---------- Post added at 03:08 PM ---------- Previous post was at 03:07 PM ----------

    NOTE: I used Military time. Not sure if it would work any other way.

  3. #3
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Re: How to calculate regular and overtime on a timesheet for excel...

    Epic, thank you!

  4. #4
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Re: How to calculate regular and overtime on a timesheet for excel...

    I tried this with minute increments (if Cell B1 reads 6:00 PM cell F1 regular time would be 8, but G1 overtime would be 0.5HR)

    It seems if I put in 6:00, it will show still 1 hr overtime, and if I put in 5:59, it puts in zero...

    Do I need to add a formula to add in the minutes as well? I'm don't want to calculate on the seconds...

    Thanks!

  5. #5
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: How to calculate regular and overtime on a timesheet for excel...

    I should have known you would run into issues. Anyways, this is a rather generic request, and your best bet is to search online for your answer. A quick google search gave me this site, which wiill give you what you want and more:
    HTML Code: 
    You can even download a workbook with all of the formulas.

  6. #6
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: How to calculate regular and overtime on a timesheet for excel...

    Hi unclejemima

    Another option would be
    In cell F1: =IF((B1-E1)+(D1-A1)>L1,L1)
    In cell G1: =IF((B1-E1)+(D1-A1)>L1,((B1-E1)+(D1-A1))-L1)
    In cell L1, I put 8 hours for your regular hours and formatted cells F1, G1, L1 as [h]:mm

  7. #7
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Re: How to calculate regular and overtime on a timesheet for excel...

    Thanks guys. Forgot to say this work. Thread solved!

+ 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