I have an excel worksheet (macro free) set up as follows;
Column W = Shift Start Time
Column X = Shift End Time
Column AE:BB are named 00:00 to 23:00 respectively.
I am trying to count the manpower available by hour e.g. if 1 shift is Start Time 10:00 and Finish 15:00 - this will count 1 for hours 11:00,12:00,13:00 (within AE:BB Table).
The formula currently used is
=COUNTIFS($B$5:$B$76,"<="&AE4,$D$5:$D$76,">="&AE4)
This works when the Shift start time is earlier than finish in one 24 hour period (e.g. 07:00 - 18:00). However, when a night shift finishes the next working day (E.g. 19:00-07:00) any manpower available within that time will not calculate.
Is there a way to incorporate a criteria that considers if Cell W> adjacent cell X into the formula?
Example Source
Current Results
Expected Results
IF(END TIME<START TIME, END TIME + 1, END TIME)
. – Forward Ed