+ Reply to Thread
Results 1 to 5 of 5

Timesheet calculation

  1. #1
    Registered User
    Join Date
    10-25-2006
    Posts
    3

    Timesheet calculation

    MY time sheet calculates the hours worked correctly, and the hours worked after removing luch breaks correctly.

    Then I limit the number of hours to 40 per week using =MIN($H$3,M15) with $H$3 representing 40, which does what it is supposed to, however when I calculate OT for all hours greater than 40, using this formula =MAX(0,M24-$H$3) the calculation ends up to be 3.3 instead of 3.25


    Hrs wkd actual limit OT
    45.75 43.25 40 3.25
    Last edited by candlekeeper; 10-25-2006 at 03:16 PM.

  2. #2
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    You can try formatting the cell with the formula to Number with 2 decimals. It may simply be a rounding issue (rounding .25 to one place will give you .3)

    Good Luck

    Bruce
    Bruce
    The older I get, the better I used to be.
    USA

  3. #3
    Registered User
    Join Date
    10-25-2006
    Posts
    3
    I thought that was the issue too, but when I change the cell format from test to a format allowing two decimals I get like 3.6

  4. #4
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    There has to be something else going on with your formulas, as there is no way 3.6 should be returned.

    I don't know what formulas are behind the scenes to H3 or M15, but it may be that they need to be rounded to two decimals, e.g.

    =Round(your current formula here,2)

    Give that a try. Also, if this doesn't work, you should post more specific data so we can evaluate your issue.

    Good Luck

    Bruce

  5. #5
    Registered User
    Join Date
    10-25-2006
    Posts
    3
    Thnak! Got it.

+ 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