Hi Gurus,
The problem I'm having is the AM / PM crossover at midnight (00:00:00).
Our shifts are 06:00:00 to 17:59:59 and 18:00:00 to 05:59:59, 24/7 and each shift is assigned a number, 1 through 14:
Day of week AM Shift # PM Shift #
Sunday 1 2
Monday 3 4
Tuesday 5 6
Wednesday 7 8
Thursday 9 10
Friday 11 12
Saturday 13 14
I have a massive spreadsheet with a half million lines of data that is returning false values for the time stamps between 00:00:00 and 05:59:59. For example, Saturday night shift starts at 18:00:00. It needs to be assigned as shift 14. Time stamps between 18:00:00 and 23:59:59 are assigned shift 14 - this is good; but because Saturday flips over to Sunday after midnight, data with a time stamp between midnight and 05:59:59 is assigned shift 2 in error. All days of the week with time stamps between midnight and 055959 get assigned the following night's shift # and not its own.
I'm going cross-eyed and could use some expert help, please and thanks!
Sincerely,
George
I've attached a portion of the spreadsheet as an example. There's some text highlighted in yellow that hopefully fleshes out the concept I'm struggling with.Book1.xlsx
Bookmarks