Hi there...Looking for a formula on how can we match data time range within a start and stop date time
After running the test, I've come to the concluding that the formula works on the last row as the time given is well within the range set but not in case of the others
Please suggest any other way of doing it
Start Time Stop Time Range set from Range set to Expected result MRExcel Formula
9/14/2017 19:07 9/14/2017 20:55 0:00 4:00 No No
9/15/2017 3:30 9/15/2017 5:36 0:00 4:00 Yes No
9/15/2017 0:30 9/15/2017 1:09 0:00 4:00 Yes No
9/15/2017 0:00 9/15/2017 3:59 0:00 4:00 Yes No
9/14/2017 11:20 9/15/2017 6:36 0:00 4:00 Yes Yes
=IF(AND(TRUNC(A6)+C6+IF(TRUNC(A6)=TRUNC(B6),0,1)>=A6,TRUNC(A6)+D6+IF(TRUNC(A6)=TRUNC(B6),0,1)<=B6),"Yes", "No")
Capture.PNG
Bookmarks