Need: A schedule in excel is required for a large team. Schedule gets changed every month and people are rotated (mid person will do the night and night will be moved to morning etc). There are five shifts in a day, each shift having 5 teams and each team having at least 8 members.
Structure: First column contains the name, second the start time, third the end time and then there are 24 columns after that, each representing the hour of the day starting form (7:00) in 24 hours format. Now if there is a person whose shift starts from 7 A.M. and ends at 4:00 P.M. I would like to have the 9 cells in that row in columns 7 8 9 10 11 12 13 14 15 to go red or any color. I can do that by conditional formatting without any problem for shifts that are starting between 00:00 and 1500 however when it comes to shift that starts at 1700 and ends at 02:00 then excel only highlight the 7 cells instead of 9 and in some cases it highlight 10 cells instead of 9. Please see [Sheet Snapshot][1]
What I have done to get what I want: Highlight if the value in Start time column is equal to or greater than value in column D (700) and is also equal to or less than value in column E (800). It works fine other than the shifts that I just mentioned above because excel does not know that 0000 in this case is bigger than 2300 hence doesn't highlight the cell based on that.
Question: Is there a way I can tell excel ,through formulas, exactly what I want to do?
[1]: https://i.stack.imgur.com/rkQAV.png
Structure: First column contains the name, second the start time, third the end time and then there are 24 columns after that, each representing the hour of the day starting form (7:00) in 24 hours format. Now if there is a person whose shift starts from 7 A.M. and ends at 4:00 P.M. I would like to have the 9 cells in that row in columns 7 8 9 10 11 12 13 14 15 to go red or any color. I can do that by conditional formatting without any problem for shifts that are starting between 00:00 and 1500 however when it comes to shift that starts at 1700 and ends at 02:00 then excel only highlight the 7 cells instead of 9 and in some cases it highlight 10 cells instead of 9. Please see [Sheet Snapshot][1]
What I have done to get what I want: Highlight if the value in Start time column is equal to or greater than value in column D (700) and is also equal to or less than value in column E (800). It works fine other than the shifts that I just mentioned above because excel does not know that 0000 in this case is bigger than 2300 hence doesn't highlight the cell based on that.
Question: Is there a way I can tell excel ,through formulas, exactly what I want to do?
[1]: https://i.stack.imgur.com/rkQAV.png