You shouldn't need to change your totals. Only change the daily Regular and OT formulas so they “know” whether this row is the 6th worked day or not.
Assume a blank In Time means a non-worked day.
Put these two formulas in every row (E and F), then copy down.
Regular Hours (E3):
=IF(COUNTIF($B$3:B3,">0:00")>5,
0,
MIN((C3-B3)*24-D3,8)
)
OT Hours (F3):
=IF(COUNTIF($B$3:B3,">0:00")>5,
(C3-B3)*24-D3,
MAX(0,(C3-B3)*24-8-D3)
)
COUNTIF($B$3:B3,">0:00") counts how many days so far in the week have hours worked
If more than 5 → this day is automatically overtime
If 5 or fewer → use your normal split regular vs OT logic
Blank days do not count, so if you take a weekday off, Saturday becomes the 5th day → no OT If you work all five weekdays, Saturday becomes the 6th → all OT
Your week totals continue to work the same way as before with no changes needed.
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin