Skip to main content
SheetTidy

Remove blank rows and empty columns

Delete rows where every cell is empty, and columns with no header and no data, without touching partly filled rows.

  1. 1
  2. 2
  3. 3
  4. 4

Drop your Excel or CSV file here

XLSX, XLSM, XLS, ODS, CSV, TSV or JSON

Your file never leaves your device

How to use this tool

  1. Step 1: Open your file

    Drop an Excel or CSV file onto the tool and pick a sheet if the workbook has more than one.

  2. Step 2: Choose what to remove

    Blank rows and empty columns are both removed by default. Cells that only contain spaces count as empty unless you switch that off.

  3. Step 3: Review the removed rows

    The Before view marks every row that will be deleted, so you can confirm none of them hold data.

  4. Step 4: Download

    Save the tidy file as Excel or CSV, and optionally the removed rows as a separate file.

Why blank rows break spreadsheets

Excel treats a completely empty row as the edge of your data. When you click inside a list and press Ctrl+T, sort, apply a filter or create a pivot table, Excel guesses the range by looking for the nearest empty row and column. A single blank row in the middle means half your records are left out, often without any warning. Ctrl+Shift+Down also stops at the gap, which makes selecting a column slow and error-prone.

Blank rows usually come from reports that put a spacer line between groups, from copying several tables into one sheet, or from people deleting the contents of a row instead of the row itself.

How to delete blank rows manually in Excel

Go To Special (fast, but risky)

  1. Select a column that is only empty when the whole row is empty, such as an order number.
  2. Press F5, click Special, choose Blanks and click OK.
  3. On the Home tab, choose Delete › Delete Sheet Rows.

Be careful with this method. If you select several columns, or a column that is sometimes empty in a real record, Go To Special selects every blank cell and Excel deletes every row containing one, so a customer with a missing phone number disappears along with the empty rows. Always check the selection before deleting.

A helper column with COUNTA (safe)

  1. In the first empty column, enter =COUNTA(A2:F2) and fill it down. Adjust the range to cover all your columns.
  2. Filter that column to show only 0.
  3. Select the visible rows, right-click and choose Delete Row.
  4. Clear the filter and delete the helper column.

COUNTA counts every cell that holds anything, so a result of zero means the row is truly empty. Note that it also counts cells containing only a space or a formula that returns an empty string, so those rows will not show as zero.

Sorting

Sorting the data moves blank rows to the bottom, where they no longer interrupt the range. It is quick but changes the order of your records, which matters for statements, logs and anything numbered.

Power Query

Home › Remove Rows › Remove Blank Rows removes rows where every value is empty and loads the result to a new sheet. It is reliable, though it is a lot of setup for a one-off file.

Empty columns

Excel has no single command for empty columns. Scroll across the sheet, select each unused column by its letter, then right-click and choose Delete.

Where this tool helps

Reports with spacer rows. Accounting and ERP exports often leave an empty line after each customer or month. Removing them turns the report into a continuous list that sorts and filters correctly.

Combined data. After pasting several months of data under each other, you are left with gaps where each block ended. One pass removes them all.

Before an import. Mailing platforms and CRMs may stop reading at the first empty row, or create empty contacts. Cleaning first avoids both.

CSV exports with blank lines. Some systems write an empty line between records or after a header. Opening the file in Excel shows them as blank rows that get in the way.

How the tool decides what is blank

  • A row is removed only if every cell is empty. Partly filled rows are always kept, which avoids the Go To Special mistake.
  • Whitespace-only cells count as empty by default, since they look blank and break the same features. Switch this off to keep them.
  • A column is removed only if it has no header and no values. Named columns are kept even when they are empty.
  • Order is preserved. Remaining rows stay exactly where they were relative to each other.
  • Removed rows can be downloaded, so you have proof of what was taken out.

Leading zeros, dates, numbers and text in any language are left untouched.

Good next steps

After the gaps are gone, the file check often finds duplicates that were hiding in separate blocks, or stray spaces in names. Run Remove duplicates and Remove extra spaces next. If the sheet also has a title above the header, total rows or repeated headers from a printed report, the Fix messy columns tool removes those as well.

Frequently asked questions

Will it delete rows that have some empty cells?

No. A row is only removed when every cell in it is empty. A customer with no phone number or an order with a missing date is always kept.

What counts as an empty column?

A column with no header and no values in any row. A column that has a header but no data yet, such as an empty Notes column, is kept because someone named it deliberately.

Do cells containing a single space count as blank?

Yes by default, because they look blank and behave like blanks in filters. You can turn that off if spaces are meaningful in your file.

Does it change the order of my rows?

No. The remaining rows stay in their original order. Nothing is sorted.

Can I get back the rows that were removed?

Your original file is never modified. After running the tool you can also download the removed rows as their own file.

Does it work with CSV files that end with empty lines?

Trailing empty lines at the end of a CSV are ignored when the file is read. Empty lines in the middle of the data are treated as blank rows and removed.

All clean tools