ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Productivity
  3. How to Delete Blank Rows in Excel Safely

How to Delete Blank Rows in Excel Safely

By ExcelReady Team·Updated November 1, 2026·6 min read

The short answer

The safest way to delete blank rows in Excel is to filter. Turn on filters with Ctrl+Shift+L (Mac: ⌘⇧F), show only (Blanks) in a column that is always filled, select the visible rows and delete them with Ctrl+- (Mac: ⌘-). Then clear the filter. Avoid deleting every row that has any blank cell, because that removes real data too.

Key takeaways

  • Decide what blank means first: a fully empty row, or a row missing a value in one key column.
  • Filtering a key column for (Blanks) and deleting the visible rows is the safest method.
  • Go To Special > Blanks selects every empty cell, so deleting entire rows from it can remove rows that hold data.
  • A helper column with =COUNTA(A2:D2) finds rows that are truly empty: they show 0.
  • Save or copy the sheet first, and undo with Ctrl+Z (Mac: ⌘Z) if the wrong rows go.
On this page+
  1. What counts as a blank row?
  2. Method 1: Delete blank rows with a filter (safest)
  3. Method 2: Use a helper column to find truly empty rows
  4. Method 3: Go To Special > Blanks (use with care)
  5. Why can't Excel find my blank rows?
  6. Should you delete or hide blank rows?
  7. Remove blank rows with a formula
  8. Practise it

To delete blank rows in Excel safely, filter a column that should always be filled, show only the blanks, and delete those visible rows. It takes under a minute and never touches rows that hold data. This guide is for anyone cleaning an export or a shared list, and it shows three methods, plus the popular shortcut that quietly deletes real data.

What counts as a blank row?#

Before you delete anything, decide what "blank" means for your list. There are two different cases:

  • A fully empty row: every cell from the first column to the last is empty. These usually come from copying, importing or leaving gaps between groups.
  • A row with a missing key value: the Name or ID is empty, but other cells have something in them. These might be broken records you want to fix, not delete.

All the examples use this list in A1:D8. Rows 4 and 7 are completely empty. Row 6 is missing only a region.

ABCD
1NameTeamRegionSales
2AmiraRetailNorth4200
3BenOnlineSouth3100
4
5CarlaRetailEast2800
6DmitriOnline3900
7
8ElifRetailWest4600

The goal is to remove rows 4 and 7 and keep Dmitri's row. Before you start, save the file or copy the sheet. Deleting rows can't be fixed later if you've already saved and closed.

Method 1: Delete blank rows with a filter (safest)#

Filtering on a key column is the safest method because you see exactly which rows will go before you delete them. A key column is one that every real record fills in, like Name or ID.

  1. Click any cell in the list.
  2. Turn on filters with Ctrl+Shift+L (Mac: ⌘⇧F), or choose Data > Filter.
  3. Click the filter arrow on the Name column.
  4. Untick (Select All), tick (Blanks) at the bottom, and click OK.
  5. Select the visible rows by dragging over their row numbers on the left (rows 4 and 7 here).
  6. Press Ctrl+- (Mac: ⌘-), or right-click and choose Delete Row.
  7. Turn the filter off with Ctrl+Shift+L (Mac: ⌘⇧F) again.

Excel deletes only the visible rows, so the hidden rows with data are safe. Dmitri's row stays, because his name is filled in. If you're new to filters, the guide to the Excel filter shortcut covers the keys, and you can practise filtering a table in a live sheet.

Method 2: Use a helper column to find truly empty rows#

When no single column is always filled, add a helper column that counts the filled cells in each row. A helper column is an extra column you add only to do a calculation, then delete.

In E2, type:

Excel formula
=COUNTA(A2:D2)

Fill it down to E8 with Ctrl+D (Mac: ⌘D). COUNTA counts cells that are not empty. Rows 4 and 7 show 0. Dmitri's row shows 3, because only one of its four cells is empty.

Now filter column E for 0 and delete the visible rows, exactly as in Method 1. Then delete the helper column. This method is the most precise, because a row only shows 0 when every cell is empty. The article on COUNTIF for non-blank cells explains COUNTA and other ways to count filled cells.

Method 3: Go To Special > Blanks (use with care)#

Go To Special can select every empty cell in one step, but it is only safe on a single key column. Many online tips tell you to select the whole list, so be careful.

The risky way looks like this: select A1:D8, choose Home > Find & Select > Go To Special, pick Blanks, then Delete > Delete Sheet Rows. Excel selects every empty cell, including C6, Dmitri's missing region. So it deletes row 6 too, and Dmitri's sales disappear without warning.

The safe way:

  1. Select only the key column, for example A2:A8.
  2. Press F5 or Ctrl+G (Mac: Control+G) and click Special.
  3. Choose Blanks and click OK. Only A4 and A7 are selected.
  4. Choose Home > Delete > Delete Sheet Rows.

Selecting a column quickly matters here. Click the first cell and press Ctrl+Shift+Down arrow (Mac: ⌘⇧Down arrow) to extend to the end of the data. Watch out: the selection stops at the first empty cell, so you may need to press it again to reach the last row. You can practise selecting ranges with Shift to get fast at this.

Why can't Excel find my blank rows?#

If the filter shows no (Blanks) or Go To Special says "No cells were found", the cells are probably not truly empty. Common causes:

  • A space typed into the cell, often from an import.
  • A formula that returns empty text, like =IF(B4="","",B4). The cell looks empty but holds a formula.
  • An apostrophe on its own, which Excel hides.

