98.8% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Excel Training and help » Deleting blank rows
Deleting blank rows
Resolved · Low Priority · Version 2016
Lucy has attended:
Excel Advanced - Formulas & Functions course
Excel Pivot Tables course
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.
Training information:
See also:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Excel tip:Editing Formulas in Excel CellsAlthough people like to edit a formula in the Formula bar, you can also edit a formula in the cell. |