Erasing blank rows in Excel cleans up your dataset, improves readability, and ensures formulas and charts reference only valid data. This process removes empty rows that may have been created during data imports, copy-paste errors, or manual entry gaps. No special tools are required—this works in all modern versions of Excel for Windows and macOS, including Excel 365, 2021, 2019, and 2016.

What You'll Need

  • A Microsoft Excel file (.xlsx or .xls) with blank rows to remove
  • Access to Excel on Windows or macOS
  • Basic familiarity with selecting ranges and using the ribbon interface

Step-by-Step

  1. Open your Excel file and identify the column or range where blank rows appear. Blank rows are most commonly detected by looking for consecutive rows with no data in any column. For accuracy, focus on a column that should always contain data—like an ID, name, or date column.
  2. Select the entire data range you want to clean. Click the letter at the top of the first column to select it, then hold Shift and click the letter of the last column to highlight all columns in your dataset. Alternatively, click the top-left cell of your data, hold Shift, and press Ctrl+Shift+End (Windows) or Command+Shift+End (macOS) to select all used cells from that point to the bottom-right corner of your dataset.
  3. Press Ctrl+G (Windows) or Command+G (macOS) to open the Go To dialog box. Click the Special button at the bottom-left corner of the dialog.
  4. In the Go To Special dialog, select the option labeled Blanks and then click OK. Excel will now select all cells in your selected range that are completely empty.
  5. With the blank cells still selected, right-click on any selected cell. From the context menu, choose Delete.
  6. In the Delete dialog that appears, select Entire row and then click OK. Excel will delete every row that contained a blank cell within your selected range, shifting all rows below upward to fill the gaps.
  7. After deletion, review your data to ensure no critical rows were accidentally removed. Scroll through the dataset and verify that headers, data, and formatting remain intact.
  8. Save your file by pressing Ctrl+S (Windows) or Command+S (macOS). Consider saving as a new file (File > Save As) if you want to keep the original as a backup.

Common Mistakes

  • Selecting the entire worksheet instead of just the data range can cause Excel to delete rows far beyond your dataset, including empty rows at the bottom that you may need later. Always select only the area containing your actual data.
  • Not verifying data before deletion can result in losing rows that appear blank but contain hidden characters, spaces, or formulas returning empty strings. Use the Find feature (Ctrl+F) to search for non-printing characters before deleting.
  • Deleting by row number manually is error-prone and time-consuming. If you have hundreds of blank rows, manually selecting and deleting each one increases the risk of missing some or deleting the wrong ones.
  • Ignoring filtered data—if your data is filtered, the Go To Special function will only select blank cells in the visible rows, potentially missing hidden blank rows. Remove filters before running this process.

Tips

  • Before deleting, copy your data to a new sheet as a backup. This lets you test the process without risking your original file.
  • Use Conditional Formatting to highlight blank rows before deletion. Select your range, go to Home > Conditional Formatting > New Rule > Use a formula to determine which cells to format, then enter =COUNTA(A1:Z1)=0 (adjusting Z to your last column). Set a red fill, then review all highlighted rows before deletion.
  • For large datasets, sort your data by a key column (like ID or date) first. This groups blank rows together, making it easier to visually confirm which ones to remove.
  • If your data has headers, ensure you don’t accidentally select them in your range. The Go To Special function will not delete rows with headers—they typically contain text and won’t be marked as blank.
  • Use Excel’s Table feature (Insert > Table) for future data. Tables automatically exclude blank rows from charts and pivot tables and make filtering and sorting more reliable.

Troubleshooting

  • Nothing happens after clicking OK in Go To Special—this means there are no truly blank cells in your selected range. Check for spaces, apostrophes, or formulas returning "". Press Ctrl+F, type a space, and search to find hidden content.
  • Excel deletes too many rows—you likely selected the entire worksheet. Close without saving and restart. Next time, carefully select only your data range before using Go To Special.
  • Rows remain blank after deletion—this can occur if some cells contained non-printing characters (like line breaks or tabs). Use the CLEAN function in a helper column: type =CLEAN(A1) and drag down, then copy and paste values back over the original column to strip hidden characters.
  • Formula references break after deletion—this is normal if formulas referenced cells in deleted rows. Check your formulas and update ranges manually, or convert your data to an Excel Table before cleaning; tables auto-adjust formulas.
  • Excel freezes during deletion—this often happens with very large datasets (over 100,000 rows). Try deleting in batches: select 10,000 rows at a time, use Go To Special > Blanks, then delete. Save frequently.

Frequently Asked Questions

Can I undo deleting blank rows?

Yes, immediately press Ctrl+Z (Windows) or Command+Z (macOS) to undo the deletion. If you saved the file after deletion, you’ll need to restore from a backup.

Do blank cells with formulas count as blank?

No. If a cell contains a formula that returns an empty string (like =""), it is not considered blank by Excel’s Go To Special tool. You must use CLEAN or replace formulas with values first.

Will this process affect my charts or pivot tables?

Yes, if your charts or pivot tables reference the deleted rows. After deletion, refresh pivot tables (right-click > Refresh) and update chart data ranges manually if needed.

Can I delete blank rows on a protected sheet?

No. If the sheet is protected, you must unprotect it first (Review > Unprotect Sheet). You’ll need the password if one was set.

Is there a keyboard shortcut to delete blank rows?

There’s no single shortcut, but you can combine Ctrl+G > Special > Blanks > Alt+E > L (Windows) to delete rows quickly after selection. On macOS, use Command+G > Special > Blanks, then right-click and select Delete Row.

What if my data has merged cells?

Merged cells can interfere with the Go To Special function. Unmerge them first (select the merged range > Home > Merge & Center > Unmerge), then proceed with the deletion process.