To check a cell, type =LEN(A4) next to it. A result of 0 means the cell is empty or holds empty text. Any other number means there are hidden characters. Use Find & Replace (Ctrl+H; Mac: Control+H) to replace a single space with nothing, or paste the formula cells as values first, then try again.

Should you delete or hide blank rows?#

Delete blank rows when they are true gaps in a list. They break sorting, filtering, pivot tables and shortcuts like Ctrl+Down arrow, which stop at the first empty row.

Hide rows instead when they are deliberate spacing in a report you might print or present, or when a formula elsewhere points at them. Hiding keeps the layout and all references. The guide to hiding and unhiding rows and columns shows how.

Deleting also affects formulas. A SUM over D2:D8 shrinks to D2:D6 when two rows go, which is what you want. But a formula that pointed directly at a deleted cell shows #REF!. The guide on how inserting and deleting rows affects formulas explains why.

If the empty cells are inside your records and you want to fill them rather than remove rows, see how to fill blank cells with the value above.

Remove blank rows with a formula#

In Excel 2021 or Microsoft 365, the FILTER function can return a clean copy of the list without touching the original. In an empty area, type:

Excel formula
=FILTER(A2:D8,A2:A8<>"")

This returns every row where the Name is not empty: Amira, Ben, Carla, Dmitri and Elif. The result spills, which means it fills the cells below and to the right by itself. If you later need it as plain data, copy it and paste as values. Older versions of Excel don't have FILTER, so use Method 1 there.

Practise it#

Start with the exercise on this page: counting the empty key cells tells you how many rows you should expect to delete, which is a quick safety check. Then practise filtering a table in a live spreadsheet, where you filter for blanks and work with only the visible rows. Finish with the Shift selection lesson so you can select a whole column of data in one move.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

Before you delete anything, count the rows to remove. In G2, use COUNTBLANK on the Name column (A2:A8) to count the rows with no name, then press Enter.

fx
ABCDEFGH
1
Name
Team
Region
Sales
2
Amira
Retail
North
4200
Rows with no name
3
Ben
Online
South
3100
4
5
Carla
Retail
East
2800
6
Dmitri
Online
3900
7
8
Elif
Retail
West
4600
9
10
11

Tip: COUNTBLANK needs one thing: the range to check. Use the Name column, A2:A8.

Practise this in a lesson

LessonFilter a tableTurn on filter buttons with Ctrl+Shift+L, filter by one or several values and by a number condition, total and count only the visible rows with SUBTOTAL, then clear the filters.LessonFreeSelect ranges with ShiftHold Shift with the arrow keys to select as you go, then grab whole columns, rows and tables in one keystroke.

Frequently asked questions

How do I delete all blank rows in Excel at once?

+

Turn on filters, choose (Blanks) in a column that is always filled in, select the visible rows by their row numbers and press Ctrl+- (Mac: ⌘-). Clear the filter and only the filled rows remain.

Why did Go To Special delete rows with data?

+

Go To Special > Blanks selects every empty cell, not every empty row. If a row has one empty cell, deleting the entire row removes the data in its other cells too. Use it only on one key column.

Why won't Excel find my blank rows?

+

The cells probably are not truly empty. A space, an apostrophe or a formula that returns empty text all count as content. Check with =LEN(A5), which shows a number above 0 if something is there.

Can I remove blank rows with a formula?

+

Yes, in Excel 2021 or Microsoft 365. =FILTER(A2:D20,A2:A20<>"") returns a clean copy of the list without the rows where column A is empty. The original data stays as it is.

Sources

  • Filter data in a range or table - Microsoft Support
  • Find and select cells that meet specific conditions - Microsoft Support
  • Insert or delete rows and columns - Microsoft Support

Written and checked by the ExcelReady Team. First published November 1, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. What counts as a blank row?
  2. Method 1: Delete blank rows with a filter (safest)
  3. Method 2: Use a helper column to find truly empty rows
  4. Method 3: Go To Special > Blanks (use with care)
  5. Why can't Excel find my blank rows?
  6. Should you delete or hide blank rows?
  7. Remove blank rows with a formula
  8. Practise it

Keep reading

Productivity· 5 min read

Hide and Unhide Rows and Columns in Excel

To unhide rows in Excel, select the rows above and below the hidden ones, right-click a row number and choose Unhide. To unhide everything, select the whole sheet first. To hide rows, select them and press Ctrl+9 or right-click and choose Hide. Hidden rows still count in SUM; use SUBTOTAL(109,...) to total only the visible ones.

Basics· 6 min read

Insert and Delete Rows and Columns Fast in Excel

The fastest insert row shortcut in Excel is to select the row with Shift+Space, then press Ctrl+Shift+= (the plus key). To delete it, select the row and press Ctrl+- (minus). On a Mac, use Control+Shift+= to insert and ⌘- to delete. Select several rows first to insert or delete that many at once.

Productivity· 5 min read

Excel Filter Shortcuts for Windows and Mac

The main filter shortcut in Excel is Ctrl+Shift+L on Windows and Command+Shift+F on a Mac. It turns filter buttons on or off for the data around the selected cell. Then press Alt+Down Arrow (Mac: Option+Down Arrow) on a header to open its filter menu, use the arrow keys and Space to pick values, and press Enter to apply.

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free