Erasing empty rows in Excel removes blank lines that clutter your data, making it easier to analyze, sort, or export. This isn’t a built-in one-click feature, but with a few simple steps, you can clean your dataset quickly. No add-ins or macros are required—just Excel’s native tools. This guide works for Excel on Windows and macOS, including versions from 2010 onward. Labels in menus may vary slightly by version or region, but the underlying functions remain consistent.

What You'll Need

  • A Microsoft Excel file (.xlsx or .xls) with data that contains empty rows
  • Access to Excel on Windows or macOS (no internet connection required)
  • Basic familiarity with selecting cells and using the keyboard shortcut Ctrl+Shift+Down (Windows) or Command+Shift+Down (macOS)

Step-by-Step

  1. Open your Excel file and identify the column that should never be empty in your dataset—for example, if you’re working with customer names, use the column where names are listed. This is your reference column. Empty rows are typically those where every cell in the row is blank, so pick a column that should have data in every valid row.
  2. Click the header of your chosen reference column to select the entire column. If your data starts at row 2 and row 1 is a header, click on the column letter above row 2, not row 1.
  3. Press Ctrl+Shift+Down (Windows) or Command+Shift+Down (macOS) to select all cells from your current position down to the last used cell in that column. This selects all non-empty cells and any blank cells in between.
  4. Press Ctrl+G to open the Go To dialog box. Click the Special button at the bottom left.
  5. In the Go To Special window, select Blanks and click OK. This selects only the blank cells within your previously selected range—not the entire column, just the empty ones.
  6. With the blank cells still selected, right-click any one of them. From the context menu, choose Delete.
  7. A small dialog will appear with four options: Shift cells up, Shift cells left, Entire row, Entire column. Select Entire row and click OK. This removes the entire row where a blank cell was found, shifting all rows below upward.
  8. Review your data. Empty rows should now be gone. If you notice rows that should have been kept but were deleted, press Ctrl+Z to undo and repeat from step 2, ensuring your reference column was correctly chosen.

Common Mistakes

  • Choosing a column that has intentional blanks—like a notes field or optional data column. This causes Excel to delete rows that actually contain important data in other columns. Always pick a column that must have a value in every valid row.
  • Not selecting the entire range before using Go To Special. If you only select a few cells, Excel won’t detect all empty rows. Always use Ctrl+Shift+Down to select from your starting point to the bottom of the data.
  • Deleting by row instead of selecting the entire row first. If you right-click and choose Delete without first selecting Entire row in the dialog, you’ll delete only the cell, not the row—leaving gaps and misaligning your data.
  • Running the process on multiple disconnected data sets without separating them. If your data has gaps (e.g., two separate tables with blank rows between), Excel may delete rows you meant to keep. Always isolate your data block before cleaning.

Tips

  • Before deleting, copy your data to a new sheet as a backup. This gives you a safety net if you accidentally delete the wrong rows.
  • Use Excel’s Filter feature first. Apply a filter to your header row, then filter out blanks in your reference column. This visually highlights empty rows before you delete them, giving you a chance to review them.
  • If your data has merged cells, avoid this method. Merged cells can interfere with selection and cause unpredictable deletion behavior. Unmerge cells first, or use a different cleanup method.
  • For large datasets (10,000+ rows), this method is faster than manually scrolling. It reduces cleanup time from minutes to seconds.
  • After deletion, check for any formulas that may now reference incorrect cells. Excel automatically adjusts formulas, but if you have absolute references or external links, verify they still work.

Troubleshooting

  • Nothing happens after clicking Delete: Double-check that you selected Entire row in the Delete dialog. If you chose Shift cells up, you’ll only delete the cell, not the row. Close the dialog and repeat step 7.
  • Excel deletes rows that aren’t empty: This usually means your reference column has cells that look empty but contain spaces, line breaks, or formulas returning blank text. Use Find and Replace (Ctrl+H) to search for single spaces or CHAR(10) and replace them with nothing. Then re-run the process.
  • Some empty rows remain: You may have missed selecting the full range. Go back to step 2 and make sure you clicked the column header and pressed Ctrl+Shift+Down all the way to the bottom. If your data extends beyond the last visible row, scroll down to confirm the true end.
  • Excel crashes or freezes during deletion: This happens with very large datasets. Try breaking your data into chunks. Select a smaller range (e.g., rows 1–5000), clean it, then repeat on the next block. Avoid selecting the entire column unless necessary.
  • The Delete option is grayed out: You may be working in a protected sheet. Go to Review > Unprotect Sheet (if a password is set, you’ll need it). If you don’t have the password, you cannot delete rows unless you copy the data to a new, unprotected sheet.

Frequently Asked Questions

Can I delete empty rows without selecting a reference column?

No. Excel doesn’t have a built-in option to delete entire rows based on overall row emptiness. You must use a column that should contain data to identify which rows are truly empty.

Will this method work if my data has formulas that return blank?

Yes, but only if the formula returns an actual blank (like =IF(A1="","") ). If the formula returns a space, line break, or invisible character, Excel won’t treat it as truly blank. Use Find and Replace to clean those first.

What if I accidentally delete a row I wanted to keep?

Immediately press Ctrl+Z (Cmd+Z on Mac) to undo the deletion. Always make a backup before running this process, especially on critical data.

Can I use this on filtered data?

No. If your data is filtered, Excel will only delete rows that are currently visible. Unfilter your data first, then run the process. Otherwise, hidden rows may be left behind or incorrectly deleted.

Does this work in Excel Online or mobile apps?

No. The Go To Special > Blanks feature is not available in Excel Online or Excel Mobile. Use the desktop version for this method. In mobile apps, you’ll need to manually delete rows or transfer the file to a desktop computer.

How do I know if a row is truly empty?

Click on any cell in the row and look at the formula bar. If it shows nothing, and no formatting or borders appear, the row is empty. You can also select the entire row and check the status bar at the bottom of Excel—it will say “Empty” if no content exists.