How to Delete Empty Rows in Google Sheets Without Losing Data

When you delete rows, it’s essential to double-check that you’re not losing any data. Let’s see how to delete empty rows in Google Sheets properly without affecting your important information.

When you clean up your data by removing duplicates or outdated transactions, you often create several blank rows. It’s a good idea to remove these blank rows to keep your data tidy and organized.

There are a few other advantages to deleting empty rows in Google Sheets, including:

  • Free up space. Removing empty rows can free up space and improve your sheet’s performance. It also makes your sheet easier to navigate.
  • Improve the performance of array formulas. Deleting empty rows can boost the efficiency of array formulas and LAMBDA functions by reducing the amount of data they need to process.
  • Neat printout. If you plan to print your sheet, deleting empty rows will make your printout look cleaner and more professional.
  • Simplify charts and pivot tables. You can avoid the hassle of filtering out empty rows when creating charts or pivot tables.

How to Delete Empty Rows in Google Sheets

To delete empty rows, we’ll follow this simple approach:

  1. Filter the data range to display only empty rows.
  2. Select and delete all empty rows in the sheet.
  3. Remove the filter.

This way, the sheet will contain only data rows. Here are the step-by-step instructions:

1. Set Up the Sample Data

For this test, I’ll use the following sample data in the range A1:G9.

Sample Dataset

There are three blank rows in this range.

2. Filter Out Non-Empty Rows

To delete empty rows, first we need to filter out all non-empty rows.

What is a non-empty row?

A row is considered non-empty if there is a value in at least one of its columns. If all cells in a row are blank, it’s an empty row.

To filter out the non-blank rows in the range:

  • Select A1:G9.
  • Click Data > Create a filter.
  • Click the filter drop-down in the top-left cell, which is A1.
  • Select Filter by condition > Custom formula is.
  • Enter:
    =NOT(COUNTIF(A2:G2, "<>"))
  • Click OK.
Filter to display only empty rows in Google Sheets

Now, only empty rows will be displayed.

3. Delete Empty Rows

After filtering to show only the blank rows, delete them as follows:

  • Click the row number of the first blank row (e.g., row #5).
  • Press and hold the Shift key.
  • Click the row number of the last blank row you want to delete (e.g., row #8).
    (If you have more blank rows further down, scroll and select them as needed.)
  • Right-click the selected rows and choose Delete selected rows.

4. Remove the Filter

  • Click Data > Remove filter.

Now you’ll have a clean dataset without any empty rows!

Example of deleting empty rows in Google Sheets

By following this method, you can easily learn how to delete empty rows in Google Sheets without losing any valuable data.

Resources

Prashanth KV
Prashanth KV
Your Trusted Google Sheets and Excel Expert Prashanth KV is a Diamond Product Expert in Google Sheets, officially recognized by Google for his contributions to the Docs Editors Help Community and featured in the Google Product Experts Directory. Explore his blog to learn advanced formulas, automation tips, and problem-solving techniques to elevate your spreadsheet skills.

Calculate Trip Days by Month (Start, End, and Full Days) in Google Sheets

If you're managing business travel in Google Sheets, you may need to calculate how...

Mode of Comma-Separated Numbers in Excel (Dynamic Array)

There is no dedicated function in Excel to directly find the mode of comma-separated...

How to Find Mode of Comma-Separated Numbers in Google Sheets

Working with comma-separated numbers inside a single cell is a common scenario in Google...

How to Count Merged Cells in Google Sheets (and Get Their Size)

Sometimes, you may have blocks of merged cells in a column or row. But...

More like this

Calculate Trip Days by Month (Start, End, and Full Days) in Google Sheets

If you're managing business travel in Google Sheets, you may need to calculate how...

How to Find Mode of Comma-Separated Numbers in Google Sheets

Working with comma-separated numbers inside a single cell is a common scenario in Google...

How to Count Merged Cells in Google Sheets (and Get Their Size)

Sometimes, you may have blocks of merged cells in a column or row. But...

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.