How To Delete All Empty Rows And Columns In Google Sheets

Google Sheets is similar to Microsoft Excel and many of Excel’s features are replicated or mirrored inside Sheets, making it easy to make the switch from Microsoft’s productivity suite to Google’s own offerings. Users with basic spreadsheets (those without custom macros or design elements) can in fact just directly import their Excel files into Sheets without any problems or glitches.

How To Delete All Empty Rows And Columns In Google Sheets

One problem that spreadsheet users have had is that in the process of importing and collating data from multiple sources (one of the many tasks that spreadsheets are great at), it is not at all uncommon for random empty cells, rows, and columns to appear inside the document. Although this problem is manageable in smaller sheets, where you can just delete the rows manually, it’s a huge problem when it crops up in larger documents.

However, removing these blank spaces is quick and easy if you know the proper steps. In this article, we’ll show you how to remove all the empty rows and columns in your Google Sheets document using an auto-filter.

Deleting Empty Rows and Columns in Google Sheets using the Keyboard Shortcut

If you’re trying to delete all of the empty rows below your content, you can.

  1. To get rid of all the empty columns simply click on the row you’d like to start with and use the following keyboard command:
    • On a Mac press Command + Shift + Down Arrow.
    • On Windows press Control + Shift + Down Arrow.
  2. Once you’ve done this, you’ll notice the entire sheet is highlighted. Right-click and select the option to delete all rows. Your finished product will look like this:

How To Delete All Empty Rows And Columns In Google Sheets

You can do the same for all the columns to the right of your data as well. Using the same commands as above, use the Right Arrow, highlight all columns, right-click, and delete. This leaves a much cleaner looking datasheet.

Deleting Empty Rows and Columns using the Auto-Filter

Put simply; an auto-filter takes the values inside your Excel columns and turns them into specific filters based on the contents of each cell—or in this case, the lack thereof.

Though originally introduced in Excel 97, auto-filters (and filters in general) have become a massive part of spreadsheet programs, despite the small minority of users who know about and use them.

Setting Up an Autofilter

The auto-filter function can be used for a number of different sorting methods. In fact, they’re powerful enough to sort and push all of the empty cells to the bottom or top of your spreadsheet.

  1. Start by opening up the spreadsheet that contains empty rows and columns you want to remove from your document. How To Delete All Empty Rows And Columns In Google Sheets
  2. Once the document has opened, add a new row at the very top of your spreadsheet. In the first cell (A1), type whatever name you’d like to use for your filter. This will be the header cell for the filter we’re about to create. How To Delete All Empty Rows And Columns In Google Sheets
  3. After creating the new row, find the Filter icon in the command row inside Google Sheets. It’s pictured below; its general appearance is similar to an upside-down triangle with a line running out the bottom, like a martini glass. How To Delete All Empty Rows And Columns In Google Sheets
  4. Clicking this button will create a filter, which will by default highlight a few of your cells in green on the left side of the panel. How To Delete All Empty Rows And Columns In Google Sheets
  5. Because we want this filter to extend to the entirety of our document, click the small drop-down menu next to the filter icon. Here, you’ll see several options for changing your filters. At the top of the list, select Create new filter view. How To Delete All Empty Rows And Columns In Google Sheets
  6. Your Google Sheets panel will extend and turn a dark grey color, along with an entry point for you to insert the parameters of your filter. It’s not critical that you include every single column, but ensure that you’ve included every row and column in your document that contains blank spaces.

To be safe, you can just have the filter cover the entirety of your document. To input this into your document, type something like A1:G45, where A1 is the starting cell and G45 is the ending cell. Every cell in between will be selected in your new filter.

Using the Autofilter to Move Blank Cells

