How do I insert amount of rows according to data from another sheet?

I have 5 data out of the 10 rows I have (I keep the empty rows for spare)

How do I make it so the data here corresponds to the amount of data in reference sheet? Such that if I have 5 names, this sheet will automatically return 5 rows where the data will be in. If I have 6 names in the reference table, this sheet will have 6 rows for the data, etc.
I'm thinking of using VLOOKUP for inserting the data needed into the cells in sheet b and using COUNTA to return '5' for the number of names present.
The main problem here is how do I automatically insert the 5 rows according to amount of names present.
Help is much appreciated.
=If(B3="","",B3")(B3 is a cell in the reference table)?