Try using this formula in sheet 1
=FILTER(Sheet2!B3:B8,Sheet2!E3:E8<2)
The first argument establishes the range to return a value from, while the second argument establishes the requirements.
When the number of rows from sheet 2 is returned, the formula should immediately expand vertically to that number.