The fastest way to delete empty rows in Excel

The quickest method depends on whether your empty rows are scattered throughout the sheet or clustered together. If they are clustered — say, all at the bottom after your data ends — you can select them by hand and delete them in seconds. If they are scattered, Excel's Go To Special feature finds them all at once, which is faster than scrolling and clicking each one.

For scattered empty rows, open your spreadsheet and press Ctrl+H (or Cmd+H on Mac) to open Find & Replace. Leave the Find field blank, leave Replace blank too, and click "Replace All". This removes any completely blank rows. If that does not work — because your rows contain spaces or formulas that look empty — you will need to use the manual selection method instead.

For rows you can see on screen, click the row number on the left side of the first empty row, then hold Shift and click the last empty row number. Right-click and choose "Delete" from the menu. The rows vanish and everything below shifts up.

Key Takeaways

  • Completely blank rows can be removed with Find & Replace (Ctrl+H) by searching for nothing and replacing with nothing, then clicking Replace All.
  • Rows that contain only spaces or invisible characters will not be caught by Find & Replace and must be deleted manually or with a filter.
  • To delete rows by hand, click the row number, hold Shift, click the last row you want to remove, then right-click and choose Delete.
  • If empty rows are at the bottom of your data, you can select them all at once by clicking the first empty row number and pressing Ctrl+Shift+End.

Using Find & Replace to remove blank rows at scale

Find & Replace works best when your empty rows contain nothing at all — no spaces, no formulas, no hidden characters. Open the spreadsheet, press Ctrl+H (Windows) or Cmd+H (Mac), and you will see a dialog box with two fields: Find and Replace.

Leave both fields empty. Make sure you are searching the entire sheet by clicking "Options" and confirming that "Search" is set to "By Rows" or "All". Then click "Replace All". Excel will find every completely blank row and delete it. The operation happens instantly, and you will see a message telling you how many rows were removed.

This method fails silently if your rows contain spaces or formulas that return blank values. You will not get an error — Excel simply will not find those rows. If you suspect this is the case, move to the manual selection method instead.

Selecting and deleting empty rows by hand

Click the row number on the left edge of your spreadsheet to select an entire row. The row highlights in blue. If you have multiple empty rows next to each other, hold Shift and click the last row number in the group. All rows between the first and last click are now selected.

Right-click anywhere in the selected rows and choose "Delete" from the menu that appears. The rows are removed, and all data below them shifts up to fill the gap. If you selected the wrong rows, press Ctrl+Z (or Cmd+Z on Mac) to undo.

For empty rows that are not next to each other, hold Ctrl (or Cmd on Mac) and click each row number individually. Each click adds that row to your selection without deselecting the others. Once you have selected all the empty rows you want to remove, right-click and delete them all at once.

Using AutoFilter to hide and then delete empty rows

If your spreadsheet has a header row with column names, you can use AutoFilter to isolate empty rows. Click any cell in your data range, then go to the Data menu and click "AutoFilter". Dropdown arrows appear in your header row.

Click the dropdown arrow in any column that contains data in your real rows but is empty in the rows you want to delete. Uncheck the blank option so only empty rows show. Now select all visible empty rows by clicking the first row number, holding Shift, and clicking the last one. Right-click and delete. Then turn off AutoFilter by clicking Data > AutoFilter again to see your remaining data.

This method is slower than Find & Replace but more reliable when rows contain spaces or formulas. It also lets you review which rows will be deleted before you commit to the action.

Removing empty rows from the bottom of your data

If all your empty rows are at the end of your spreadsheet, after your actual data, you can select them all without scrolling. Click the row number of the first empty row, then press Ctrl+Shift+End (Windows) or Cmd+Shift+End (Mac). This selects from that row all the way to the last row in the sheet.

Right-click and choose "Delete". All selected rows are removed at once. This is the fastest method when you know your data ends at a specific point and everything below is empty.

Be careful with this approach if your spreadsheet has hidden rows or if you are not certain where your data actually ends. If you delete too much, undo with Ctrl+Z and try a more targeted selection instead.

What to do if rows contain spaces or invisible characters

Sometimes a row looks empty but contains a space, a tab, or a formula that returns nothing. Find & Replace will not catch these because they are technically not blank. You have two options: clean the cells first, or use manual selection.

To clean the cells, select the entire column that contains the invisible characters, press Ctrl+H, and search for a single space. Leave the Replace field empty and click "Replace All". This removes all spaces. Then use Find & Replace again to remove truly blank rows. After that, your empty rows should delete cleanly.

If you do not know which column contains the problem, use manual selection instead. Scroll through your data, identify the empty rows visually, and delete them by hand using the method described above. It takes longer but avoids the risk of accidentally removing data.

Preventing empty rows from appearing in the first place

Empty rows often appear when you delete data from the middle of a spreadsheet or when you copy and paste without cleaning up the source. To avoid them, delete entire rows instead of just clearing the contents. Right-click the row number and choose "Delete" rather than pressing Delete on your keyboard, which only clears the cell contents and leaves the row behind.

When you copy data from another source, paste it into a new area of your spreadsheet rather than over existing data. This prevents gaps from forming. If you do need to clear cells without deleting rows, select the cells, press Delete, and then manually remove any empty rows that result.

Frequently Asked Questions

Will deleting rows affect my formulas?

Yes. If a formula in another cell refers to a row you delete, that formula will show an error. Before deleting rows, search your spreadsheet for formulas that might reference them. If you are unsure, save a copy of your file first, delete the rows, and check whether any errors appear.

Can I delete empty rows from multiple sheets at once?

No. You must delete rows one sheet at a time. Open each sheet, remove the empty rows using one of the methods above, then move to the next sheet. There is no built-in way to delete rows across multiple sheets in a single action.

What if Find & Replace says it replaced rows but they are still there?

This usually means the rows contain spaces or other invisible characters. Use the method described in the "What to do if rows contain spaces" section to clean those cells first, then try Find & Replace again.

Is there a way to undo a large deletion if I made a mistake?

Yes. Press Ctrl+Z (Windows) or Cmd+Z (Mac) immediately after the deletion to undo. If you have already closed the file, you cannot undo. This is why saving a backup copy before deleting many rows is a good idea.