How to delete empty rows & cells in Google Sheets

Blank rows and cells in Google Sheets aren't just an eyesore — they can also cause calculation errors and data inconsistencies. In this guide, we'll explore several easy ways to delete empty rows and cells so you have accurate and reliable data. No coding or Apps Script, promise 😉

Tip. Grab yourself a copy of the spreadsheet at the end of the article to practice along.

Delete empty rows in Google Sheets without any tools (manually)

Sometimes picking out those blanks manually is the best. Especially if you have a small data set.

Here's how you remove empty rows in Google Sheets by hand:

  1. Select each blank row. Keep the Ctrl key (or Cmd for Mac) on your keyboard pressed while scrolling through your data and clicking on the row numbers of every empty row: All blank rows selected manually.
  2. Delete blank rows. Right-click the last selected row and pick Delete selected rows from the context menu: Remove blank rows in Google Sheets manually.

These simple steps are perfect for deleting a few empty Google Sheets rows without any tools. Doing this regularly will prevent the clutter of blanks making your data easy to manage.

However, it'll be cumbersome for larger tables. So what are other options?

Use filters in Google Sheets to delete empty rows

Filters will help you remove blank rows in Google Sheets much easier, especially in large tables. And there are actually two different ways to do that depending whether you want to permanently delete those empty rows or just hide them from view.

Remove empty rows temporarily (filter from the view)

This way doesn't really deletes blank rows but temporarily hides them from view making your data easier to work with without permanently altering the structure of your spreadsheet.

  1. Enable a filter. Select your entire data range and click the Create a filter icon.

    Note. Selecting the range beforehand manually is important. If you click on a single cell within your data and enable the filter, Google Sheets will apply the filter to a portion of your table stopping at the first empty row or column. Manually selecting the range, you will ensure that the filter will cover your entire data set.

    Create a filter icon on the Google Sheets toolbar.

    This will add filter drop-downs to your column headers: Filter drop-downs enabled next to your column headers.

  2. Filter out empty rows. Click one of the drop-downs and select Filter by condition > Is not empty > OK: Remove empty cells in Google Sheets from view with the filter's help.

This will remove all blank rows from view displaying only rows with data: Filter out empty rows in Google Sheets.

Delete blank rows permanently

This way lets you quickly see and permanently remove all empty rows in Google Sheets, ensuring a clean and organized dataset.

  1. Enable a filter. Select your entire data range and click the Create a filter icon.

    Note. As I mentioned earlier, selecting the range manually ensures that the filter covers your entire dataset.

    Create a filter icon on the Google Sheets toolbar.

    Filter drop-downs will appear next to your column headers: Filter drop-downs enabled next to your column headers.

  2. Filter by empty rows. Click one of those filters in any of the column headers and choose Filter by condition > Is empty, and click OK: Filter table by condition: if cells are empty.

    This will filter out all non-empty rows, showing only the blank rows in your dataset: Filter your Google Sheets table so only empty rows remain.

  3. Select and delete blank rows. Now that only the empty rows are visible, select them all by clicking on their row numbers. Then right-click any of them and pick Delete selected rows from the context menu: Delete visible empty rows in Google Sheets once you filter out non-blank rows.
  4. Disable the filter. Click the filter icon on the Google Sheets toolbar once again to turn it off. You'll see your table without any blanks: All blank rows are removed from your Google Sheets table.

Whether you choose to permanently delete or temporarily hide empty rows from view, filters help you quickly identify them all.

But if you're looking for a more automated option that would make Google Sheets remove empty rows for you in a click, I have a perfect tool in store.

Make Google Sheets remove blank rows for you automatically

There's a special tool in Google Sheets that deletes empty rows in just one click. I'm talking about Power Tools extension from Ablebits.

Google Workspace Marketplace badge

It's a collection of 40+ tools for daily tasks, one of them being the Remove Blanks tool. It removes all empty rows on one or multiple Google sheets in just one click. No need to filter or select anything, really. Let me show how it works:

  1. Install Power Tools. If you haven't already, install Power Tools from the Google Workspace Marketplace. The installation is completely free, and you'll have 30 days of the fully functional trial to try this and other tools out. Believe me, they're worth trying 😉 Install Power Tools extension from Google Workspace Marketplace.
  2. Select Remove empty rows option. Once installed, go to the following Google Sheets menu: Extensions > Power Tools > Quick actions > Remove blanks > Remove all empty rows: Remove all empty rows option in Google Sheets menu.

All blank rows will be deleted from your Google Sheets in a matter of seconds: All blank rows are removed from your Google Sheets table.

Benefits of the Remove Blanks tool from Power Tools

Here's why you should definitely check Remove Blanks from Power Tools:

  1. Automation. If not automation, how would you call it? You click one setting — it does the rest. No filters, no formulas, no scripts, no manual selections. As cheesy as it may sound, it does save time and effort allowing you to focus on what matters most.
  2. Comprehensive cleanup. Have you noticed those other options listed after Remove all empty cells? That's right: it can also remove empty columns, unused rows and unused columns!

    Tip. Unused rows and columns are those blanks that go after your data ends. Removing them helps maintain your spreadsheet within the limit of 10 million cells.

    It can even shift data to fill in the blank cells! I'll demonstrate it later in the article.

  3. Remove from all sheets. Need to clean up multiple sheets? No problem!
    • just run Power Tools
    • go to the Clear group
    • tick the box called Remove from all sheets along with all empty rows
    • click Run

    This will delete all blank rows from all tabs in your Google spreadsheet: How to delete all empty rows from all Google Sheets.

  4. Remove all possible blanks at once. With Remove Blanks, you can delete empty rows and columns from Google Sheets as well as unused rows and columns in one go. Just run Power Tools, go to the Clear group and select checkboxes for all blanks you want to go: Select all checkboxes and click Run to remove all possible blanks from Google Sheets.

    Tip. Unused rows and columns are those blanks that go after your data ends. Removing them helps maintain your spreadsheet within the limit of 10 million cells.

  5. Save favourite combinations and run in a click.

    Whatever combo of blanks you removed, Power Tools lets you save them from Recent tools to your Favorite tools for even quicker access: Add actions from Recent to Favorites to remove blanks in Google Sheets in a click.

