Best 4 Ways to Quickly Remove Multiple Blank or Empty Rows in Excel

Clearing out blank or empty rows in Excel can help keep your data clean and organized. Here are four straightforward methods to achieve this efficiently:

Method 1: Using Filter

  1. Click on the filter icon in the column header where you suspect blank rows exist.
  2. In the filter dropdown, uncheck the box next to (Blanks) to display only non-blank rows.
  3. Select the visible rows by clicking on the row numbers (left side) to highlight them.
  4. Right-click on the selected rows and choose Delete.
  5. Confirm the deletion by clicking Delete Sheet Rows.

Method 2: Using Go To Special

  1. Press Ctrl + G or F5 to open the Go To dialog box.
  2. Click on the Special button.
  3. Choose Blanks and click OK.
  4. The blank cells will be selected.
  5. Right-click on any selected cell and choose Delete.
  6. Confirm the deletion by clicking Delete Sheet Rows.

Method 3: Using Filter and Sorting

  1. Select any cell within your data range.
  2. Go to the Data tab on the ribbon and click Sort.
  3. Sort the data based on any column where blank rows might exist.
  4. Select the blank rows by clicking on the row numbers (left side) to highlight them.
  5. Right-click on the selected rows and choose Delete.
  6. Confirm the deletion by clicking Delete Sheet Rows.
  7. Finally, re-sort your data to its original order.

Method 4: Using VBA Macro

  1. Press Alt + F11 to open the VBA Editor.
  2. Click Insert > Module to insert a new module.
  3. Copy and paste the following VBA code:
Sub DeleteBlankRows()
    Dim ws As Worksheet
    Dim rng As Range
    Dim i As Long

    Set ws = ActiveSheet
    Set rng = ws.UsedRange

    For i = rng.Rows.Count To 1 Step -1
        If Application.WorksheetFunction.CountA(rng.Rows(i)) = 0 Then
            rng.Rows(i).Delete
        End If
    Next i
End Sub
  1. Press F5 to run the macro. It will remove all blank rows in the active sheet.
Previous
Previous

5 Methods to Move Columns in Microsoft Excel (Step-by-Step)

Next
Next

Quickest Ways to Add Columns in Microsoft Excel (Step-by-Step)