3 Easy Ways to Delete Blank Rows in Excel ✅
TrumpExcel TrumpExcel
382K subscribers
24,894 views
396

 Published On Jan 4, 2024

In this video, I will show you three ways to delete blank rows in Excel.

00:00 Intro
00:10 Go To Special to Delete Blank Rows
02:51 Delete Blank Rows Using the SORT Option
05:25 Delete Blank Rows Using Find and Replace
08:20 VBA to Delete Blank Rows

--------------------------------------------------------------------------------

Here is the VBA code I used in the video:

'Code Developed by Sumit Bansal from https://TrumpExcel.com

Sub DeleteBlankRows()

Dim EntireRow As Range
On Error Resume Next
MsgBox Selection.Row.Count

Application.ScreenUpdating = False

For i = Selection.Rows.Count To 1 Step -1
Set EntireRow = Selection.Cells(i, 1).EntireRow
If Application.WorksheetFunction.CountA(EntireRow) = 0 Then
EntireRow.Delete
End If
Next

Application.ScreenUpdating = True

End Sub

----------------------------------------------------------------------------------

While most people I see use the Go To Special option, it has a big drawback. It would also delete rows where only some of the cells are blank. None of the methods I have covered in this video have this issue.

☕ If you find my Excel videos useful and would like to support me, you can buy me a coffee - https://www.buymeacoffee.com/SumitB

✅ Free Excel Course (Basic to Advanced) - https://trumpexcel.com/learn-excel/
✅ Free Dashboard Course - https://bit.ly/free-excel-dashboard-c...
✅ Free VBA course - https://bit.ly/excel-vba-course
✅ Free Power Query Course - https://bit.ly/power-query-course
✅ Best Excel Books: https://trumpexcel.com/best-excel-books/

Subscribe to get awesome Excel Tips every week: https://www.youtube.com/user/trumpexc...

#Excel #ExcelTips #ExcelTutorial

show more

Share/Embed