If you use the following formula in B2, you would get the Shift name/code.
=LOOKUP(MOD(SUBSTITUTE(A2,",","",2),1),{0,4.5,12.5 ,20.5,24}/24,{"A","B","C","A","B"})
OR
=LOOKUP(--REPLACE(A2,1,14,""),{0,4.5,12.5,20.5,24}/24,{"A","B","C","A","B"})
And you can use a pivot to get the count of events in each shift.




Reply With Quote
Bookmarks