Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Clean Up Blank Rows in Excel

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To clean up blank rows in Excel, select your data range, press F5 (or Ctrl+G), click Special, choose Blanks, and then delete the entire rows that are selected. For a one-click method, convert the range to a table with Ctrl+T and use the filter drop-down to hide blanks before deleting visible rows. Either way, work on a copy of the file first, because deleting rows shifts references and cannot be undone after you save.

What You'll Need

  • Excel for Windows, Mac, or Excel for the web (steps below note where they differ).
  • A backup copy of the workbook, saved before you delete anything.
  • Your data laid out with a clear header row, so filters and tables behave predictably.

Step-by-Step

  1. Save a copy of the workbook with a new name. Deleting rows can break formulas that point at those cells, and once you save, Ctrl+Z will not bring the rows back.
  2. Click any cell inside your data and press Ctrl+A to select the whole block, or drag to select just the range you want to clean. Do not include title rows above the header, because they confuse the Blank selection.
  3. Press F5 on Windows or Ctrl+G on Mac to open the Go To dialog. Click Special. If you cannot find Special, use Home > Find & Select > Go To Special instead.
  4. Choose Blanks and click OK. Excel highlights every empty cell in the selected range. Note that this selects blank cells, not entire blank rows, so the next step matters.
  5. With the blanks still selected, go to the Home tab and click Delete > Delete Sheet Rows. Excel removes the entire rows that contain those blank cells. If your data has gaps inside otherwise useful rows, this will delete real data, so check the selection before you click.
  6. Alternatively, for a safer filter-based method: select the range, press Ctrl+T, confirm the header row, then click the filter arrow on a column you know is always filled. Untick everything except Blanks, and delete the visible rows with Home > Delete > Delete Sheet Rows. Clear the filter afterwards.
  7. Press Ctrl+End to check the used range. If Excel still jumps far below your data, there are leftover formatting or stray cells. Select the rows beneath your data, right-click, and choose Delete to reset the range.
  8. Review formulas that referenced the deleted rows. Look for #REF! errors and correct them, then save the file.

Menu labels vary slightly by Excel version, device, and region, so if a button name does not match exactly, look for the closest equivalent on the Home or Data tab.

Common Mistakes

The most frequent error is using Go To Special > Blanks and then pressing Delete without choosing Delete Sheet Rows. That clears the contents of blank cells but leaves the rows in place, so the gaps remain. Another common mistake is selecting only one column before running the blank check, which deletes rows where that column happens to be empty even though other columns hold data. People also forget that deleting rows shifts cell references, so formulas, charts, and named ranges can break silently. Finally, many users delete rows on the original file without a backup, then discover the mistake after saving, when undo no longer works.

Tips

Sort your data by a column that should always contain a value before checking for blanks; the empty rows will cluster together and are easier to review. Use Find & Select > Go To Special > Blanks on a single helper column first, just to count how many blanks exist, before deleting anything. If you only need to hide blank rows rather than remove them, apply a filter and untick Blanks instead. Converting your range to a table with Ctrl+T keeps formatting and formulas consistent as rows are removed, and tables expand automatically when you add data later. On Excel for the web, the Go To Special dialog is not available, so use the filter method or open the file in the desktop app.

Troubleshooting

If Delete Sheet Rows is greyed out, you are probably editing a cell rather than a selection, or the sheet is protected. Press Esc, reselect the range, and check Review > Unprotect Sheet. If blank rows reappear after deletion, they may be inside a table that still has formatted empty rows at the bottom; select those rows and delete them, then save. If Ctrl+End jumps to a far cell, delete the rows and columns beyond your data and save the file to reset the used range. If formulas show #REF! after cleanup, use Ctrl+Z immediately, or restore your backup and delete rows in smaller batches so you can trace which deletion caused the break. If the filter method hides rows you wanted to keep, clear the filter and check whether your chosen column genuinely has values in every valid row.

Frequently Asked Questions

Does deleting blank rows remove the data in them?

Blank rows contain no data by definition, but the Go To Special method deletes any row that has a blank cell in the selected range, which can include rows with data elsewhere. Always review the highlighted selection before deleting.

Can I undo deleted rows?

Yes, with Ctrl+Z before you save and close the file. After saving, undo history is cleared, so restore from your backup copy instead.

Why does Excel still show blank rows after I delete them?

Those rows likely contain formatting, spaces, or formulas returning empty text. Select them, right-click, and choose Delete to remove the rows entirely, then save.

Is there a way to remove blank rows automatically?

There is no single built-in command for this. The closest options are the filter method, Power Query (Data > From Table/Range, then remove empty rows), or a small macro. Power Query is the most repeatable for recurring cleanups.

Can I clean blank rows in Excel for the web?

Partially. The web version lacks Go To Special, so use filters to hide blanks and delete visible rows, or open the workbook in the desktop app for the full set of options.

Will deleting rows break my formulas?

It can. Formulas that reference deleted cells return #REF!, and relative references shift. Check for errors after cleanup and restore from backup if the damage is widespread.