This next bit may seem a bit odd because it will be moving and reorganizing your data in a way that seems counterintuitive at best and destructive at worst.

  1. Once your filter has been selected, click the green triple-line icon in the A1 column of your spreadsheet where you set a title earlier. How To Delete All Empty Rows And Columns In Google Sheets
  2. Select Sort A-Z from this menu. You’ll see the data move into alphabetical order, beginning with numbers and followed by letters, also, the blank spaces will be pushed to the bottom of your spreadsheet. How To Delete All Empty Rows And Columns In Google Sheets
  3. Continue to resort your spreadsheet column by column until your blank cells have moved to the bottom of the display and you have one solid block of data displayed at the top of Google Sheets.

This will likely make your data a confusing, unreadable mess—don’t worry, this will all work out in the end.

Deleting Your Blank Cells

Once your blank cells have been moved to the bottom of your spreadsheet, deleting them is as simple as deleting any other cell.

  1. Use your mouse to highlight and select the blank cells on your spreadsheet that have been moved to the bottom of the document. Do this by clicking and holding the left mouse button and drag the cursor over the blank cells. How To Delete All Empty Rows And Columns In Google Sheets
    • Depending on the number of blank cells and the working area of your spreadsheet, you might want to zoom out of your display a bit to see more of the surrounding area (most browsers, including Chrome, allow you to zoom by using Ctrl/Cmd and the + and – buttons; you can also hold down Ctrl/Cmd and use the scroll wheel on your mouse or touchpad).
  2. Once highlighted, simply right-click to delete the blank cells.

Reorganizing Your Spreadsheet

Now that you’ve removed the offending blank cells, you can reorganize your spreadsheet back to normal order. While clicking on that same triple-lined menu button from earlier inside the filter will only allow you to organize in alphabetical or reverse alphabetical order. There is another sort option: turning your auto-filter off.

  1. To do this, click the triangle menu button next to the auto-filter icon inside Sheets. How To Delete All Empty Rows And Columns In Google Sheets
  2. Inside this menu, you’ll see an option for your filter (called Filter 1, or whatever number filter you’ve made), as well as an option for None. To turn off the filter you applied earlier, simply select None from this menu. How To Delete All Empty Rows And Columns In Google Sheets

Your spreadsheet will return to normal like magic but without the blank cells, you deleted earlier.

With the cells deleted, you can resume reorganizing and adding data back into your spreadsheet. If, for whatever reason, this method causes your data to fall out-of-order, reversing it is as simple as diving into your documents’ history and reverting to an earlier copy.

You can also use the copy and paste function to move your data around easily, without having to deal with hundreds of blank cells blocking your path. This isn’t a perfect solution but it does work to push your data above the mass of blank cells in your document. And at the end of the day, it’s a lot easier than mass-deleting rows one by one.

Sign up and earn $1000 a day ⋙

Driver Booster 12 Free: Keep 9.5M+ Drivers Up-to-Date in 1-Click

Driver Booster 12 Free: Keep 9.5M+ Drivers Up-to-Date in 1-Click

Driver Booster 12 Free is an effective tool that will keep your computers drivers up to date, which will make the system run faster and more reliably. This driver updater from IObit keeps your PC running at its best by checking for lost, out-of-date, or broken drivers immediately.

Advanced SystemCare 17 Free Review 2024 - Your Best PC Optimizer

Advanced SystemCare 17 Free Review 2024 - Your Best PC Optimizer

In an era where digital efficiency is paramount, Advanced SystemCare 17 Free emerges as a beacon for those seeking to enhance their PC's performance.

Summary of Movies & TV application shortcuts on Windows 10

Summary of Movies & TV application shortcuts on Windows 10

Summary of Movies & TV application shortcuts on Windows 10, Summary of Movies & TV application shortcuts on Windows 10 to bring you a great experience. Maybe

How to fix Messages Failed to Load error on Discord for Windows

How to fix Messages Failed to Load error on Discord for Windows

How to fix Messages Failed to Load error on Discord for Windows, Discord isn't fun if you can't read what other people write. Here's how to fix Messages error

How to display the This PC icon on the Windows 11 desktop

