Assuming "data" means constants, and not formulas (you didn't answer that question), then give this macro a try...I have the data in ColumA in 5000 rows having few blank (Empty) rows and i want to delete them using VBA.
Sub DeleteBlankRows()
Columns("A").SpecialCells(xlBlanks).EntireRow.Delete
End Sub