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 Guide Prashanth KV brings a wealth of experience in Google Sheets and Excel, cultivated through years of work with multinational corporations in Mumbai and Dubai. As a recognized Google Product Expert in Docs Editors, Prashanth shares his expertise through insightful blogging since 2012. Explore his blog for practical tips and guidance on maximizing your spreadsheet skills.

How to Sort Pie Slices in Google Sheets

To sort pie slices in a pie chart, you need to sort the data...

Filter Items Unique to Groups in Google Sheets

In this tutorial, we'll learn how to filter items unique to groups in Google...

Find Common Items Across Multiple Columns in Google Sheets

This tutorial explains how to find common items across multiple columns in Google Sheets....

Sort Column by Length of Text in Google Sheets

To sort a column by length of text, you can either use the QUERY...

More like this

How to Sort Pie Slices in Google Sheets

To sort pie slices in a pie chart, you need to sort the data...

Filter Items Unique to Groups in Google Sheets

In this tutorial, we'll learn how to filter items unique to groups in Google...

Find Common Items Across Multiple Columns in Google Sheets

This tutorial explains how to find common items across multiple columns in Google Sheets....

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.