Você está na página 1de 6

6/7/2018 How to remove blank or empty rows in Excel?

 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.

Remove all the blank rows with Go To Special command

Remove all the blank rows with VBA code

Remove all the blank rows with only one click 


Recommended Productivity Tools

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)

Remove All The Blank Rows With Go To Special Command

(/product/office-tab.html)

Amazing! Using Tabs In Excel Like Firefox, Chrome, Internet Explore 10! (/Product/O

1. Select the range containing blank rows you want to remove.

2. Click Home > Find & Select > Go To Special.

3. In the Go To Special dialog box, check the Blanks option.

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:

Remove All The Blank Rows With VBA Code

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:

VBA: Remove blank rows of the selected range.

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.

Remove All The Blank Rows With Only One Click

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.

Remove All The Blank Rows With Only One Click

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?

How to remove blank or empty rows in E…


Posted by ExtendOffice - Professional Of…
547 Views

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)

Recommended Productivity Tools

Office Tab (/Product/Office-Tab.Html)

Bring handy tabs to Excel and other Office software, just like Chrome, Firefox and new Internet Explorer.

Kutools For Excel (/Product/Kutools-For-Excel.Html)

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)

52 Comments RSS (/component/jlexcomment/?view=items&com_name=content&com_key=525&format=feed) Login

Sort by Newest 

Say something here...

rs poshwal jaipur · 9 months ago

VERY NICE, THANKS


Reply Share

YC · 11 months ago

:lol: Good to share! Thank you!


Reply Share

Sudhakar · 11 months ago

Very Helpful :-) it helped me to reconcile big report.


Reply Share

MEL · 1 years 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

Sanjay Rajput · 1 years ago

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

← Previous 1 (525-excel-remove-blank-rows.html?page_comment=1) 2 (525-excel-remove-blank-rows.html?page_comment=2)

3 (525-excel-remove-blank-rows.html?page_comment=3) 4 (525-excel-remove-blank-rows.html?page_comment=4) ...

7 (525-excel-remove-blank-rows.html?page_comment=7) Next → (525-excel-remove-blank-rows.html?page_comment=2)

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

Você também pode gostar