View Single Post
 
Old 07-18-2017, 05:38 AM
NBVC's Avatar
NBVC NBVC is offline Windows 10 Office 2013
The Formula Guy
 
Join Date: Mar 2012
Location: Mississauga, CANADA
Posts: 215
NBVC will become famous soon enoughNBVC will become famous soon enough
Default

Of course, it would be easier if you had all your start/end times in separate cells... but you can try this in B3:

=SUMPRODUCT((MID(Sheet1!B$4:B$24,1,5)+0<=$A3)*(MID (Sheet1!B$4:B$24,FIND("-",Sheet1!B$4:B$24)+1,5)+0>=$A3))+SUMPRODUCT(( IFERROR(MID(Sheet1!B$4:B$24,13,5)+0,0)<=$A3)*( IFERROR(MID(Sheet1!B$4:B$24,19,5)+0,0)>=$A3))

you must confirm this formula with CTRL+SHIFT+ENTER not just ENTER, then copy to the right and down
Reply With Quote