On the SC Check In sheet the following formulas produce the expected output.
1. For OT: =IFERROR(ROUND(IF(SUM([@[C/O]],[@Hours])>14,14-[@[C/O]],IF(SUM([@[C/O]],[@Hours])>8,SUM([@[C/O]],[@Hours])-8,[@Hours]-[@Straight])),2),"")
2. For DT: =[@Hours]-SUM([@Straight],[@OT])
On the LO Check In sheet only five expected outputs are given although there are six so I assume the five shown exclude Straight, OT and DT for John Smith 6
1. For Straight: =IF([@[LO OUT]]="","",IF([@[Carry Hrs]]>=8,0,8-[@[Carry Hrs]]))
2. For OT:
Formula:
=IF([@[LO OUT]]="","",IF([@[Carry Hrs]]>=16,0,IF(SUM([@[LO Hours]],[@[Carry Hrs]])>=14,MAX(0,14-[@[Carry Hrs]]),IF(SUM([@[Carry Hrs]],[@[LO Hours]])>8,MIN([@[LO Hours]]-[@Straight],SUM([@[Carry Hrs]],[@[LO Hours]])-8)))))
3. for DT: =IF(SUM([@[LO Hours]],[@[Carry Hrs]])<14,0,[@[LO Hours]]-SUM([@Straight],[@OT]))
Let us know if you have any questions.
Bookmarks