Maybe this?:
Formula: copy to clipboard
=MIN(IF(($A:$A>=$E$2)*($A:$A<=$F$2)*($B:$B=$B3),$M:$M,FALSE))