As Smitty said, it is VBA code. The reason he gave you that is because you said "Without doing it manually"... there is no formula that will physically delete values (the formula itself is a value, even if you have it return the empty string "") and, on top of that, in general, formulas cannot make physical changes on a worksheet except to return a value to the cell they are in. So, the only way to do what you asked for without doing something manual is to have VBA code do it for you.?? Over my head Smitty.
Do I put this as a formula into a cell? What would it look like.
Just in case the last piece of data is not in Column A, I would use this in place of the code line I highlighted in red...Something like this maybe:
Sub foo()
Dim i As Long, lr As Long
i = Application.InputBox("From what row onward do you want to delete?", "Delete Rows", 2, Type:=1)
lr = Cells(Rows.Count, "A").End(xlUp).Row
Range(Cells(i, "A"), Cells(lr, "A")).EntireRow.Delete
End Sub
HTH,
lr = Cells.Find(What:="*", SearchOrder:=xlRows, SearchDirection:=xlPrevious, LookIn:=xlFormulas).Row