Forum Discussion

ryder.simmonscovering's avatar
ryder.simmonscovering
Copper Contributor
Aug 09, 2018

Overtime Calculation with Multiple Work Rates

I need a formula that will accomplish the following, and I am not sure how to create it.

We have employees who have 2 different rates, one for Work and one for Drive.  Our payroll spreadsheet has each day of the week broken into work and drive hours.  We need a formula that will take the summed total for work and drive hours, apply the first 40 total hours to their respective column, and add the remaining work and drive hours to the work and drive overtime columns.  I have figured out how to create a formula that will put the first 40 hours into Work and the remaining hours into Work-OT, but cannot determine how to accomplish this considering both rates, ie. if the employee hits 40 hours half way through their drive on Friday, the remaining drive hours as well as drive hours from Sat + Sun are put to the Drive-OT column, and the remaining work hours for Sat + Sun are put to Work-OT. 

9 Replies

    • ryder.simmonscovering's avatar
      ryder.simmonscovering
      Copper Contributor

       

      This is a sample of how the sheet is set up.  Ideally it would work so that Work (W) and Drive (D) hours columns are added to their respective columns on the right, until W+D combine for 40 hours, and then each hour after that would go into W/OT if W hours and D/OT if D hours.  I can provide cell numbers if needed.

      • Philip West's avatar
        Philip West
        Iron Contributor

        I think i've done it.

        I'm attaching a workbook that follows the screenshot, so i'm hoping you can copy/paste your data and it will just work for you.

         

        To explain though. It has 3 worksheets. The first (Example) is basically the sheet I used to try and work it out. I think it might be easier to understand what is happening on that sheet, but it's not usable.

         

        The one called Data, is where you should update your records, and the last one (helpers) is where the calculations are happening. You need to make sure that there is a row of 'helpers' for every row in data.

         

        Do test it, I've been looking at it long enough that i'm not 100% i can see it properly now :D

Resources