Maybe this formula in F5 copied down

=IFERROR(INDEX($C$5:$C$370,MATCH(1,INDEX(($E5>=$A$5:$A$370)*(E5<=$B$5:$B$370),0),0)),"")