Jun 06 2019 12:44 PM
Hey all. I need help with a simple time sheet. I have the sheet 95% complete. There is 1 formula that I can not make work. I have the total cell for regular hours worked and then I have a total cell for overtime hours worked. However I need the overtime hours worked cell to reflect that the regular hours worked cell is under 40 hours and reduce the overtime hours by that amount. Please help.
Jun 06 2019 01:08 PM
Jun 07 2019 02:44 AM - edited Jun 07 2019 02:56 AM
If the result of your formula for RegularHours does not exceed 40, the formula for OvertimeHours may be:
=TotalHours-40
Jun 07 2019 03:43 AM
@Sergei BaklanThat would go wrong if the amount of claimed overtime is less than the gap between regular hours and 40. Eg Reg=35, OT=3. It also highlights that in fact the regular hours also needs to be increased by an amount to fill the gap. So in fact two things are needed:
RealReg[ular hours] = MIN(TotalReg + TotalOT,40)
then Real OT = TotalReg + TotalOT - RealReg
Jun 07 2019 03:51 AM
@AdamV , it could be, but not necessary. It depends on business logic taken within the organization.
Jun 07 2019 03:52 AM
Jun 07 2019 04:45 AM