Escolar Documentos
Profissional Documentos
Cultura Documentos
ExtendOffice (/)
Office Tips & Tricks Tips & Tricks for Excel Tips & Tricks for Word Tips & Tricks for Outlook
(/documents.html) (/documents/excel.html) (/documents/word.html) (/documents/outlook.html)
How To Remove Blank Or Empty Rows In Excel?
If there are hundreds of blank rows scattering through the whole worksheets, you will be frustrated about it. This tutorial is giving
instructions on how to remove all the blank rows step by step.
Office Tab: Bring handy tabs to Excel and other Office software, just like Chrome, Firefox and new Internet Explorer.
(/product/office-tab.html) Try now (https://www.cdn.extendoffice.com/downloads/SetupOfficeTab.exe)
Kutools for Excel: 200 new features for Excel, make Excel much easy and powerful, increase productivity immediately.
(/product/kutools-for-excel.html) Try now (https://www.cdn.extendoffice.com/downloads/KutoolsforExcelSetup.exe)
(/product/office-tab.html)
Amazing! Using Tabs In Excel Like Firefox, Chrome, Internet Explore 10! (/Product/O
https://www.extendoffice.com/documents/excel/525-excel-remove-blank-rows.html 1/6
6/7/2018 How to remove blank or empty rows in Excel?
4. And then click OK, all of the entire blank rows are highlighted. Then click Home > Delete > Delete Sheet Rows, the blank rows
have been deleted from the selected range. See screenshots:
The following VBA code also can help you to delete the blank rows of the selected range. Please do as this:
1. Select the range that you want to remove the blank rows.
2. Click Developer > Visual Basic, a new Microsoft Visual Basic for applications window will be displayed, click Insert > Module,
and input the following code into the Module:
https://www.extendoffice.com/documents/excel/525-excel-remove-blank-rows.html 2/6
6/7/2018 1 Sub DeleteBlankRows() How to remove blank or empty rows in Excel?
2 'Update 20131107
3 Dim Rng As Range
4 Dim WorkRng As Range
5 On Error Resume Next
6 xTitleId = "KutoolsforExcel"
7 Set WorkRng = Application.Selection
8 Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
9 xRows = WorkRng.Rows.Count
10 Application.ScreenUpdating = False
11 For i = xRows To 1 Step -1
12 If Application.WorksheetFunction.CountA(WorkRng.Rows(i)) = 0 Then
13 WorkRng.Rows(i).EntireRow.Delete XlDeleteShiftDirection.xlShiftUp
14 End If
15 Next
16 Application.ScreenUpdating = True
17 End Sub
3. Then click button to run the code. And the entire blank rows in the selection will be removed.
You can use the third party add-in Kutools for Excel to quickly merge multiple columns. What is Kutools for Excel?
(/product/kutools-for-excel.html)
Kutools for Excel: with more than 120 handy Excel add-ins, free to try with no limitation in 30days. Get it Now (/download/kutools-for-
excel.html).
1. Click Kutools > Delete > Delete Blank Rows, see screenshot:
2. Then you can choose the scope to delete the blank rows. You can delete the blank rows in the selected range, in active sheet, in
selected sheets and in all sheets of Excel. For more detail information about this utility, please visit here (/product/kutools-for-
excel/delete-blank-rows-in-microsoft-excel.html).
Tip: If there is a row which looks like a blank row but it contains invisible characters in its cells, this utility cannot delete such blank
rows.
https://www.extendoffice.com/documents/excel/525-excel-remove-blank-rows.html 3/6
6/7/2018 How to remove blank or empty rows in Excel?
Kutools for Excel includes more than 120 handy Excel tools. Free to try with no limitation in 60 days. Download the free trial
now! (https://www.cdn.extendoffice.com/downloads/KutoolsforExcelSetup.exe)
Bring handy tabs to Excel and other Office software, just like Chrome, Firefox and new Internet Explorer.
Amazing! Increase your productivity in 5 minutes. Don't need any special skills, save two hours every day!
200 New Features for Excel, Make Excel Much Easy and Powerful:
Merge Cell/Rows/Columns without Losing Data.
Combine and Consolidate Multiple Sheets and Workbooks.
Compare Ranges, Copy Multiple Ranges, Convert Text to Date, Unit and Currency Conversion.
Count by Colors, Paging Subtotals, Advanced Sort and Super Filter,
More Select/Insert/Delete/Text/Format/Link/Comment/Workbooks/Worksheets Tools...
https://www.extendoffice.com/documents/excel/525-excel-remove-blank-rows.html 4/6
6/7/2018 How to remove blank or empty rows in Excel?
(/product/kutools-for-excel.html)
(/product/kutools-for-excel.html) (/download/kutools-for-
excel.html) (/order/kutools-for-excel.html)
Sort by Newest
YC · 11 months ago
Guys I recently had this issue. I realised that the F5 special blanks wouldn't work because some of my columns had merged data sharing
some rows...
I just selected the columns needed and make sure the merge button was unselected. From there, the F5 special blanks select worked!
Hope it helps someone.
Reply Share
This is simple VBA code to delete the entire rows based on particular column:-
https://www.extendoffice.com/documents/excel/525-excel-remove-blank-rows.html 5/6
6/7/2018 Sub DeleletBlankrows() How to remove blank or empty rows in Excel?
Range("A1:A10000").SpecialCells(xlCellTypeBlanks).EntireRow.Delete
End Sub
Reply Share
Home (/) Knowledge (/documents.html) Support (/support.html) Forum (/forum.html) Privacy Policy (/privacy-policy.html)
About Us (/support/about-us.html)
Copyright © 2009 - 2018 ExtendOffice.com | All Rights Reserved. Sitemap (/component/jmap/sitemap.html)
Microsoft and the Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other
countries.
https://www.extendoffice.com/documents/excel/525-excel-remove-blank-rows.html 6/6