Calculating OT Labor hours

davidcox9

New Member
Joined
Sep 21, 2023
Messages
12
Platform
  1. Windows
I've got a very specific circumstance that I hope I can explain enough to get help. I have formulas to calculate cumulative hours so we can get anything over 40 would go to OT. However if you use sick time it doesn't count towards OT. So an employee takes 8 hours sick time, then works 40 hours the rest of the week, for a total of 48 hours. There should be no OT but the formulas I have are including the OT.

Here is an example of what I have
DateDayHours TypeElement NameHoursCumm HoursOT Hours
17-Sep-2023​
Sun
0​
0​
18-Sep-2023​
MonSick Employeee050 SICK PAY8
8​
0​
19-Sep-2023​
TueRegular Hourse001 REGULAR HOURS8
16​
0​
20-Sep-2023​
WedRegular Hourse001 REGULAR HOURS12
28​
0​
21-Sep-2023​
ThuRegular Hourse001 REGULAR HOURS8
36​
0​
22-Sep-2023​
FriRegular Hourse001 REGULAR HOURS12
40​
8​
23-Sep-2023​
Sat
0​
0​

I need to somehow not include the 8 hours in OT but would also need to make the Cumm Hours show 48 instead of 40.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
try this:

Mr excel questions 63.xlsm
ABCDEFG
1DateDayHours TypeElement NameHoursCumm HoursOT Hours
217-Sep-2023Sun00
318-Sep-2023MonSick Employeee050 SICK PAY880
419-Sep-2023TueRegular Hourse001 REGULAR HOURS8160
520-Sep-2023WedRegular Hourse001 REGULAR HOURS12280
621-Sep-2023ThuRegular Hourse001 REGULAR HOURS16444
722-Sep-2023FriRegular Hourse001 REGULAR HOURS125616
823-Sep-2023Sat5616
davidcox9
Cell Formulas
RangeFormula
F2:F8F2=N(F1)+E2
G2:G8G2=IF(IF(ISNUMBER(FIND("SICK",D2)),0,E2)+N(F1)>40,(IF(ISNUMBER(FIND("SICK",D2)),0,E2)+N(F1)-40),0)
 
Last edited:
Upvote 0
The column F worked for me but column G I am getting 0,8,12,16,12. But I think I was able to change it enough to get it to work. Thank you for the help!
 
Upvote 0
The column F worked for me but column G I am getting 0,8,12,16,12. But I think I was able to change it enough to get it to work. Thank you for the help!
what did you enter in column E in your example. Did you paste the suggestion I gave starting at cell A1?

As you can clearly see in the post I gave it works.
 
Upvote 0
I copy and pasted your formula, then just changed to the correct cell #'s, mine aren't A1 like your example.
 
Upvote 0
I copy and pasted your formula, then just changed to the correct cell #'s, mine aren't A1 like your example.
then you problably didn't update everything. please tell me your formulas in the top two rows of these columns: 1) Cumm Hours, 2)OT Hours.

or create an new worksheet and past the entire xl2bb I suggested in cell a1 AND compare with your numbers anew.

or tell me your column numbers and row numbers of your first row (the row with "DATE" in the first cell) and the second row (the first row of data).

or install the xl2bb add in (link below) and paste an xl2bb mini worksheet of your data.
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,183
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top