To eliminate blank rows in Excel, the fastest reliable method is to use the Go To Special dialog to select blanks, then delete entire rows. Press Ctrl+G (Windows) or F5 (Mac), click Special, choose Blanks, and click OK. With the blank cells selected, right-click and choose Delete, then select Entire row. This removes all blank rows in one action. If your data has gaps that should not be deleted (for example, a row with only a note in one column), use filters or a helper column to target only fully blank rows. The steps below cover both approaches and the common pitfalls.

What You'll Need

  • Microsoft Excel (any recent version on Windows or Mac; the steps are for the desktop app, not Excel for the web, though web steps are noted where they differ).
  • A worksheet with blank rows you want to remove.
  • A backup copy of your file (optional but recommended before any bulk deletion).

Step-by-Step

  1. Save a backup. Before deleting rows, press Ctrl+S (Windows) or Cmd+S (Mac) to save your current state. If something goes wrong, you can close without saving and reopen the file.
  2. Select the range or the entire sheet. Click any cell inside your data and press Ctrl+A (Windows) or Cmd+A (Mac) to select the current region. If you want to process the whole sheet, click the triangle at the top-left corner of the grid (above row numbers and left of column letters). Working with a selected range avoids affecting unrelated rows elsewhere.
  3. Open Go To Special. Press Ctrl+G (Windows) or F5 (Mac) to open the Go To dialog, then click the Special button. On Mac, you can also use Edit > Find > Go To, then Special. Menu labels can differ slightly by version and region.
  4. Choose Blanks and click OK. In the Go To Special dialog, select the Blanks option. Excel highlights every blank cell within the selected range.
  5. Delete entire rows. With the blank cells still selected, right-click on any highlighted cell and choose Delete. In the Delete dialog, select Entire row and click OK. Excel removes all rows that contained a blank in the selected range. Note: this deletes the entire row, including any data in columns outside your selected range. If you selected only part of the sheet, check that no important data sits in other columns of those rows.
  6. Verify the result. Scroll through your data to confirm no needed rows were removed. If you accidentally deleted too much, press Ctrl+Z (Windows) or Cmd+Z (Mac) immediately to undo.
  7. Alternative: remove only fully blank rows. If some rows have a single entry and you want to keep them, use a helper column. In an empty column next to your data, enter a formula such as =COUNTA(A2:Z2)=0 (adjust the range to your columns). This returns TRUE for rows where every cell is empty. Copy the formula down, then use Data > Filter to show only TRUE, select those rows, right-click and delete entire rows. Remove the helper column afterward.
  8. Alternative: use Power Query (Excel 2016+). Select your data, go to Data > From Table/Range. In the Power Query Editor, go to Home > Remove Rows > Remove Blank Rows. Then click Close & Load to output a clean table. This method is non-destructive to the original data and is good for repeated cleanups.
  9. Excel for the web. The Go To Special dialog is not available in Excel for the web. Use the helper column and filter method instead, or open the file in the desktop app.

Common Mistakes

  • Deleting only cells instead of entire rows. If you choose Delete > Shift cells up, you will merge data from below into the blank row's place, corrupting your layout. Always choose Entire row.
  • Selecting a partial range and losing data. Go To Special > Blanks only considers the selected range. If you select columns A to C but your data extends to column F, deleting entire rows will also remove the data in D to F for those rows. Select the full data range first.
  • Assuming every blank cell means a blank row. A row with a value in one column and blanks elsewhere is not fully blank. Use the helper column method if you need to preserve such rows.
  • Forgetting to remove filters. If a filter is active, deleting rows may only affect visible rows. Clear filters before bulk deletion.
  • Not checking for merged cells. Merged cells can cause Go To Special to behave unpredictably. Unmerge cells before cleaning.

Tips

  • Work on a copy of the file until you are comfortable with the process.
  • Use Ctrl+Z immediately if something looks wrong; Excel's undo history is reliable for row deletions.
  • For recurring cleanups, record a macro or use Power Query so you do not repeat manual steps.
  • If your data is in a table (Ctrl+T), blank rows are less common because tables expect contiguous data, but you can still use the same methods.
  • To find blank rows visually, use conditional formatting with a formula like =COUNTA($A2:$Z2)=0 and a fill color.

Troubleshooting

  • Go To Special is grayed out. This can happen if the worksheet is protected or if you are in cell edit mode. Press Esc, then unprotect the sheet via Review > Unprotect Sheet (password may be required).
  • Delete option does not offer Entire row. Make sure you right-clicked on a selected cell, not on the row header. If you right-click the row header, you get a different menu.
  • Blank rows remain after deletion. They may contain spaces or formulas returning empty strings. Use =TRIM() or check for formulas. Go To Special > Blanks does not select cells with formulas that return "". Use a helper column with =LEN(TRIM(A2))=0 to catch those.
  • Data shifted unexpectedly. You likely chose Shift cells up instead of Entire row. Undo and repeat with the correct option.
  • Power Query not available. It is built into Excel 2016 and later on Windows and Mac. If you use an older version, use the helper column method.

Frequently Asked Questions

Can I delete blank rows without deleting data in other columns?

Yes, but you must select the full width of your data before using Go To Special > Blanks. If you select only some columns, entire rows will still be deleted, including data in unselected columns. To keep rows that have any data, use the helper column method with COUNTA.

Does Go To Special > Blanks work on filtered data?

It selects blanks in the visible cells only if you have applied a filter. However, deleting entire rows will remove hidden rows as well. Clear filters before deleting to avoid unexpected loss.

How do I remove blank rows in Excel for the web?

Excel for the web does not have Go To Special. Use a helper column with a formula like =COUNTA(A2:Z2)=0, filter to TRUE, and delete those rows. Alternatively, open the file in the desktop app.

Will deleting blank rows break formulas that reference those rows?

Yes, formulas that refer to specific cells in deleted rows will return #REF! errors. If your workbook has such formulas, consider using Power Query to clean data in a separate table, or adjust formulas to use dynamic references.

Can I undo row deletions?

Yes, press Ctrl+Z (Windows) or Cmd+Z (Mac) immediately after deletion. Undo history is cleared when you close the file, so save a backup first.

What is the difference between a blank row and a row with empty-looking cells?

A blank row has no content in any cell. A row with formulas returning "" or cells containing spaces is not technically blank. Go To Special > Blanks will not select those cells; use a helper column with LEN and TRIM to identify them.