The fastest way to delete blank rows in Excel
The quickest method depends on whether your blank rows are scattered throughout the sheet or grouped together. If they are grouped — say, all at the bottom after your data ends — you can select them and delete them in seconds. If they are scattered, you will need to use Excel's sort or filter feature to gather them first, then delete them all at once.
For scattered blanks, the most reliable approach is to sort your data by any column that contains values. This pushes all blank rows to the bottom, where you can select and delete them together. This works because Excel treats blank cells as the "lowest" value when sorting.
Key Takeaways
- Grouped blank rows at the bottom of your data can be selected and deleted directly without any preparation.
- Scattered blank rows throughout your sheet should be gathered first by sorting on a column with data, which moves blanks to the bottom.
- The Go To Special feature lets you select all blank cells at once, then delete the entire rows in one action.
- Deleting rows shifts all data below them upward, so check your formulas afterward if they reference rows by number.
Deleting grouped blank rows at the bottom
If all your blank rows sit together at the end of your data, select the first blank row by clicking its row number on the left side. Then hold Shift and click the last blank row number. This highlights all the blank rows between them.
Right-click anywhere in the selected rows and choose Delete. A menu will appear asking whether to delete the entire row or shift cells up. Choose Delete Entire Row. The blank rows disappear and your spreadsheet shrinks.
Gathering scattered blank rows using sort
When blank rows are mixed throughout your data, sorting brings them together. Click any cell in your data range, then go to the Data tab and select Sort. A dialog box opens showing all your columns.
Choose any column that contains actual data — not the column with blanks you want to remove. Click Sort A to Z or Sort Z to A. Excel rearranges your entire data set so that all rows with values in that column stay together, and all blank rows sink to the bottom. Now you can select and delete them as described above.
If your data has headers (a top row with column names), make sure the My data has headers checkbox is checked before sorting. This prevents Excel from treating your header row as data and moving it.
Using Go To Special to select all blanks at once
For very large spreadsheets, selecting blank rows manually takes too long. Excel's Go To Special feature finds every blank cell in your selection and highlights them all at once.
First, select the entire range of data you want to clean. Click the first cell, then hold Shift and click the last cell, or click the column header to select an entire column. Next, press Ctrl + H to open Find and Replace, or use the Edit menu and choose Find & Replace. In the Find field, leave it blank. In the Replace field, also leave it blank. Click Replace All. This removes any truly empty cells but does not delete entire rows.
For a more direct approach, select your data range, then press Ctrl + G (or F5 on some keyboards) to open Go To. Click Special, then choose Blanks. Excel highlights every blank cell in your selection. Now right-click and choose Delete, then select Delete Entire Row. All rows containing blanks are removed at once.
What happens to formulas after you delete rows
When you delete a row, Excel shifts all rows below it upward to fill the gap. If you have formulas that reference specific row numbers — like =SUM(A1:A10) — those references do not change automatically. The formula still points to rows 1 through 10, even though row 10 might now contain different data.
If your formulas use named ranges or entire column references like =SUM(A:A), they adjust automatically and you do not need to worry. After deleting rows, scan your formulas to make sure they still calculate what you intended. You can check this by looking at the formula bar when you click each cell with a formula.
Preventing blank rows from appearing in the first place
Blank rows often appear when you copy and paste data, import from another source, or delete content from a row without deleting the row itself. To avoid them, delete entire rows instead of just clearing their contents. Right-click the row number and choose Delete rather than selecting cells and pressing Delete.
When pasting data, paste into a blank area first, then check for blanks before moving it into your main data range. If you import data regularly, consider using Excel's Remove Duplicates feature (on the Data tab) after importing, as this sometimes cleans up stray blank rows as a side effect.
Frequently Asked Questions
Will deleting rows affect my pivot tables or charts?
If your pivot table or chart is based on a named range or the entire column, it will update automatically when you delete rows. If it references specific row numbers, the chart or pivot table may show incorrect data or errors. Check your source data range before deleting rows from data that feeds a pivot table or chart.
Can I undo deleting rows if I make a mistake?
Yes. Press Ctrl + Z immediately after deleting to undo the action. Excel restores the deleted rows. If you have already saved the file, undo will not work — you would need to reopen the previous version if you saved a backup.
What if some rows have data in only one column?
Those rows are not truly blank — they contain data in at least one cell. Sorting and the Go To Special method will not treat them as blank rows. You would need to manually review and delete them, or use a filter to hide rows where specific columns are empty, then delete what remains visible.
Does deleting rows change the row numbers of the rows below?
Yes. When you delete row 5, what was row 6 becomes row 5, row 7 becomes row 6, and so on. All rows shift up. This is why formulas that reference specific row numbers can break — they still point to the old row numbers, which now contain different data.