G
Guest
I am trying to look at a 24-hour time code (hh:mm) in one cell and return a shift (1st, 2nd, 3rd) in another. The shifts run from 07:00-15:00 (1st), 15:00-23:00 (2nd) and 23:00-07:00 (3rd)
Tried using: IF(AND(B4>=07:00,B4<15:00),"1st",IF(AND(B4>=15:00,B4<23:00),"2nd",IF(AND(B4>=23:00,B4<07:00),"3rd","Time entry error"))
Doesn't seem to like the colons in the function. How do I enter the time? Removing the colons didn't work
Thanks.
Tried using: IF(AND(B4>=07:00,B4<15:00),"1st",IF(AND(B4>=15:00,B4<23:00),"2nd",IF(AND(B4>=23:00,B4<07:00),"3rd","Time entry error"))
Doesn't seem to like the colons in the function. How do I enter the time? Removing the colons didn't work
Thanks.