You can remove blank rows in Excel in under ten seconds by selecting the range, pressing F5, clicking Special, choosing Blanks, and then using Delete Sheet Rows — but only if those rows are truly empty. A single stray space counts as content, so the shortcut quietly skips those rows. Two more failure cases deserve equal billing: blank cells inside otherwise good rows get dragged into any delete-all-at-once approach, and rows that look empty often hold formulas returning "". Microsoft's own support documentation for Excel flags all three as the reasons "Go To Special" doesn't find every gap.
I'll walk through five methods in the order most people should try them. The first two take seconds. The third is the one to use when the fast methods fail. The fourth handles rows above your header row, where no shortcut works. The fifth deletes blank rows inside a formatted table without ever opening the right-click menu.
Why Delete Sheet Rows Beats Delete Rows
Delete Sheet Rows removes the entire row from the worksheet and pulls everything below it upward, which is what almost everyone wants. Delete Rows on its own — what you get when you select a row header and press the Delete key — only clears the cell contents and leaves the empty row structure in place.
This distinction trips people up constantly. If you highlight cells A2:A500, press Delete, and wonder why your data still shows gaps when you scroll down, that's the difference. The row height, formatting, and borders survive; only the values vanish. Microsoft's documentation for the Delete dialog makes the separation explicit: Delete Sheet Rows is a structural removal, Delete is a cell-level clear.
To verify what you're actually deleting, use Ctrl+Z once immediately afterward. Excel will restore the rows and your selection stays visible, so you can see exactly what disappeared. If the restore brings back rows you wanted gone, undo the undo and try a different method — which is exactly what the rest of this guide covers.
One more guard: before you delete anything, save a copy of the workbook. Rows that get shifted upward can break formulas that referenced specific cell addresses, and Excel does not warn you about those broken references after a row deletion. The formulas update to point at the new location, which is usually right, but if you had external references or a pivot table sourced from that range, refresh the pivot before trusting the result.
Find Blank Rows With Go To Special in Four Clicks
This is the fastest reliable method for a straightforward dataset, and it works in every desktop version of Excel from 2007 through the current Microsoft 365 release.
1: Select the range that includes your data. Press Ctrl+A from inside the data to grab it all, or click and drag to be precise. 2: Press F5, then click Special. On a laptop keyboard without a function row, use Ctrl+G instead of F5. 3: Choose Blanks and click OK. Every empty cell in the selection is now highlighted. 4: Right-click any highlighted cell and choose Delete, then Delete Sheet Rows.
The Blanks option finds cells with no content at all. It does not find cells containing a single space, a non-breaking space, or a formula that returns an empty string. That's why this method fails on data pasted from a PDF or exported from a system that pads fields.
Accept the dialog, then check the row count in the status bar. If you selected 500 rows and 40 were blank, the status bar reads "40 cells selected" before you delete. If it reads 2, something is blocking the selection — usually a filtered row, a merged cell, or a protected sheet. Unprotect the sheet via Review > Unprotect Sheet before trying again.
When Go To Special Fails: Clean the Cells With Find and Replace
Pasted data from web pages, PDFs, and ERP exports often contains zero-length formula results or invisible characters. Excel counts these cells as non-blank, so F5 skips them.
The fix is a two-stage clean. First, select your range and press Ctrl+H to open Find and Replace. Leave Find what empty and put nothing in Replace with either — this sounds counterintuitive, but replacing "nothing" with "nothing" forces Excel to recalculate every cell's emptiness. Click Replace All. If Excel reports zero replacements, the cells genuinely have no content in the way Excel counts it, and Go To Special should work.
Second, hunt for non-breaking spaces specifically. Copy one suspicious character from a cell, paste it into Find what, leave Replace with blank, and Replace All. These invisible characters carry over from HTML and look identical to a regular space in the formula bar.
After both passes, run Go To Special again. The blank count in the status bar should now match what your eyes see. If it still doesn't, the remaining suspects are formulas returning "" (covered below) and merged cells spanning the empty region.
Delete Filtered Empty Rows Without a Single Right-Click
When you filter a column that belongs to a formatted Excel Table (created with Ctrl+T), Excel hides the blank rows but keeps them alive. Deleting visible cells while a filter is active can throw the generic error "This can't be done on a multiple range selection" — a message that confuses most users because they only clicked once.
Filter instead, then select the visible rows by pressing Alt+; (semicolon). That shortcut selects visible cells only, skipping the hidden ones. With the visible cells selected, right-click the row numbers on the left, choose Delete Row, and clear the filter. The blank rows are gone; the good ones stayed put.
The failure case worth knowing: if your filter range includes the header row and you accidentally select the header when pressing Alt+;, Excel deletes the header. Watch the row numbers — they should be grayed and non-contiguous before you right-click. The header row is usually not grayed out because it's outside the filter, so if it appears gray, cancel the filter and adjust the range.
This method pairs well with the sort-and-filter workflow most spreadsheet users already run. It also avoids the formula breakage risk of the Go To Special method because Excel Tables auto-repair references when rows inside the table are deleted.
For Rows Above Your Header: Sort Instead of Delete
If blank rows sit above the header row — say rows 1 through 4 are empty and your data starts at row 5 — no shortcut works, because Excel can't delete rows in a way that distinguishes them from the header. The sort method handles this cleanly.
Select the whole region including the blanks, then go to Data > Sort. Uncheck "My data has headers" if the dialog opens with that checked. Sort by the first data column, ascending or descending, whichever suits the dataset. Excel pushes the blanks to the top or bottom in one pass. Delete the block of blank rows at whichever end they landed, and your data is clean and contiguous.
If you're sorting text, know that Excel's ascending sort places numbers before text before logical values before error values before blanks. The order matters when a dataset has mixed types: a column of invoice numbers stored as text (with a leading apostrophe) will sort before the numbers with no apostrophe. Open the sort dialog's Options button and check your choices before committing, especially on data that carries an ID column.
The sort approach is safe against formula breakage because every cell moves with its row. If you had a VLOOKUP pointing at row 50, it now points at a different row but pulls the same underlying data — the reference shifts with the cell. That's not true of deletion, which is why I recommend sort when the dataset contains formulas that point to specific rows.
The Formula Way: Helper Column and AutoFilter
When you can't delete rows — because the workbook is shared, because auditors need the deletion trail, or because the blank rows are inside a pivot source — use a helper column to isolate the non-blank rows instead of removing them.
Add a column at the far right of your dataset. In the first data row, enter the formula =COUNTA(A2:Z2)>0, adjusting the range to cover your actual columns. This returns TRUE when the row has at least one non-empty cell and FALSE when it's blank. Fill the formula down to the last row with Ctrl+D.
Turn on the filter with Ctrl+Shift+L, filter the helper column to TRUE, and copy the visible results into a fresh sheet. The original stays intact, the copy has no blank rows, and the audit trail is preserved.
For a cleaner result, use =ROW() as the helper value after filtering, copy the column of row numbers, and paste-values into a blank area of a new sheet. You now have a list of the source rows that matter, and you can build the cleaned dataset with INDEX or XLOOKUP off those numbers. This is the method BI teams use when importing to Power Query — blank rows get filtered at the query level rather than hand-deleted.
The Two Formulas That Look Empty but Aren't
A cell displaying ="" looks blank but COUNTA counts it as a value because the formula is present. This is the most common reason users post to Microsoft's support forums saying "Excel won't delete my blank rows" — the rows aren't blank, they're formula-occupied.
Use Edit > Find, click Options, and check "Look in: Formulas." Search for =. Excel will highlight every formula cell in the sheet, including those returning empty strings. You can't delete those rows without breaking the logic that put the formulas there, so leave them and clean up the display instead.
For display cleanup, click the Home tab, open the conditional formatting menu, and add a rule that sets text color to white when the value equals "". The rows still behave as content, but they read visually as blank. Then use the helper-column method above rather than right-click deletion to isolate the real data.
Rows that came from a pivot table's source data need special handling. Deleting them in the source sheet requires refreshing the pivot after the deletion, which you do with Data > Refresh All. If you forget, the pivot still shows rows that no longer exist in the source — a discrepancy that's easy to spot on a summary tab and hard to diagnose once a report has been emailed.
Fix the "Can't Change Part of an Array" Error
Excel refuses to delete rows that intersect with an array formula's spilling range. The error message "You can't change part of an array" appears, and the row count doesn't change. Modern Excel with dynamic arrays (Microsoft 365, Excel 2021 and later) is more forgiving than Excel 2019 and earlier, but the error still fires on legacy CSE formulas entered with Ctrl+Shift+Enter.
The repair steps depend on version. In Microsoft 365, click any cell inside the spilled range; the formula appears once, and you can delete the row outside the spill area. In Excel 2019 or earlier, press Ctrl+G or F5, then Special, then "Current array" — every cell in the array highlights. Right-click and choose Copy. Then delete the source cells entirely, and paste the values back only where you want them.
If the array is embedded in a spreadsheet you inherited from a colleague, use Formulas > Show Formulas (Ctrl+`) to reveal which cells have array formulas before you attempt deletion. Anything wrapped in braces {} is an array formula. The braces appear as typed characters in the cell display, not as a feature you can toggle off — they're a reliable tell.
A Common Misconception and What to Do Instead
Many guides tell you to use the Find & Select > Go To Special > Blanks path and then Delete Sheet Rows in one pass. That's fine for a simple table, but it deletes blank cells in rows that have values elsewhere if those cells happen to be empty within the selected range. If row 8 has data in columns A through F but blanks in G through Z because the dataset only filled six columns, the shortcut deletes row 8 entirely.
The correction: verify your cell selection covers only the columns you care about. If your dataset uses 26 columns but only has values in 8, select A1:H500, not A1:Z500. The named range approach helps here. Create a named range for the active data block with Formulas > Name Manager, and reference that name in the F5 dialog's Reference box. Excel will accept it and the selection becomes precise.
Another quiet trap: Excel's Used Range often extends far past the visible data because a stray formatting on row 10,000 inflates it. Press Ctrl+End and look at what cell Excel thinks is the edge of used data. If it's far below where your data ends, delete the stray rows beneath the data, save, and close and reopen. The Used Range recalculates on reopen and Ctrl+End behaves correctly.
Which Method to Use, Side by Side
| Method | Best for | Time (500 rows) | Preserves formatting? | Risk |
|---|---|---|---|---|
| Go To Special > Blanks | Truly empty rows in a bounded range | Under 10 seconds | Yes | Skips cells with spaces or formulas |
| Find and Replace cleanup | Data from web pages or PDFs | 30–60 seconds | Yes | Replacing spaces can alter real data; test on a copy |
| Filter + Alt+; | Filtered Excel Tables | 15 seconds | Yes | Deletes header if selection slips |
| Sort + delete block | Reveal and remove rows above headers | 20 seconds | Yes, order changes | Reorders data, breaks positional references |
| Helper column + copy | Shared or audited workbooks, pivot sources | 2–5 minutes | No, creates a copy | Requires a fresh sheet |
Pick by dataset condition, not by habit. For a fresh export with real blanks, Go To Special is fastest. For anything pasted, start with Find and Replace. When you can't alter the source sheet at all, build the helper column.
FAQ
Does removing blank rows break my formulas?
It can, and Excel won't warn you afterward. Deleting a row updates cell references throughout the workbook so they point at the shifted cells, which is usually the intended behavior. But formulas that counted rows with a fixed range like SUM(A1:A100) silently change scope when row 3 is deleted. If a spreadsheet has a validated output, sort instead of delete.
Why won't Excel delete my blank rows?
The cells contain content Excel counts even though you can't see it. Check three suspects: a formula returning "" (look at the formula bar when the cell is selected), a non-breaking space pasted from a webpage, or an array formula in the row. Any of those three blocks Delete Sheet Rows with no error or warning.
Can I remove blank rows in Excel for the web or Excel on Mac?
Yes. Excel for the web supports F5 and the Go To Special dialog, though the menu path is Home > Find & Select > Go to Special. Excel for Mac uses Command+G for the Go To dialog, and the Special button is inside that dialog. The Delete Sheet Rows option sits on the right-click menu in both.
What's the difference between Delete and Delete Sheet Rows?
Delete clears the contents of the cells and leaves the row structure alive. Delete Sheet Rows removes the row entirely from the worksheet and shifts everything below it upward. When you right-click a row number, you get Delete Sheet Rows. When you highlight cells and press the Delete key, you get Delete. Both exist for good reasons, but only one removes rows.
How do I delete blank rows without deleting blank cells in between?
That's precisely the failure case the Go To Special shortcut hits on wide tables. Restrict the range to only the columns that should contain data, or use the helper-column approach. Excel decides what counts as "blank" at the cell level, and the deletion operates at the row level — the only way to keep them aligned is to constrain cells or rows precisely.
How many rows can I remove at once?
Excel's limit is the sheet's total row count — 1,048,576 rows in both .xlsx and the browser version. The practical limit is your patience; deleting 500,000 rows in a single operation takes Excel a few seconds and uses memory. For anything above 100,000 rows, work in the source system (Power Query, a database export) rather than the spreadsheet grid.
Will deleting blank rows shrink my file size?
Only when the blank rows sit inside the Used Range and carry formatting. Ctrl+End tells you where the Used Range ends. If it extends thousands of rows past your data, deleting those rows and saving can shrink the file noticeably — often by 10–40% for files built from a base template. Rows below the Used Range don't count toward file size.