Ah, ok, I missed the part of it being live updated.. sorry..
Basicly at midnight you want the date to stay unchanged until the nightshift ends. (6 AM)
Try if it works with the formula
NOW() will give current date and time, the MOD around it makes sure only the time part is evaluated.
and the IF test makes sure that as long as the time is before 6 AM (or the value in cell D6) that the date is changed to yesterdays date
In D6 I put back your original value of 6:00 for this formula
Also I changed the formula in the Nightshift end times to =I3+1+D6
now with the new formula in I3 (and simular functions for other shifts) the date should only change after 6:00
I also uploaded a new sheet as seeing it in the sheet makes easier to understand.
you can test the effect of the delayed date change by typing an end time in D6 that is after current time, then you will see the date jumping back in the first shift block
Bookmarks