+ Reply to Thread
Results 1 to 6 of 6

Payroll: Need help with a formula that can calculate 3 shift differentials and overtime.

  1. #1
    Registered User
    Join Date
    06-17-2012
    Location
    texas
    MS-Off Ver
    Excel 2003
    Posts
    3

    Question Payroll: Need help with a formula that can calculate 3 shift differentials and overtime.

    I'm trying to build an easy to use spreadsheet for myself and some of the guys I work with.

    The idea:

    is that you have a Row for each day of the week. And a column for each of the different shifts(first/day, second/evenings and third/nights). All you have to do is punch in the number of hours you worked that day and the spreadsheet will calculate your time in hours and expected compensation including overtime if there are any hours over 40.

    The formula I'm using:
    The red text below shows the part of the formula that will calculate the hours worked in each shift (B2, C2 and D2) mutiplied by their shift differentials as long as B2+C2+D2 DOESN'T equal more than 40.

    The green text below shows the part of the formula that will calculate the OVERTIME hours or anything over 40 hours worked.(G2 is the cell containing the over time rate.)

    =IF(B2+C2+D2<40,(B2*F4)+(C2*F6)+(D2*F6),((B2+C2+D2-40)*G2)+??????????

    The question marks show the portion of the formula I assume, (if this is the right formula to use for this application....), is missing/I don't know how to build.

    The issues:

    1. As you can see, B2, C2 AND D2 are different pay rates. So to get an accurate pay out amount. The formula must account for the three dif's and the overtime.

    2. Currently, this formula can only calulate shift differential pay accurately under 40 hrs a week. Once the hours worked hit 40, ALL hours over 40 need to be multiplied by the overtime rate(G2) regardless of what shift they are worked one.

    In semi-laymans terms:

    I need the differentials to be multiplied by the hours worked like this >>> (B2*F4)+(C2*F6)+(D2*F6)
    UNTIL the 40 hours a week is hit, like this >>> (B2+C2+D2>=40)
    THEN anything over 40 is multiplied by the overtime rate like this >>> (40<VALUE*G2)

    I've attached a picture of the 'payratecalc' so you can get an idea of the lay out and maybe a better idea of what I have in mind.

    payratecalc.jpg

  2. #2
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Payroll: Need help with a formula that can calculate 3 shift differentials and overtim

    In your formula it looks to me as you are testing whether you have worked more than 40 hours on sunday. Shouldn't it be the to total of the week?
    Sincerely
    S?ren Larsen

    "Give a man a fish, and you'll feed him for a day. Give a man a fishing rod, and he'll steal your yacht!"

  3. #3
    Registered User
    Join Date
    06-17-2012
    Location
    texas
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Payroll: Need help with a formula that can calculate 3 shift differentials and overtim

    The formula currently only encompasses one row. This is because it simpler for me to work with until i can figure out a formula that works the way i want. Once i get a working formula i will incorporate the rest of the cells in columns B, C and D.

  4. #4
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Payroll: Need help with a formula that can calculate 3 shift differentials and overtim

    Do you want overtime pay included in column E?

  5. #5
    Registered User
    Join Date
    06-17-2012
    Location
    texas
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Payroll: Need help with a formula that can calculate 3 shift differentials and overtim

    yes please.

  6. #6
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Payroll: Need help with a formula that can calculate 3 shift differentials and overtim

    Well, it's not as pretty as I would have liked, but it should work. In E2 and copied down:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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