All these pros make Power Tools an indispensable extension for Google Sheets when it comes to deleting empty rows and columns.

Google Workspace Marketplace badge

How to delete empty rows in Google Sheets using formulas

If you're up to a small challenge, Google Sheets offers a couple of functions that help remove blank rows: FILTER and QUERY. They return your data to another place ignoring empty rows from the original range.

Use Google Sheets FILTER to delete empty rows

The FILTER function will return a filtered version of your original range with the rows that meet specified criteria — no blanks.

Tip. We have a full guide on the FILTER function with its basics and nuances. While here, I'll focus specifically on removing blank rows.

 
Create a new sheet and put the following formula there:

=FILTER(Sheet1!A1:D20,Sheet1!A1:A20<>"",Sheet1!B1:B20<>"",Sheet1!C1:C20<>"",Sheet1!D1:D20<>"")

  • The formula takes my original table — Sheet1A1:D20
  • And takes only those rows where columns A, B, C and D are non-blanks (not equal to empty cells) — Sheet1!A1:A20<>"" and Sheet1!B1:B20<>"" etc.
Use Google Sheets FILTER function to delete empty cells.

Use Google Sheets QUERY to remove blank rows

Basically, the QUERY function does the same as FILTER. It's just another powerful function unique to Google Sheets. The formula will differ though since QUERY uses a special language similar to SQL. 

Tip. You will find the complete tutorial devoted to QUERY here.

Add a new sheet and enter the following QUERY formula:

=QUERY(Sheet1!A1:D20,"select * where A is not null AND B is not null AND C is not null AND D is not null",1)

  • again, just like FILTER, this formula takes my original data — Sheet1!A1:D20
  • and returns all columns — select *
  • where there are no blank rows — where A is not null AND B is not null AND C is not null AND D is not null
  • 1 is the number of header rows
Use Google Sheets QUERY function to return non-empty rows only.

All-in-all, formulas can display filtered data, but they don't actually remove blank rows. And if you've set up the formula correctly from the first try, it may require updates if your data changes. So I highly recommend the Remove Blanks from Power Tools described above for easier clean-ups. 

How to remove blank cells in Google Sheets

Removing blank cells in Google Sheets can be a bit more complex than removing entire rows.

Sure, you could always scan the range with your own eyes, select those blanks, right-click them and pick Delete cells and shift up/left: Delete cells and shift left or up.

But you'll have to do this with each group of neighbouring cells, one by one, hoping you don't miss anything.

Luckily, there's a better solution. The Power Tools collection offers a feature called Remove blanks & shift data.

Google Workspace Marketplace badge

It scans your selected range in Google Sheets, finds all blank cells and removes them all at once shifting values up or/and left.

You will find it right under the options to remove empty rows & columns in the Clear toolset: Special add-on that removes blank cells in Google Sheets.

You just tick the boxes and click Run. The add-on does the rest ensuring that your table remains organized: Have an organized clear table after using Power Tools.

Replace blank cells with zero in Google Sheets — all in one go

Sometimes you need to replace all blank cells with zeros in Google Sheets instead of deleting them. Otherwise those gaps will disrupt your calculations and you'll only waste time analysing all the data.

Well, here comes Power Tools again 🙂 It offers a powerful add-on called Fill Blank Cells. It replaces empty cells with zeros or any custom value in just a few clicks. Even from multiple selected ranges 😎

Google Workspace Marketplace badge

While Find and replace feature in Google Sheets can also be used to replace blank cells, this utility from Power Tools offers several advantages:

  1. Targeted replacement. Fill Blank Cells was specifically designed to target blank cells within a selected range. No more searches, no affected non-blanks.
  2. Flexibility. It lets you not just replace with a specified value, but also fill with neighboring records or even formulas.
  3. Easy to use. A single tool with as few manual steps as possible. You can even add it to your favorite actions and run in a click.

Here's how you replace blank cells with 0 using the tool:

  1. Select your data.
  2. Open Power Tools. Extensions > Power Tools > Start > Process group > Fill blank cells: Fill Blank Cells add-on in Power Tools.
  3. Set up the replacement. Select the option Fill with a custom value and enter 0: Google Sheets add-on to replace blanks with 0.
  4. Click Fill to apply the changes.
  5. How to remove blank cells in Google Sheets and replace them with 0.

    Tip. Feel free to look through this guide to see how other options work. Or install Power Tools and try it on your data right away.

    Google Workspace Marketplace badge

Video: how to delete empty rows in Google Sheets


Now you know several simple ways to delete empty rows & cells in Google Sheets. Whether you prefer manual work, filters, formulas or specialized tools, I invite you to try them all out and see which works best for you!

Practice spreadsheet

Remove blank rows and cells in Google Sheets (make yourself a copy)

You may also be interested in

Table of contents

Post a comment



Thank you for your comment!
When posting a question, please be very clear and concise. This will help us provide a quick and relevant solution to
your query. We cannot guarantee that we will answer every question, but we'll do our best :)