Templates, guides & honest tool reviews for small business

Sunday, November 29, 2026

Delete Blank Rows in Excel: Safe Methods That Keep Your Data

Delete blank rows in Excel safely
Illustration: Delete blank rows in Excel

To delete blank rows in Excel, select your data, press Ctrl+G, click Special, choose Blanks, then right click a selected cell and choose Delete, then Entire Row. This removes every row that has an empty cell in the selected range, which can delete rows you want to keep. This guide shows the safe version for fully empty rows, a sort based method that keeps order with a helper column, the filter method, a formula that returns data without blanks and Power Query for repeated imports. Make a copy of your sheet before you start. The sample data is made up.

The danger of Go To Special

Go To Special, Blanks selects every empty cell in the selection. If you then delete entire rows, a row with only one empty cell, such as a missing phone number, is deleted too. Use the method below if only completely empty rows should go.

Go To Special Blanks can delete rows you want to keep
One empty cell is enough (illustration).

Delete only fully empty rows with a helper column

  1. Add a helper column next to your data. In its first cell, type =COUNTA(A2:D2) where A to D is your data width.
  2. Fill the formula down. A row with no data returns 0.
  3. Filter the helper column and show only the rows with 0.
  4. Select the visible rows, right click, and choose Delete Row.
  5. Clear the filter and delete the helper column.

This keeps rows with at least one value. Our guide to COUNTA explains what it counts.

Delete fully empty rows in Excel with a COUNTA helper column
Filter the zeros (illustration).

Go To Special when one column is always filled

If one column, such as an ID, is always filled when a row has data, select only that column, use Go To Special, Blanks, and delete entire rows. Only rows with a blank ID go. This is the fast and safe version when you know that column is reliable.

Sort to push blank rows to the bottom

Sorting moves empty rows to the end. To keep the original order, first add a numbered helper column with 1, 2, 3 and so on. Then sort by a column that is always filled, and afterwards sort by the helper column to restore the order. The blank rows end up together at the bottom, where you can delete them in one step.

Filter the blanks

Turn on a filter with Ctrl+Shift+L. In a key column, open the drop down, untick everything except (Blanks), select the visible rows, and delete them. Then clear the filter. Be sure to select only the visible rows, which Excel does when you delete a filtered row range.

Return data without blanks using a formula

If you want a clean copy and want the original untouched, use FILTER in Excel 365:

=FILTER(A2:C100, A2:A100<>"")

This returns only rows where column A is not empty. See the FILTER function guide for more. If you also want a list without repeats, add UNIQUE, as in our UNIQUE guide.

Power Query for repeated imports

If you import a file each week, remove blank rows in Power Query. Select the table, go to Data, From Table or Range. In the editor, choose Home, Remove Rows, Remove Blank Rows, then Close and Load. Power Query repeats the step each time you refresh. In Power Query a row counts as blank only when all its cells are empty or contain nothing, which makes this safer than Go To Special.

Ways to remove blank rows in Excel: filter, formula and Power Query
Pick by the job (illustration).

Cells that look blank but are not

A cell with a space or an empty string from a formula looks blank but is not empty, so Go To Special will miss it. Clean it first, as shown in our guide to removing extra spaces in Excel.

Delete blank rows with a macro

For a very large sheet, a macro is faster, but it is not undoable. Save a copy first, test on a small range, and only run macros from sources you trust.

Common mistakes when deleting blank rows in Excel
Back up first (illustration).

Common mistakes

  • Selecting the whole sheet. Select only the data range, or Excel may find blanks far below it.
  • Deleting cells, not rows. Choose Entire Row, or the data shifts and misaligns.
  • No backup. Deleting is hard to reverse after you save.
  • Hidden rows. Unhide all rows before you start.

Questions and answers

Can I undo deleted rows?

Press Ctrl+Z right after. After you save and close, you cannot.

How do I delete blank columns?

The same steps work for columns. Select the range, use Go To Special, Blanks, then Delete, Entire Column. Check first that no column holds partial data.

Why did Go To Special not find my blanks?

The cells probably hold a space or an invisible character. Clean the data and try again.

Does this work in Google Sheets?

Sheets has no Go To Special. Use a filter on a key column, or the FILTER function, as in our FILTER examples.

العربية