+ Reply to Thread
Results 1 to 8 of 8

Payroll formula ?

  1. #1
    Registered User
    Join Date
    12-03-2006
    Posts
    4

    Payroll formula ?

    How do i get my reg hours cell to cap out at 40 then start a new value sequence starting from 1 in the overtime hour cell. Is there a formula i can use for that or is there more to it?

  2. #2
    Forum Contributor
    Join Date
    03-15-2005
    Location
    North Carolina
    MS-Off Ver
    2003 & 2007
    Posts
    180
    Do you have a source cell where it shows the total hours worked or are you putting the total hours worked in the "Regular Hours" cell and then wanting the adjustments to be made in that same cell and the OT cell?
    jtp

  3. #3
    Registered User
    Join Date
    12-03-2006
    Posts
    4
    I have the reg hour cell configured, but what i need is for a specific cell (reg hours) to stop adding at 40 and then automatically put everything over 40 in the ot hour cell starting at 1.

  4. #4
    Forum Contributor
    Join Date
    03-15-2005
    Location
    North Carolina
    MS-Off Ver
    2003 & 2007
    Posts
    180
    This specific "Regular Hours" field, is it a manual input cell or is it pointing to another cell. I ask this because in my eyes its the difference between 2 simple formulas or a macro.

    If its pointing to another cell, you can easily put a formula in this field to get the hours and stop at 40 and then take the difference and put that in the OT cell.

    However if the Regular hours cell is a manual input, then you can't put a formula there so you would need a macro to make this work. Either way is not difficult.

  5. #5
    Registered User
    Join Date
    12-03-2006
    Posts
    4
    The reg hours cell is the sum of 6 other cells not a manual input.

  6. #6
    Forum Contributor
    Join Date
    03-15-2005
    Location
    North Carolina
    MS-Off Ver
    2003 & 2007
    Posts
    180
    Ok if thats the case then you can use something like this in the regular hours field. I am going to say that your data is in Range A1 - A6 and this formula is in A7:

    =IF(SUM(A1:A6)>40,40,SUM(A1:A6))

    The OT cell is in B7

    =IF(A7=40,SUM(A1:A6)-40,0)

    You can of course make the adjustments as needed.

    HTH

  7. #7
    Registered User
    Join Date
    12-03-2006
    Posts
    4
    Wow, thank you very much with the the right cell alterations the formula worked perfect.


    Thanks,
    RJohnston

  8. #8
    Forum Contributor
    Join Date
    03-15-2005
    Location
    North Carolina
    MS-Off Ver
    2003 & 2007
    Posts
    180
    Great, happy to help

+ 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