Display Shift Formula Based On Time Stamp

Russ At Index

Well-known Member
Joined
Sep 23, 2002
Messages
708
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
Hi All,

I have a time stamp which relates to specific functions that are
performed within our Warehouse. The data is from our WMS & is
formatted as 00:00:00 & uses the 24 hour format.

We operate a three tier shift system which is :
06:00:00 - 14:00:00 Early
14:01:00 - 22:00:00 Late
22:01:00 - 05:59:00 Night

Eg Transaction time stamp is 04:10:28 , i would like the result to
show "Nights".

How can i determine which shift the function realtes to ?
Have searched , but alas , no luck !

Any pointers would be appreciated !

TIA

Russ
 
Try eg:

=LOOKUP(A1,{0,0.25,0.583,0.917},{"Shift 3","Shift 1","Shift 2","Shift 3"})

where A1 contains the time stamp.
 
Upvote 0
Hi Andrew,

Thats brilliant , thank you for your prompt response !

Regards

Russ
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top