[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Employee ID[/TD]
[TD]Name[/TD]
[TD]Start[/TD]
[TD]Finish[/TD]
[/TR]
[TR]
[TD]161[/TD]
[TD]Paul[/TD]
[TD]10/08/2019 23:00:00[/TD]
[TD]11/08/2019 06:00:00[/TD]
[/TR]
[TR]
[TD]100[/TD]
[TD]Fred[/TD]
[TD]10/08/2019 23:00:00[/TD]
[TD]11/08/2019 06:00:00[/TD]
[/TR]
[TR]
[TD]224[/TD]
[TD]Jane[/TD]
[TD]11/08/2019 10:00:00[/TD]
[TD]11/08/2019 18:00:00[/TD]
[/TR]
[TR]
[TD]100[/TD]
[TD]John[/TD]
[TD]11/08/2019 15:00:00[/TD]
[TD]12/08/2019 03:00:00[/TD]
[/TR]
[TR]
[TD]161[/TD]
[TD]Paul[/TD]
[TD]11/08/2019 16:00:00[/TD]
[TD]12/08/2019 02:00:00[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Looking for excel to do an auto conditional format and highlight issues where the same employee starts their next shift within 12 hours of them finishing their previous shift. Easy if the table is sorted by name then start date, as it could simply minus the finish of previous shift from the start of current shift and if less than 12 hours, highlight in red. But the table is as is with regards the entry. There could be many employees in between the two entries of the same user (in our case Paul). Also need to cater for shifts going over midnight etc.
Any thoughts please?
<tbody>[TR]
[TD]Employee ID[/TD]
[TD]Name[/TD]
[TD]Start[/TD]
[TD]Finish[/TD]
[/TR]
[TR]
[TD]161[/TD]
[TD]Paul[/TD]
[TD]10/08/2019 23:00:00[/TD]
[TD]11/08/2019 06:00:00[/TD]
[/TR]
[TR]
[TD]100[/TD]
[TD]Fred[/TD]
[TD]10/08/2019 23:00:00[/TD]
[TD]11/08/2019 06:00:00[/TD]
[/TR]
[TR]
[TD]224[/TD]
[TD]Jane[/TD]
[TD]11/08/2019 10:00:00[/TD]
[TD]11/08/2019 18:00:00[/TD]
[/TR]
[TR]
[TD]100[/TD]
[TD]John[/TD]
[TD]11/08/2019 15:00:00[/TD]
[TD]12/08/2019 03:00:00[/TD]
[/TR]
[TR]
[TD]161[/TD]
[TD]Paul[/TD]
[TD]11/08/2019 16:00:00[/TD]
[TD]12/08/2019 02:00:00[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Looking for excel to do an auto conditional format and highlight issues where the same employee starts their next shift within 12 hours of them finishing their previous shift. Easy if the table is sorted by name then start date, as it could simply minus the finish of previous shift from the start of current shift and if less than 12 hours, highlight in red. But the table is as is with regards the entry. There could be many employees in between the two entries of the same user (in our case Paul). Also need to cater for shifts going over midnight etc.
Any thoughts please?
Last edited: