Formula for OT/DT hours worked

dorothy0831

New Member
Joined
Jul 19, 2006
Messages
11
Our company was part of the cyber attack on Kronos private cloud. I need to create formulas to arrive at overtime and double time for employees who work 5days 8hrs or 4days 10hrs. I can create formulas for relatively easy if and statements but I'm struggling with this.

If the shift shows 5days8hrs and the employee worked 10.2 hours I need a formula to display overtime over 8hrs in a day as (2hrs) and double time over 10 hrs in a day as (.2 hrs), however if the shift says 4days10hours and the employee worked 12.5 hours I need a formula to display overtime over 10 hrs in a day as (2.0 hrs) and double time for hours over 12 in a day as (.5 hrs).

This is what I have for OT but not correct because I want it to stop at 10 and have the remaining .2hrs to show in DT column.
=IF(AND(E6>=8,E6<=12),E6-8,0)

1639843058275.png
1639843058275.png


Your help is greatly appreciated.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Update: I've been playing around and have gotten the 5days8hr shift to work but now I need to know if I can put an or in the formula to get it to say if 4days10hr to perform a different scenario. Can I put an or with this formula?

1639849434534.png
 
Upvote 0

Forum statistics

Threads
1,215,055
Messages
6,122,902
Members
449,097
Latest member
dbomb1414

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