RE: If statement using time of day

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Try

=IF(AND(E2>=TIME(6,0,0),E2<TIME(18,0,0)),"Shift1","Shift2")

"BAKERSMAN" wrote:

I need to have E2 return a specific value based on the time of day.

If E2 is greater than or equal to 0600 but less than 1800 then I need to see
shift 1
If E2 is greater than or equal to 1800 but less than 0600 then I need to see
shift 2


.