3 Easy Ways to Delete Blank Rows in Excel ✅

preview_player
Показать описание
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:

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.

#Excel #ExcelTips #ExcelTutorial
Рекомендации по теме
Комментарии
Автор

If you found this video useful, please give it a thumbs up 👍 and subscribe to the channel. Also, let me know what Excel topics you want me to cover in future videos.

Also, I have made all of my Excel courses available for free. You can check these out using the below links:

trumpexcel
Автор

👍Very useful, especially for spreadsheets with many blank rows to be eliminated.👍

brianmaggs
Автор

Thanks, Power Query is also a good way to do it :)

einoconsult
Автор

Thank u Trump for this nice video especially the VBA solution

nadermounir
Автор

Happy New Year Sumit! Great video and will tune in to more as I am subscribed. 💯🎉

ktp.
Автор

Thank you Sir for the update. It is very useful for me who are using excel for our Daily Monitoring Data. I have concerns for my data. Since I add more cell and column and rows, as I search for the specific data I want to input my daily monitoring it is very Is there anything I must do to lessen the search or loading?

roselyncrasco
Автор

Very nice and we'll explained as usual

pancux
Автор

Like the different approaches to removing blanks. I would highlight column A and turn on Filters, then select Blanks and delete the returned blanks rows, then switch off filters.

soniccheese
Автор

Thanks, long time!
In the example, why not click on the box above "1" and to the left of "A". And then sort column A?

michaellundsrensen
Автор

Where have you been...?? 🤔🤔
Now it's time for BI.. ✔️

akashdeshmukh
Автор

sir, we can delete row by using filter also

abhisheksamantray