Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

deleting blank rows

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

Deleting blank rows

ResolvedVersion 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:

Shortcut fill a cell with contents from adjacent cells

Use Control + D to fill a cell with the data from an adjacent cell. This speeds up data entry and is a cool tip to share!


View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.