+ Reply to Thread
Results 1 to 5 of 5

Time Sheet - Overtime

  1. #1
    Registered User
    Join Date
    01-06-2010
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    2

    Time Sheet - Overtime

    I am trying to get a time card formatted correctly where the overtime is calculated as well, but am having difficulty getting this accomplished. If the employee works over 40 hours in a week then the overtime is calculated. How would I get the overflow of hours to go into a different cell?

    Thank you!

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Time Sheet - Overtime

    Hi smcrum

    welcome to the forum,

    maybe something like

    =if(a1>40,a1-40,0)

    to calculate overtime with total time worked in A1, but...

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Time Sheet - Overtime

    You can sum a row of cell values with daily hours like so in A8:

    =SUM(A1:A7)

    Now, to get that formula to stop at 40 hours, use this in A8:

    =MIN(40, SUM(A1:A7))

    ...and to see the overtime in A9:

    =MAX(0, SUM(A1:A7)-40)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    01-06-2010
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Time Sheet - Overtime

    Thank you JBeaucaire that did exactly what I was looking for!

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Time Sheet - Overtime

    If that takes care of your need, be sure to EDIT your original post, click Go Advanced and mark the PREFIX box [SOLVED].


    (Also, use the blue "scales" icon in our posts to leave Reputation Feedback, it is appreciated. It is found across from the "time" in each of our posts.)

+ 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