I am stuck on working out a formula to insert the hours worked into the appropriate shift column depending on the selections for IN and OUT if that is possible.

I would also like to be able to total the OT column as well. I have not found anything through search that quite fits the way our payroll dept has it laid out on this sheet. Per MN laws we are paid for anything over 40. I have put in formulas in K11 K23 and K29 to populate the adjacent OT total, but cannot work out how to populate a particular days cell once 40 hours in a week have been worked. I could work 24hr on, 24 off, 24 on, and only 8 hours of the 3rd day would count as OT.

K11 is totaled with K19 using =IF(SUM(K11,K19)>80,80,SUM(K11,K19)) and K20 populated by =IF(SUM(K11,K19)>80,SUM(K11:K19)-80,"0") which gives me total regular hours and total OT hours in the 2 week period, but leaves me stuck for how to get K4:K10 into the OT column once I exceed 40 hours.

Sorry for being long winded.