Closed Thread
Results 1 to 13 of 13

Timesheet that calcs time in, time out, lunch used, reg hours, ot hours, double hours

  1. #1
    Registered User
    Join Date
    02-08-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    6

    Timesheet that calcs time in, time out, lunch used, reg hours, ot hours, double hours

    Hello, I'm new to forums and excel so thanks in advance and take it easy on me =)

    I have a timesheet for work that I want to calculate the regular hours, overtime hours, and even the option for double time hours. Regular hours would be 8, overtime anything over 8 and double time anything over 12. I also want the timesheet to take in account for lunch time used. There isn't a lunch time in/time out, just 1 for the hour used, but sometimes lunch is only .5 for 30 minutes. I've seem to figure out how to make sure regular hours don't exceed 8 and put the excess into the overtime cell. I can't figure out how to subtract the lunch from the regular hours worked and calculate double time.

    Thanks in advance
    Attached Files Attached Files
    Last edited by noobface; 02-09-2013 at 11:29 AM.

  2. #2
    Forum Contributor dogberry's Avatar
    Join Date
    07-15-2012
    Location
    Wales, UK
    MS-Off Ver
    Excel 2010
    Posts
    624

    Re: Timesheet that calcs time in, time out, lunch used, reg hours, ot hours, double hours

    =IF((F8+G8>12),F8+G8-12,0)

    Hi

    The above should calculate the double time for you. In respect of lunch amend your formulas to subtract the time entered in the lunch column.


    Hope that helps


    Chris
    Click my star if I helped Thanks

  3. #3
    Registered User
    Join Date
    02-08-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Timesheet that calcs time in, time out, lunch used, reg hours, ot hours, double hours

    That worked great for the double time. I think I figured out the lunch part. Now what I'm stuck on is the overtime. It calculates like it should, but it shouldn't be more than 4 hours, thats when the double time kicks in. So I need it to start calculating above 8 hours but not more than 12, if that makes sense. Here is what I have so far.

    Regular hours =IF((D8-C8)*24-(E8)<=8,(D8-C8)*24-(E8),8)
    OT =IF((D8-C8)*24-(E8)>8,((D8-C8)*24-(E8))-8,0)
    DT =IF((F8+G8>12),F8+G8-12,0)

    Also where do I add the ,"" to make the cell blank if value is zero??

    Thanks in advance.

  4. #4
    Forum Contributor dogberry's Avatar
    Join Date
    07-15-2012
    Location
    Wales, UK
    MS-Off Ver
    Excel 2010
    Posts
    624

    Re: Timesheet that calcs time in, time out, lunch used, reg hours, ot hours, double hours

    Hi

    I will have another look for you will any of the work involve overnight into the following day. The ,"" comes at the end just before the closing bracket. You may find it easier and simpler to add an extra column for total hours worked and then work out your overtime rates from that total.

    Chris
    Last edited by dogberry; 02-09-2013 at 04:50 AM.

  5. #5
    Registered User
    Join Date
    02-08-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Timesheet that calcs time in, time out, lunch used, reg hours, ot hours, double hours

    Thanks for the quick response. No there will not be any overnight into the following day.

  6. #6
    Forum Contributor dogberry's Avatar
    Join Date
    07-15-2012
    Location
    Wales, UK
    MS-Off Ver
    Excel 2010
    Posts
    624

    Re: Timesheet that calcs time in, time out, lunch used, reg hours, ot hours, double hours

    Hi

    OK I have amended my post if you add the one extra column as suggested it would then be a simple case of any value over 12 goes in at double time, values between 8 and 12 normal overtime and 8 hours as standard

    Chris

  7. #7
    Registered User
    Join Date
    02-08-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Timesheet that calcs time in, time out, lunch used, reg hours, ot hours, double hours

    I'm not sure what you mean. Can you write out the formula that I would need to put?

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

    Re: Timesheet that calcs time in, time out, lunch used, reg hours, ot hours, double hours

    Hi noobface

    Have a look at the attached, see if this is of any help.
    1/ Reg Hours: up to 8hrs
    2: O/T Hours: for over 8 hrs up to 12 hrs
    3: D/T Hours: Anything over 12 hrs

    Note: These are for times on the same day, if the go into the next day. Then you might need to use the MOD function or an IF function to account for that.
    Attached Files Attached Files
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

  9. #9
    Registered User
    Join Date
    02-08-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Timesheet that calcs time in, time out, lunch used, reg hours, ot hours, double hours

    That worked perfectly! I think that is what dogberry was talking about, but I didn't know how to pull it off. Thank you both for your help.

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

    Re: Timesheet that calcs time in, time out, lunch used, reg hours, ot hours, double hours

    Hi noobface

    Thanks for the feed back.

    It is different then what dogberry was suggesting. There is no need for a extra column!

  11. #11
    Registered User
    Join Date
    02-08-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Timesheet that calcs time in, time out, lunch used, reg hours, ot hours, double hours

    Ok I wasn't sure if it was the same. Thanks again.

  12. #12
    Registered User
    Join Date
    12-06-2019
    Location
    california
    MS-Off Ver
    office 365
    Posts
    53

    Re: Timesheet that calcs time in, time out, lunch used, reg hours, ot hours, double hours

    Is it possible to do what he is doing but with an extra dimension of time in the double time
    ST = first 8 hrs
    Ot = hours 9- 12
    DT = anything over 12 and also hours between 12 am-8am

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,728

    Re: Timesheet that calcs time in, time out, lunch used, reg hours, ot hours, double hours

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

Closed 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