Good afternoon,
I am trying to tell if a time entered on my information falls between a set period to work out if the shift (day/night shift) in my formula.
I am a bit stuck as I am unsure how to move forward with this.
thanks in advance
Gavin
I am trying to tell if a time entered on my information falls between a set period to work out if the shift (day/night shift) in my formula.
Code:
=if(and(time(hour(Data[Time]),minute(Data[Time]),SECOND(Data[Time]))>=TIME(20,00,00),
time(hour(Data[Time]),minute(Data[Time]),SECOND(Data[Time]))<=TIME(08,00,00)),"LateShift","DayShift")
I am a bit stuck as I am unsure how to move forward with this.
thanks in advance
Gavin