The fastest way to remove empty rows from Excel
The quickest method is to use Excel's Go To Special feature to select all blank cells, then delete the rows they occupy. This works in Excel for Windows and Mac, and takes about two minutes once you know the steps. If you have hundreds of empty rows scattered through your sheet, this beats deleting them one at a time by hours.
The alternative is to sort your data so empty rows cluster together, then delete them as a block. This method is safer if your data has a specific order you need to preserve, because sorting can rearrange your information. Both methods are free and built into Excel — you do not need add-ons or macros.
Key Takeaways
- Use Go To Special to select every empty cell in your data range, then delete entire rows at once instead of one by one.
- Sorting your data by any column will push all empty rows to the bottom, where you can select and delete them together.
- Always save a copy of your spreadsheet before deleting rows, in case you need to undo a large deletion.
- Empty rows that appear between data rows are usually caused by accidental deletions or copy-paste errors, not by Excel itself.
- If your spreadsheet has headers (column titles), make sure they stay at the top when you sort or delete rows.
Using Go To Special to select and delete empty rows
This method selects every empty cell in your data at once, then removes the entire rows. Start by clicking on the first cell in your data — usually the top-left corner. Then hold Ctrl and click the last cell that contains data. This selects your entire data range.
Next, press Ctrl+G (Windows) or Cmd+G (Mac) to open the Go To dialog. Click the Special button. A new window appears with checkboxes. Check the box next to "Blanks" and click OK. Excel now highlights every empty cell in your selected range.
Right-click on any highlighted cell and choose "Delete". A dialog appears asking what you want to delete. Select "Entire row" and click OK. Excel removes every row that contains an empty cell. This works even if a row has some data and some empty cells — the entire row still gets deleted, so check your data first if you are unsure.
Sorting to group empty rows together
Sorting pushes all empty rows to one end of your spreadsheet, usually the bottom. Click any cell in your data, then go to the Data tab at the top of the screen. Click Sort. A dialog opens showing all your columns.
Pick any column that contains data in most rows — avoid columns that are mostly empty. Click that column name, then choose "Ascending" or "Descending". Click OK. Excel rearranges your data so rows with values in that column move to the top, and rows with nothing in that column sink to the bottom.
Once all empty rows are grouped at the bottom, click the row number of the first empty row, then hold Shift and click the row number of the last row in your sheet. This selects all empty rows as a block. Right-click and choose "Delete". All empty rows disappear at once. Then save your file.
Protecting your headers when you delete rows
If your spreadsheet has a header row — column titles like "Name", "Date", "Amount" — you must keep it at the top. When you sort or use Go To Special, headers can get mixed into your data and deleted by mistake.
Before you start, select your header row by clicking its row number. Then go to the Data tab and click "Freeze Panes". This locks the header row in place so it will not move when you sort. Now when you sort or delete, your headers stay put. After you finish deleting empty rows, go back to Data and click "Freeze Panes" again to turn it off.
If you forgot to freeze headers and they got deleted, press Ctrl+Z immediately to undo. Then freeze the headers and try again.
Why empty rows appear in the middle of your data
Empty rows usually show up when you delete data from a row but leave the row itself behind. If you select a row and press Delete, Excel clears the contents but keeps the empty row. If you right-click and choose Delete, the entire row disappears — this is the difference between clearing and deleting.
Empty rows also appear after copy-paste errors, when you paste data into the wrong location and leave gaps. They can accumulate if you import data from another program and that program adds blank rows between records.
Empty rows at the very end of your sheet are usually harmless — Excel always has extra blank rows below your data. You only need to delete them if they are scattered through your data and making the sheet hard to read or causing formulas to break.
Checking your work before you delete
Before you delete any rows, scroll through your spreadsheet and look for rows that appear completely empty. Make sure they really have no data in any column — sometimes a row looks empty because the text is white, or the column is too narrow to show the content.
If you are using Go To Special, test it on a small section first. Select just a few rows, run Go To Special, and see what gets highlighted. If it looks wrong, press Escape to cancel and try a different approach.
Always save a copy of your file before you delete a large number of rows. Use File > Save As and give it a new name like "Spreadsheet_backup". If something goes wrong, you still have the original. After you delete and confirm the result looks correct, you can delete the backup.
When sorting does not work the way you expect
If you sort and your data rearranges in a strange way, you probably selected only part of your data instead of all of it. Excel sorts only the cells you selected, which can split your data into pieces. Undo the sort by pressing Ctrl+Z.
Click any single cell in your data, then go to Data > Sort. Do not select a range first — just click one cell and let Excel figure out where your data ends. This usually works better than selecting manually, especially if your data has irregular shapes or gaps.
If your data has multiple tables or sections separated by empty rows, sorting will mix them together. In that case, delete empty rows from each section separately instead of sorting the whole sheet at once.
Frequently Asked Questions
Will deleting empty rows mess up my formulas?
If your formulas reference specific row numbers — like =SUM(A1:A100) — deleting rows will change those numbers and break the formula. If your formulas reference named ranges or use relative references, they usually adjust automatically. Before you delete rows, check any formulas that might be affected and update them if needed.
Can I undo a deletion if I delete too many rows by mistake?
Yes. Press Ctrl+Z immediately after you delete. Excel will restore the rows. You can undo multiple times to go back several steps. If you close the file without saving, the changes are lost and your original file is still there.
What if I only want to delete empty rows in one column, not the entire sheet?
Select only the range of cells you want to check — for example, cells A1 to A500. Then use Go To Special on just that selection. When you delete, only rows within that range will be removed. This is safer if you have data in other columns that you want to keep.
Does Excel have a built-in tool to find and delete empty rows automatically?
Excel does not have a one-click button, but Go To Special is the closest thing. It finds all empty cells in seconds and lets you delete them all at once. Some third-party add-ons offer this feature, but they are not necessary — Go To Special does the job for free.
What is the difference between deleting a row and clearing its contents?
Clearing contents removes the data but leaves the empty row behind. Deleting removes the entire row and shifts all rows below it up one position. When you right-click and choose Delete, you remove the row. When you press Delete, you only clear the contents. For removing empty rows, you always want to delete, not clear.