[TABLE="width: 623"]
<tbody>[TR]
[TD][/TD]
[TD="align: right"]01/08/2018[/TD]
[TD="align: right"]02/08/2018[/TD]
[TD="align: right"]03/08/2018[/TD]
[TD="align: right"]04/08/2018[/TD]
[TD="align: right"]05/08/2018[/TD]
[TD="align: right"]06/08/2018[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]morning[/TD]
[TD]fred[/TD]
[TD]sid[/TD]
[TD]joe[/TD]
[TD]dave[/TD]
[TD]dave[/TD]
[TD]james[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]evening[/TD]
[TD]bill[/TD]
[TD]joe[/TD]
[TD]sid[/TD]
[TD]harry[/TD]
[TD]mike[/TD]
[TD]peter[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="colspan: 5"]in this example, only joe on 3/8/18 should be highlighted[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="colspan: 2"]is this correct ?[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Yes in your example only Joe should be highlighted.
But in my example only Roy 24 Jan should be highlighted.
It doesn't matter if you are the first in the evenshift or the 2nd. But it's import for the first person that start the day.
So if roy was 2nd in the evening, but still first in the next morning, it should be highlighted
And if roy was 1st in the evening, bus also first in the next morning, it should be higlighted
If roy was 2nd in the evening, and 2nd the next morning, it should NOT be highlighted
If roy was 1st in the evening, and 2nd the next morning, it should NOT be hlighlight.
So only if you do the evening (doens't matter 1st or 2nd in the evening list), and the first in the morning shift, that it should be highlighted.
As english is not my native language, I still hope you understand me