The fastest way to remove blank rows
The quickest method is to use Excel's Go To Special feature to select all blank cells at once, then delete the rows they occupy. Open your spreadsheet, select the range of data that contains the blank rows, then press Ctrl+H (or Cmd+H on Mac) to open Find & Replace. Leave the Find field empty, leave the Replace field empty, and click Replace All. This removes blank cells but leaves the row structure intact — if you need the rows gone entirely, use the manual selection method instead.
For most people, the manual approach works better because it actually deletes the rows rather than just clearing them. Select your data range, then go to the Data menu and click Sort. In the sort dialog, click Options and check the box that says Delete empty cells if available, or straightforward sort by any column — Excel will push all blank rows to the bottom where you can see and delete them as a group.
Key Takeaways
- Sorting your data by any column pushes all blank rows to the bottom, making them straightforward to select and delete together.
- The Find & Replace method (Ctrl+H with empty fields) clears blank cells but leaves row numbers in place, which works if you only need the cells empty.
- Right-click on a blank row number and select Delete to remove individual rows one at a time if you have only a few.
- Always save a copy of your spreadsheet before deleting rows, in case you need to undo the change later.
Using sort to move blank rows to the bottom
Sorting is the most reliable way because it groups all your blank rows together. First, click on any cell inside your data range — you do not need to select the entire range. Go to the Data menu at the top and click Sort. A dialog box will open asking which column to sort by. Pick any column that contains data, and click Sort A to Z (or the ascending option). Excel will rearrange your rows and push all the blank ones to the bottom.
Once the blank rows are at the bottom, they are straightforward to spot. Click on the row number of the first blank row (the number itself, on the left side), then hold Shift and click on the last blank row number. This selects all the blank rows at once. Right-click on the selected row numbers and choose Delete. The rows disappear and your data closes up.
If your data is already sorted in a specific order that matters to you, add a helper column first. In an empty column, type the numbers 1, 2, 3 down the side to mark the original order. After you delete the blank rows, sort by this helper column to restore the original sequence, then delete the helper column itself.
Deleting individual blank rows manually
If you have only a few blank rows scattered through your data, deleting them one at a time is faster than sorting. Click on the row number of the blank row — the gray number on the far left side of the spreadsheet. The entire row will highlight in blue. Right-click on the row number and select Delete from the menu that appears. The row vanishes and all rows below it move up.
To delete multiple non-consecutive blank rows at once, click the first blank row number, then hold Ctrl (or Cmd on Mac) and click each additional blank row number. All selected rows will highlight. Right-click any of the selected row numbers and choose Delete. All of them disappear in one action.
Using Find & Replace to clear blank cells
This method clears the contents of blank cells but does not remove the rows themselves — the row numbers stay in place. Use this if you want to keep your row structure intact or if you are not sure whether the rows are truly blank or just appear empty. Press Ctrl+H (Windows) or Cmd+H (Mac) to open the Find & Replace dialog.
Leave the Find field completely empty. Leave the Replace field empty as well. Click Replace All. Excel will find every blank cell in your selected range and replace it with nothing, which clears any hidden spaces or formatting that might be hiding there. This does not delete rows, so your data stays in the same row positions.
Preventing blank rows from appearing in the first place
Blank rows often appear when you copy data from another source, import from a database, or when someone manually inserts empty rows for spacing. To avoid this, paste data using Paste Special instead of regular paste. Right-click where you want to paste and choose Paste Special, then select Values only. This strips out any hidden formatting or blank rows that came with the original data.
When entering data manually, resist the urge to add blank rows for visual spacing. Instead, use row height or cell borders to create visual breaks. This keeps your data clean and makes sorting and filtering work correctly. If you inherit a spreadsheet with blank rows already in it, run the sort method once to clean it up, and the problem is solved.
What to do if deleting rows changes your formulas
If your spreadsheet contains formulas that reference specific rows, deleting rows can break those formulas because the row numbers shift. Before you delete, check whether any cells contain formulas that point to other cells — look for cells that start with an equals sign (=). If they do, consider using a filter instead of deleting. Go to Data > Filter, then uncheck the blank rows in the filter menu. This hides them without changing row numbers.
If you have already deleted rows and broken a formula, press Ctrl+Z when ready to undo. The rows come back and your formulas restore. Then use the filter method instead, or update your formulas to use a range that adjusts automatically when rows are deleted — ask someone familiar with your spreadsheet how the formulas are written before you make changes.
Frequently Asked Questions
Will deleting blank rows affect my data?
No, deleting blank rows only removes the empty rows themselves. Your actual data stays intact and moves up to fill the space. The only risk is if you have formulas that reference specific row numbers — those will break because the rows shift. Check for formulas before deleting, or use filtering instead.
Can I undo a deletion if I delete the wrong rows?
Yes. Press Ctrl+Z (Windows) or Cmd+Z (Mac) when ready after deleting. Excel will restore the rows. You can undo multiple times to go back several steps if needed. After you close the file, undo is no longer available, so save a backup first if you are unsure.
What if the rows look blank but contain spaces or hidden characters?
Use Find & Replace to clear these. Press Ctrl+H, leave both fields empty, and click Replace All. This removes spaces and invisible characters. Then use the sort method to move any remaining truly blank rows to the bottom and delete them.
Is there a way to delete blank rows in a large spreadsheet without sorting?
Yes, use the Go To Special feature. Select your data range, press Ctrl+G, click Special, and choose Blanks. This selects all blank cells. Right-click and choose Delete, then select Shift cells up. This removes blank rows without sorting, though it is slower for very large datasets than the sort method.