Hello All
I'm trying to count the number of entries that the Time in column U falls within the time ranges in Q2 & R2, based upon the dates in column AA.
Because the time frame (Q2 & R2) cross midnight into the next day. I am attempting to add the the next date in AA.
For example, If 2nd shift begins on 1-3-2022 (AA3) and ends the next day on 1-4-2022 (AA4) at 4:00am, then those two dates need to be combined to form one segment of 2nd shift.
Kind of hard to explain
In AE3 I have the below formula to try and add the two dates together to form one segment
counting 1st shift I can do as it falls on the same date, with out crossing midnight to the next day.
thank you for your help
I'm trying to count the number of entries that the Time in column U falls within the time ranges in Q2 & R2, based upon the dates in column AA.
Because the time frame (Q2 & R2) cross midnight into the next day. I am attempting to add the the next date in AA.
For example, If 2nd shift begins on 1-3-2022 (AA3) and ends the next day on 1-4-2022 (AA4) at 4:00am, then those two dates need to be combined to form one segment of 2nd shift.
Kind of hard to explain
In AE3 I have the below formula to try and add the two dates together to form one segment
Rich (BB code):
=COUNTIFS($T:$T,$AA3,$U:$U,$U3>=$Q$2)&(COUNTIFS($T:$T,$AA4,$U:$U,$U3<=$R$2))
counting 1st shift I can do as it falls on the same date, with out crossing midnight to the next day.
thank you for your help