Sei sulla pagina 1di 10

https://www.extendoffice.com/documents/excel/525-excel-remove-blank-rows.

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

Insert blank rows in every other row

Easily Combine multiple sheets/Workbook into one Single sheet or Workbook


To combinne multiples sheets or workbooks into one sheet or workbook may be edious in
Excel, but with the Combine function in Kutools for Excel, you can combine merge dozens
of sheets/workbooks into one sheet or workbook, also, you can consolidate the sheets into
one by several clicks only. Click for 60 days free trial!
https://www.extendoffice.com/documents/excel/525-excel-remove-blank-rows.html

Kutools for Excel: with more than 200 handy Excel add-ins, free to try
with no limitation in 60 days.

Remove all the blank rows with Go To Special command

Tabbed browsing & editing multipleExcel workbooks/Word documents as


Firefox, Chrome, Internet Explore 10!
You may be familiar to view multiple webpages in Firefox/Chrome/IE, and switch
between them by clicking corresponding tabs easily. Here, Office Tab supports similar
processing, which allow you to browse multiple Excel workbooks or Word documents in
one Excel window or Word window, and easily switch between them by clicking their
tabs. Click for free trial of Office Tab!
https://www.extendoffice.com/documents/excel/525-excel-remove-blank-rows.html

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

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:
https://www.extendoffice.com/documents/excel/525-excel-remove-blank-rows.html

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.

1
2 Sub DeleteBlankRows()
3 'Update 20131107
4 Dim Rng As Range
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
10Application.ScreenUpdating = False
11For i = xRows To 1 Step -1
12 If Application.WorksheetFunction.CountA(WorkRng.Rows(i)) = 0 Then
WorkRng.Rows(i).EntireRow.Delete XlDeleteShiftDirection.xlShiftUp
13 End If
14Next
15Application.ScreenUpdating = True
16End Sub
17

3. Then click button to run the code. And the entire blank rows in the selection will be
removed.
https://www.extendoffice.com/documents/excel/525-excel-remove-blank-rows.html

Remove all the blank rows with only one click

If you want to delete blank rows across worksheets, you can apply Kutools for Excel's
Remove Blank Rows utility.

Kutools for Excel, with more than 200 handy functions, makes your jobs easier.
Go to Download
Free Trial 60 days

After installing Kutools for Excel, please do as below:(Free Download Kutools for
Excel Now!)

1. Click Kutools > Delete > Delete Blank Rows, select the scale to delete blank rows from
as you need.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.

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

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.extendoffice.com/documents/excel/525-excel-remove-blank-rows.html

Insert blank rows in every other row

If you want to insert blank rows in every other row as below screenshot shown, the Insert
Blank Rows &Columns utility can help you.

After installing Kutools for Excel, please do as below:(Free Download Kutools for
Excel Now!)
https://www.extendoffice.com/documents/excel/525-excel-remove-blank-rows.html

1. Select the data range you want to insert blank rows every other row, click Kutools >
Insert > Insert Blank Rows&Columns.
https://www.extendoffice.com/documents/excel/525-excel-remove-blank-rows.html

2. In the Insert Blank Rows & Columns dialog, check Blank rows option, type 1 into
Interval of and Rows textboxes.

3. Click Ok. Now the blank rows have been inserted every other row.

Demo: Insert Blank rows & columns

Kutools for Excel: 200 + functions you must have in Excel, 60-day free trial from here.

Recommended Productivity Tools

Office Tab

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

Kutools for Excel

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.
https://www.extendoffice.com/documents/excel/525-excel-remove-blank-rows.html

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

Potrebbero piacerti anche