I have an excel sheet which we use to calculate employees work schedules.
I have a formula which calculates hours, taking into account second shift times, some work 2-10 pm etc.
=IF(OR(D5=""|C5="")|""| IF(D5=C5|12|IF(ABS(D5-C5)<>0|IF((D5-C5+12)>12| D5-C5| D5-C5+12)|0)))
Now there is new group...