deleting blank rows

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Deleting blank rows

Deleting blank rows

resolvedResolved · Low Priority · Version 2016

Deleting blank rows

How do I delete blank rows in excel, not blank cells?

RE: Deleting blank rows

Hi Lucy,

Thank you for the forum question.

Select the whole range with the mouse (including the blank rows and headings). On the data tab click sort ascending in the sort and filter group. Then the blank rows will be the last rows in the selection and easy to delete.

If you have some knowledge using VBA you can use the code below, but you will need to amend Range("a1:a2000"). If your list is B4:M200 change it to Range("b4:b200")

Sub DeleteBlankRows()

Range("a1:a2000").SpecialCells(xlCellTypeBlanks).EntireRow.Delete

End Sub



I hope this makes sense



Kind regards

Jens Bonde
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

Mon 22 Jul 2019: Automatically marked as resolved.


 

Excel tip:

Editing Formulas in Excel Cells

Although people like to edit a formula in the Formula bar, you can also edit a formula in the cell.

To do this select the cell and press "F2". This puts Excel into Edit mode, and you can move around in the cell and make any necessary changes.

Double-clicking the cell also puts Excel in Edit mode.

View all Excel hints and tips


Server loaded in 0.05 secs.