+ Reply to Thread
Results 1 to 14 of 14

help with calculating overtime in a time sheet

  1. #1
    Registered User
    Join Date
    09-13-2005
    Posts
    5

    help with calculating overtime in a time sheet

    Hi Guys,
    I'm sure the question has been asked from time to time, but this one has got me a bit stumped, and looking at other peoples questions, just confuses me even more!

    so basically I just wanna be able to enter times say from
    0600 am till 1953 with a .5 lunch break

    Basically what I want from this, is a cell for normal hours up to 10, a cell for overtime hours after 10 and a total.

    i've managed to get a total, and overtime hours, but not normal hours!

    Then for the totals
    I want a cell that works out normal hours (which should always be 76 anyway)
    another cell that works out time and half (which is normal time that goes over 76)
    and another cell that works out the double time.


    Sounds a bit weird, but basically we usually do long days...we get double time after 10 hours in a day. and time and half after 76hrs in a fortnight..

    I have a copy of mytimesheet of what i've achieved so far, so if anyone could maybe help me, download it, edit it, and maybe mail it back to me would be awesome!
    with any suggestions!!


    Cheers
    Nico


    http://members.iinet.net.au/~nico69/time_sheet.xls


    [email protected]

  2. #2
    Roger Govier
    Guest

    Re: help with calculating overtime in a time sheet

    Hi

    In cell E2 =MIN(10,((D2-B2)*24-C2))
    In Cell F2 =MAX(0,((D2-B2)*24-C2-10))
    In cell H2 =E2+F2
    Copy down range as appropriate. Format cells E2:H17 to 2 places decimal.

    Regards

    Roger Govier


    jongyrocka wrote:
    > Hi Guys,
    > I'm sure the question has been asked from time to time, but this one
    > has got me a bit stumped, and looking at other peoples questions, just
    > confuses me even more!
    >
    > so basically I just wanna be able to enter times say from
    > 0600 am till 1953 with a .5 lunch break
    >
    > Basically what I want from this, is a cell for normal hours up to 10, a
    > cell for overtime hours after 10 and a total.
    >
    > i've managed to get a total, and overtime hours, but not normal hours!
    >
    > Then for the totals
    > I want a cell that works out normal hours (which should always be 76
    > anyway)
    > another cell that works out time and half (which is normal time that
    > goes over 76)
    > and another cell that works out the double time.
    >
    >
    > Sounds a bit weird, but basically we usually do long days...we get
    > double time after 10 hours in a day. and time and half after 76hrs in a
    > fortnight..
    >
    > I have a copy of mytimesheet of what i've achieved so far, so if anyone
    > could maybe help me, download it, edit it, and maybe mail it back to me
    > would be awesome!
    > with any suggestions!!
    >
    >
    > Cheers
    > Nico
    >
    >
    > http://members.iinet.net.au/~nico69/time_sheet.xls
    >
    > [email protected]
    >
    >


  3. #3
    Forum Contributor
    Join Date
    06-29-2005
    Location
    TN
    MS-Off Ver
    Microsoft 365
    Posts
    327
    Here's what I use, hope it helps,

    For a two week pay period, I calculate the number of hours down a column (c5:c11; & c14:c20). I add these two together to give me the total number of hours worked for the two week pay period.

    I use this to calculate any hours worked over 80 (time & 1 half) -
    =IF(L23>=80,SUM(L23-80),"0")

    My end result is that I get a total for the 80 hours and (if any), overtime hours. I then use my rate of pay to determine my pay including OT - if any.


    ...Ltat42a




    Quote Originally Posted by jongyrocka
    Hi Guys,
    I'm sure the question has been asked from time to time, but this one has got me a bit stumped, and looking at other peoples questions, just confuses me even more!

    so basically I just wanna be able to enter times say from
    0600 am till 1953 with a .5 lunch break

    Basically what I want from this, is a cell for normal hours up to 10, a cell for overtime hours after 10 and a total.

    i've managed to get a total, and overtime hours, but not normal hours!

    Then for the totals
    I want a cell that works out normal hours (which should always be 76 anyway)
    another cell that works out time and half (which is normal time that goes over 76)
    and another cell that works out the double time.


    Sounds a bit weird, but basically we usually do long days...we get double time after 10 hours in a day. and time and half after 76hrs in a fortnight..

    I have a copy of mytimesheet of what i've achieved so far, so if anyone could maybe help me, download it, edit it, and maybe mail it back to me would be awesome!
    with any suggestions!!


    Cheers
    Nico


    http://members.iinet.net.au/~nico69/time_sheet.xls


    [email protected]

  4. #4
    Registered User
    Join Date
    09-13-2005
    Posts
    5
    thanks heaps guys...now the only problem is, if i put in a time from say 23:00 till 03:00 i get a negative result...

    How can i over come this?!

  5. #5
    Forum Contributor
    Join Date
    09-08-2005
    Location
    UK
    MS-Off Ver
    2010
    Posts
    107
    I'm not sure how to do it in Excel (I'm just beginning myself) but I would assume that you could write something that describes:

    Hours='TimeB - Time A'
    IF Hours = a minus number then *-1 else keep answer.

    Something like that.

  6. #6
    Registered User
    Join Date
    09-13-2005
    Posts
    5
    hmm...not sure...
    either way, i have to include it into the formula's that Russle Govier posted

  7. #7
    Forum Contributor
    Join Date
    09-08-2005
    Location
    UK
    MS-Off Ver
    2010
    Posts
    107
    In Excel the Absolute value is calculated by using the ABS function so maybe something like:

    In cell E2 =MIN(10,((ABS(D2-B2)+24)*24-C2))

    or wherever that minus number might be calculated



    Sorry, I don't think that would work

    0300 - 2300 = -2000
    -2000 + 2400 = 0400 (which would work)

    2300 - 2000 = 0300 (which is what you want)
    0300 + 2400 = 2700 (which isn't what you want)

    Perhaps with In cell E2 =MIN(10,((D2-B2)+2400*24-C2))

    Then IF E2>2400 THEN -2400 ELSE END

    or something along those lines ???
    Last edited by Daminc; 09-14-2005 at 04:52 AM.

  8. #8
    Registered User
    Join Date
    09-13-2005
    Posts
    5
    I gave it a shot but no cigar...

    I'm pretty sure I've got to include some more of these's () with a < in it somewhere

  9. #9
    Forum Contributor
    Join Date
    09-08-2005
    Location
    UK
    MS-Off Ver
    2010
    Posts
    107
    I just amended my last post.

    (Please bare in mind that I can do the math but I'm a novice at Excel)

  10. #10
    Registered User
    Join Date
    09-13-2005
    Posts
    5
    Ok...
    It think i've done it!!

    How realiable it is, i dunno... but it works

    =MIN(10,((D7-B7+(D7<B7))*24-C7))
    =MAX(0,((D12-B12+(D12<B12))*24-C12-10))


    can anyone else confirm that this is ok to use?!

  11. #11
    confused
    Guest

    Re: help with calculating overtime in a time sheet

    am havint the same problem .but use a 48he clock to overcome it for now

    so i enter the time as 23:00 to 27:00

    excell does not like working out "night hours" so without over inflating the
    workbook with excessive formulas this works


    "jongyrocka" wrote:

    >
    > hmm...not sure...
    > either way, i have to include it into the formula's that Russle Govier
    > posted
    >
    >
    > --
    > jongyrocka
    > ------------------------------------------------------------------------
    > jongyrocka's Profile: http://www.excelforum.com/member.php...o&userid=27200
    > View this thread: http://www.excelforum.com/showthread...hreadid=467159
    >
    >


  12. #12
    Peo Sjoblom
    Guest

    Re: help with calculating overtime in a time sheet

    =MOD(end-start,1)


    will take care of hours after midnight

    start 18:00
    end 04:00


    where A1 holds 18:00 and B1 04:00

    =MOD(B1-A1,1)

    returns 10:00

    --
    Regards,

    Peo Sjoblom

    (No private emails please)


    "confused" <[email protected]> wrote in message
    news:[email protected]...
    > am havint the same problem .but use a 48he clock to overcome it for now
    >
    > so i enter the time as 23:00 to 27:00
    >
    > excell does not like working out "night hours" so without over inflating
    > the
    > workbook with excessive formulas this works
    >
    >
    > "jongyrocka" wrote:
    >
    >>
    >> hmm...not sure...
    >> either way, i have to include it into the formula's that Russle Govier
    >> posted
    >>
    >>
    >> --
    >> jongyrocka
    >> ------------------------------------------------------------------------
    >> jongyrocka's Profile:
    >> http://www.excelforum.com/member.php...o&userid=27200
    >> View this thread:
    >> http://www.excelforum.com/showthread...hreadid=467159
    >>
    >>



  13. #13
    Arvi Laanemets
    Guest

    Re: help with calculating overtime in a time sheet

    Hi

    Start time: A2=23:00
    End time : B2= 3:00
    Working hours: C2=B2-A2+(B2<A2)
    C2 returns 4:00 (the formula returns right time intervall, until it remains
    <24:00 - whenever end time < start time, midnight rollover is counted)


    Arvi Laanemets


    "confused" <[email protected]> wrote in message
    news:[email protected]...
    > am havint the same problem .but use a 48he clock to overcome it for now
    >
    > so i enter the time as 23:00 to 27:00
    >
    > excell does not like working out "night hours" so without over inflating

    the
    > workbook with excessive formulas this works
    >
    >
    > "jongyrocka" wrote:
    >
    > >
    > > hmm...not sure...
    > > either way, i have to include it into the formula's that Russle Govier
    > > posted
    > >
    > >
    > > --
    > > jongyrocka
    > > ------------------------------------------------------------------------
    > > jongyrocka's Profile:

    http://www.excelforum.com/member.php...o&userid=27200
    > > View this thread:

    http://www.excelforum.com/showthread...hreadid=467159
    > >
    > >




  14. #14
    Rich
    Guest

    Re: help with calculating overtime in a time sheet


    lol,, thanks, guess i was overlooking the easier option and looking at more
    complicated formulas,,,

    thanks thats helped a lot


    "Arvi Laanemets" wrote:

    > Hi
    >
    > Start time: A2=23:00
    > End time : B2= 3:00
    > Working hours: C2=B2-A2+(B2<A2)
    > C2 returns 4:00 (the formula returns right time intervall, until it remains
    > <24:00 - whenever end time < start time, midnight rollover is counted)
    >
    >
    > Arvi Laanemets
    >
    >
    > "confused" <[email protected]> wrote in message
    > news:[email protected]...
    > > am havint the same problem .but use a 48he clock to overcome it for now
    > >
    > > so i enter the time as 23:00 to 27:00
    > >
    > > excell does not like working out "night hours" so without over inflating

    > the
    > > workbook with excessive formulas this works
    > >
    > >
    > > "jongyrocka" wrote:
    > >
    > > >
    > > > hmm...not sure...
    > > > either way, i have to include it into the formula's that Russle Govier
    > > > posted
    > > >
    > > >
    > > > --
    > > > jongyrocka
    > > > ------------------------------------------------------------------------
    > > > jongyrocka's Profile:

    > http://www.excelforum.com/member.php...o&userid=27200
    > > > View this thread:

    > http://www.excelforum.com/showthread...hreadid=467159
    > > >
    > > >

    >
    >
    >


+ 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