To remove empty rows in Excel, select your data range, press F5 (or Ctrl+G), click Special, choose Blanks, then right-click any highlighted cell and pick Delete > Delete Sheet Rows. That single pass wipes out every blank row at once. It works in Excel for Microsoft 365, Excel 2024, 2021, 2019, 2016 and on Mac, though some labels can differ slightly by version, platform and region. Read on for the exact clicks, the alternative routes for messy or partial blank rows, and the reasons blanks sometimes refuse to be deleted.
What You'll Need
- Excel on Windows or Mac with your workbook open (any version from Excel 2016 onward works)
- A spare copy of the file, or a recent save you can undo from with Ctrl+Z, because deletion is hard to reverse once you keep typing
- Your data in a contiguous range, with no blank columns splitting it (the method below depends on this)
Step-by-Step
- Save a backup first. Copy the file to another folder or use File > Save As and add a version number to the name. Deleting rows is easy to undo immediately but very hard to undo confidently a day later.
- Click any single cell inside your data. This tells Excel which block of cells counts as your table, so the selection step next only picks up blanks within that block rather than the whole empty sheet.
- Press Ctrl+G on Windows or Cmd+G on Mac to open the Go To dialog. Alternatively use Home > Find & Select > Go To. Both open the same box.
- Click the Special button in the bottom-left corner of that dialog. You will now see a list of conditions such as Comments, Constants and Formulas.
- Choose Blanks and click OK. Excel highlights every empty cell inside the data block in light grey.
- Now the important part: right-click one of the highlighted cells. Do not left-click first, or you will deselect the whole set and be left with one highlighted cell.
- Choose Delete from the right-click menu, then select Delete Sheet Rows in the submenu. In some newer builds the Delete button appears as a small icon on the context menu with a dropdown arrow for row, column or cell options.
- Check the result. The numbering down the left edge should now run continuously with no gaps and no leftover gaps in your table. Paragraph spacing and cell backgrounds should look normal.
- If you have several separate tables on the sheet, repeat the process for each block: click inside the block, repeat Go To Special > Blanks, then delete rows. Do the bottom-most table last if your deletions shift rows above it, or re-select each block fresh each time.
Common Mistakes
- Deleting cell contents instead of rows. Pressing the Delete key on highlighted cells clears the data but leaves the row in place, so the table keeps its gaps. You must use the Delete command from the right-click menu or Home > Delete > Delete Sheet Rows.
- Selecting the whole sheet. If you select the entire worksheet (click the corner box or press Ctrl+A) before Go To Special, Excel highlights the millions of blank cells below your data. Deleting those rows at once is slow and can throw a memory warning. Always click a single cell inside the data first.
- Forgetting that blank cells and blank rows are different. Go To Special > Blanks finds individual empty cells, including cells in rows that are partly filled. Deleting sheet rows for those will wipe out real data sitting in the same rows. Only use the row deletion when the entire row is empty from your first column to your last.
- Breaking formulas. Deleting rows removes any cell references inside them and shifts references below them. Any formula pointing to a deleted cell turns into a #REF! error. On complex sheets, save the backup and check key formulas afterward.
- Ignoring the filter. Rows hidden by a filter are still deleted if they qualify, so clear filters first and confirm that what you are looking at is what you are deleting.
Tips
- Turn your data into a Table first (Ctrl+T or Insert > Table). You can then filter the empty rows with the dropdown, select the visible rows and delete them, and the table structure adjusts automatically.
- For a few scattered blank rows rather than many at once, hold Ctrl and click each row number on the left edge, then right-click and delete them together.
- If your data came from another system, press Ctrl+End (Cmd+End on Mac) to check where Excel thinks the last used cell is. Stray formatting far below the data can make an apparently small sheet behave like a huge one.
- Spaces and non-printing characters count as content. A row that looks empty but survives your deletion may contain spaces. Use Find & Replace with a single space in Find and nothing in Replace to clear them first, then repeat the blank-row deletion.
- Use Excel's own Remove Duplicates (Data > Remove Duplicates) only after removing empty rows, since blank rows can affect what Excel considers a duplicate record.
Troubleshooting
Some rows still look empty but did not get deleted. They probably contain spaces, apostrophes or formatting rather than true blanks. Select the range and press Delete to clear outliers, then repeat the Go To Special > Blanks pass.
Delete Sheet Rows is greyed out. Usually the selected cells are part of a protected sheet or the workbook is in a mode that blocks editing. Check Review > Unprotect Sheet, and check whether the file is open in another app that has it locked. If you're on Excel for the web, some row operations behave differently and a desktop copy will finish the job faster.
Your numbers or dates shifted or broke. Undo immediately with Ctrl+Z (Cmd+Z on Mac), several times if needed, until the sheet returns to its previous state. This is why the backup matters: a single accidental row deletion can silently move values under the wrong headers.
You deleted the wrong rows and cannot undo enough. Close the workbook without saving, reopen it, and you should be back at the last saved version. Do not save after a mistake you cannot fully undo.
Only part of the data cleared and the rest vanished into #REF!. A formula pointed at a removed row. Undo, then reorder the operation: rebuild the formula range or convert the range to an Excel Table before deleting rows, so references adjust with the structure.
The process is extremely slow or freezes. You selected whole columns or the full sheet. Press Esc, click a single cell inside the real data, and run Go To Special again on that block. Also check Data > Filter and turn off any active filter so hidden rows don't confuse the result.
Frequently Asked Questions
Does deleting rows remove the data permanently?
Not instantly: Ctrl+Z restores it while the workbook is still open. Once you save and close, it is gone unless you kept a backup copy.
Can I remove empty rows without deleting the surrounding data?
Yes. Select only the blank cells of those rows (or use the filter method on a Table) and delete the cell contents instead of deleting the rows, then close the gaps by copying the remaining data to a new range.
Why does Go To Special > Blanks not find my "empty" rows?
Because they are not truly empty. Spaces, line breaks or leftover formatting count as content. Clear the cells first, then rerun the search.
Can I do this on Excel for the web or mobile?
Excel for the web supports Go To Special in the desktop product more fully than in the browser version, so the menu wording may not match. On mobile apps, the route is different and limited; deleting multiple non-contiguous rows is far easier on a computer.
Will removing blank rows break my charts or pivot tables?
Charts usually update their ranges automatically once the source data range is adjusted. Pivot tables need a refresh (Data > Refresh All) after rows are deleted, and you may need to reset the source range if the table was built from a fixed range.
Is there a one-click option for empty rows?
No, Excel has no built-in "remove all blank rows" button. The Go To Special > Blanks route plus Delete Sheet Rows is the closest thing to a one-step solution, and the filter-on-a-Table method is the next best for repetitive use.