Forum Discussion

Showtime11214's avatar
Showtime11214
Copper Contributor
Nov 07, 2022
Solved

Need help splitting up times in excel into 3 shifts

Need help splitting up times in excel into 3 shifts which are 7:01 to 15:00, 15:01 to 23:00, and 23:01 to 7:00. I am trying to use this formula and I don't know why it's not working- =IF(AND(TEXT(A2,...
  • HansVogelaar's avatar
    HansVogelaar
    Nov 07, 2022

    Showtime11214 

    Try this version:

     

    =IF(MOD(A2,1)<=TIME(7,0,0),"Shift 3",IF(MOD(A2,1)<=TIME(15,0,0),"Shift 1",IF(MOD(A2,1)<=TIME(23,0,0),"Shift 2","Shift 3")))

Resources