Try this:
=IFERROR(INDEX('Enter Executions'!A$2:A$100000,SMALL(IF(('Enter Executions'!$H$2:$H$100000=$B$4)+('Enter Executions'!$H$2:$H$100000=$B$4&" 2nd Leg"),IF('Enter Executions'!$L$2:$L$100000>=$B$5,IF('Enter Executions'!$L$2:$L$100000<$B$5+1,IF('Enter Executions'!$L$2:$L$100000>=$B$6,IF('Enter Executions'!$L$2:$L$100000<$B$6+1,ROW('Enter Executions'!$B$2:$B$100000)-ROW('Enter Executions'!$B$2)+1))))),ROWS($A$1:$A1))),"")
it assumes the same logic, that you want to check L against >=B6 and <B6+1...
Note: this is really a processor intense formula... if you can reduce those ranges that would be best.
Bookmarks