Hi,
I have a time window for what is considered a night shift, e.g. 0000 - 0559. These times can change wither before or after midnight.
I want to supply a start and end time of a numbers of shifts and see if any part of those shifts falls within the hours above.
I had tried this formula
where A2 & B2 is night shift criteria start & end time and G2 & H2 are the respective start and end times of the shifts I want to check.
I can only get it to work out if a start or end time is within the window but not if any of the duty is included.
Looking for help with the logic thanks...
I have a time window for what is considered a night shift, e.g. 0000 - 0559. These times can change wither before or after midnight.
I want to supply a start and end time of a numbers of shifts and see if any part of those shifts falls within the hours above.
I had tried this formula
Code:
=IF(OR(IF(AND(G2>=$A$2,G2<=$B$2),TRUE,FALSE)=TRUE,IF(AND(H2>=$A$2,H2<=$B$2),TRUE,FALSE)=TRUE),TRUE,FALSE)
where A2 & B2 is night shift criteria start & end time and G2 & H2 are the respective start and end times of the shifts I want to check.
I can only get it to work out if a start or end time is within the window but not if any of the duty is included.
Looking for help with the logic thanks...