Remove Blank Rows in Excel: 4 Fast Methods

How-to basics · Updated November 22, 2026

To remove blank rows in Excel, select your data range, press Ctrl+G (Go To Special), choose Blanks, then click OK and press Ctrl+- (Delete) and select Entire row. This deletes all rows that are completely empty in the selected range in one step.

Why Blank Rows Cause Problems

Blank rows are more than an eyesore. They break sorting, filtering, and pivot tables because Excel treats a blank row as the end of a data block. Charts ignore the empty rows but leave gaps, and formulas like COUNTA or SUM that reference whole columns will still work, but functions like VLOOKUP or XLOOKUP may stop at the first blank row if your lookup range is not a proper table. In large datasets, blank rows also make it harder to spot patterns and can cause errors when you use keyboard shortcuts like Ctrl+Shift+Down to jump to the last cell.

Method 1: Go To Special (Fastest for Scattered Blanks)

This method is ideal when blank rows are scattered throughout your data, not just at the bottom.

  1. Select the entire range of data, including any blank rows you want to remove. For example, if your data is in A1:C100, select A1:C100.
  2. Press Ctrl+G (or F5) to open the Go To dialog.
  3. Click Special….
  4. Choose Blanks and click OK. Excel now selects all empty cells within the range.
  5. Press Ctrl+- (minus) to open the Delete dialog.
  6. Select Entire row and click OK.

This deletes every row that has at least one blank cell in the selected range. Important: If a row has data in some columns but is blank in others, this method will delete the entire row, which may not be what you want. To delete only rows that are completely blank, use Method 2 or 3.

Method 2: Filter for Blanks (Safer for Partially Filled Rows)

If you only want to remove rows where all cells are empty, filtering is the safest approach.

  1. Select your data range and press Ctrl+Shift+L to turn on filters.
  2. Click the dropdown arrow on the column that you want to use to identify blank rows (ideally a column that is never empty for real data).
  3. Uncheck Select All and then check (Blanks) at the bottom of the list.
  4. Excel now shows only the rows that are blank in that column.
  5. Select those visible rows (click the row numbers on the left), right-click, and choose Delete Row.
  6. Clear the filter by pressing Ctrl+Shift+L again.

This method removes rows where that specific column is blank. If your data has a column that is always filled (like an ID or name), this works perfectly. If you need to check multiple columns, you can filter each one, but it becomes tedious.

Method 3: Use a Helper Column with COUNTA

For complete control, add a helper column that counts non-empty cells in each row. Then filter on that column and delete rows where the count is zero.

  1. Assume your data is in columns A through D, with headers in row 1. In cell E2, enter the formula:
    =COUNTA(A2:D2)
  2. Copy the formula down to the last row of your data (double-click the fill handle).
  3. Now filter on column E and select only the rows where the value is 0.
  4. Delete those rows as described in Method 2.
  5. Remove the helper column after you are done.

This method is precise: it only deletes rows where every cell in A:D is empty. It works in all versions of Excel, including Excel for the web.

Method 4: Power Query (Best for Large or Repeated Datasets)

Power Query is a data transformation tool built into Excel. It is especially useful if you regularly receive files with blank rows and want to automate the cleanup.

  1. Select your data range and go to Data > From Table/Range (if your data is not already a table, Excel will create one).
  2. In the Power Query editor, go to Home > Remove Rows > Remove Blank Rows.
  3. Click Close & Load to load the cleaned data back into Excel.

Power Query removes rows where all cells are blank. It is fast for millions of rows and can be refreshed with one click if the source data changes.

Common Pitfalls and How to Avoid Them

  • Deleting rows with data in hidden columns: If you have hidden columns, the Go To Special method will delete rows that appear blank but actually contain data in hidden columns. Unhide all columns first.
  • Accidentally deleting header rows: Always exclude the header row from your selection when using Go To Special, or use the filter method which naturally excludes headers.
  • Blank rows at the bottom of the sheet: If you have thousands of blank rows below your data, select only the actual data range, not the whole column.
  • Merged cells: Merged cells can cause Go To Special to behave unpredictably. Unmerge cells before cleaning.

Frequently Asked Questions

How do I remove blank rows in Excel without affecting other columns?

Use the filter method (Method 2) or the helper column with COUNTA (Method 3). These only delete rows that meet your criteria, leaving other rows untouched. The Go To Special method deletes any row with a blank cell in the selected range, which can remove rows that have some data.

Can I use a formula to delete blank rows automatically?

No, Excel formulas cannot delete rows; they can only return values. To automate deletion, you would need a VBA macro. For example, the following macro deletes all rows that are completely blank in a selected range. Remember to save a copy of your workbook before running a macro, as macros cannot be undone with Ctrl+Z.

Sub DeleteBlankRows()
    Dim rng As Range
    Dim row As Range
    Set rng = Selection
    ' Loop from bottom to top to avoid skipping rows
    For i = rng.Rows.Count To 1 Step -1
        Set row = rng.Rows(i)
        If Application.WorksheetFunction.CountA(row) = 0 Then
            row.Delete
        End If
    Next i
End Sub

Why does my filter not show “(Blanks)” as an option?

The (Blanks) option only appears if there is at least one blank cell in that column within the filtered range. If no blanks exist, the option is hidden. Also, if you have a filter already applied, the blanks may be hidden; clear all filters first.

What is the shortcut to delete blank rows in Excel?

There is no single shortcut that deletes blank rows directly. The fastest combination is Ctrl+G → Alt+S → K → Enter → Ctrl+- → R → Enter, but that is not practical. Most users use the Go To Special method with mouse clicks, or the filter method.

Does removing blank rows affect my formulas?

If your formulas reference the entire column (e.g., =SUM(A:A)), removing blank rows will not break them, but the result may change if you delete rows that contained data. If your formulas reference a specific range (e.g., =SUM(A1:A100)), deleting rows will adjust the range automatically, but if you delete rows below the range, the range will shrink. Always check formulas after deletion.

Can I remove blank rows in Excel for the web?

Yes. The Go To Special feature is not available in Excel for the web, but the filter method works. Select your data, go to Data > Filter, filter for blanks, select the rows, and press Delete. The helper column method also works in the web version.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.