How to display the This PC icon on the Windows 11 desktop

How to display the This PC icon on the Windows 11 desktop, During the process of using Windows 11, many users need to access This PC (management).

How to find information in the Windows Registry quickly

How to find information in the Windows Registry quickly

How to find information in the Windows Registry quickly, Do you find it difficult to find information in the Windows Registry? So below are quick ways to find the registry

How to limit the number of failed login attempts on Windows 10

How to limit the number of failed login attempts on Windows 10

How to limit the number of failed login attempts on Windows 10. Limiting the number of failed password login attempts on Windows 10 helps increase computer security. Here's how

How to create fake error messages in Windows

How to create fake error messages in Windows

How to create fake error messages in Windows, Windows can come up with some pretty creative error messages but why don't you try creating your own content for them to make fun of?

Ways to open Windows Tools in Windows 11

Ways to open Windows Tools in Windows 11

Ways to open Windows Tools in Windows 11, Windows Administrative Tools or Windows Tools are still useful on Windows 11. Here's how to find Windows Tools in Windows 11.

How to fix Windows Quick Assist not working error

How to fix Windows Quick Assist not working error

How to fix Windows Quick Assist not working error, Windows Quick Assist helps you connect to a remote PC easily. However, sometimes it also generates errors. But,

How to pin Word, Excel and PowerPoint files to the corresponding app icon on the Windows 11 taskbar

How to pin Word, Excel and PowerPoint files to the corresponding app icon on the Windows 11 taskbar

How to pin Word, Excel and PowerPoint files to the corresponding app icon on the Windows 11 taskbar, How to pin Office files to the taskbar icon on Windows 11? Invite

How to fix the error of not being able to install software on Windows

How to fix the error of not being able to install software on Windows

How to fix the error of not being able to install software on Windows, Why can't you install apps or software on Windows 10/11? Here's everything you need to know about how to fix it

Instructions for deleting or changing PIN on Windows 11

Instructions for deleting or changing PIN on Windows 11

Instructions for deleting or changing the PIN code on Windows 11, In Windows 11, the PIN code is a very useful and convenient security tool for users. However some people

How to fix There Are Currently No Power Options Available error in Windows 10

How to fix There Are Currently No Power Options Available error in Windows 10

How to fix There Are Currently No Power Options Available error in Windows 10, Can't select power mode in Windows 10, what should I do? Here's how to fix the error

The simplest way to fix Photos application errors on Windows 10

The simplest way to fix Photos application errors on Windows 10

The simplest way to fix Photos app errors on Windows 10, what should I do if Microsoft Photos doesn't work? Don't worry about ways to fix Photos app errors on Windows

Instructions for installing keyboard shortcuts to switch input languages ​​on Windows 11

Instructions for installing keyboard shortcuts to switch input languages ​​on Windows 11

Instructions for installing shortcuts to switch input languages ​​on Windows 11. During the process of using Windows, users will often have to switch between methods.

How to check supported power status on Windows 11

How to check supported power status on Windows 11

How to check power status is supported on Windows 11, Windows 11 can handle many different power states. Here's how to check the power status

How to switch from 2.4GHz to 5GHz in Windows 10

How to switch from 2.4GHz to 5GHz in Windows 10

How to switch from 2.4GHz to 5GHz in Windows 10, If you want to find a quick and simple way to speed up the Internet, changing the WiFi band from 2.4GHz to 5GHz may help.

How to fix Not Enough Memory to Run Microsoft Excel error on Windows

How to fix Not Enough Memory to Run Microsoft Excel error on Windows

How to fix Not Enough Memory to Run Microsoft Excel error on Windows, Are you having an error of not enough memory to run Microsoft Excel? So, how to fix Not Enough Memory error

Ways to find all video files on Windows

Ways to find all video files on Windows

Ways to find all video files on Windows, Can't find recorded and saved videos on PC. Below are ways to help you find all clips on Windows.