How to Remove Blank Rows in Google Sheets: Delete Empty Rows With a Filter, Hide Them, or Copy the Data Without Them (2026)

Blank rows creep in when lists are pasted together, exported from other tools or edited by several people. They break up a table, and a row that only looks empty can hold a stray space that formulas still count. Google Sheets has no single “delete blank rows” command, but a helper column plus a filter does the job in a minute and keeps the rest of your rows in their original order. This guide shows how to find rows that are truly empty, delete them, hide them instead, copy the data without them, and clear the unused rows under your data.

The short answer

The example

A short contact list in A1:C12 with a header row. Rows 3, 5, 6 and 11 are completely empty. Row 9 looks empty but has a single space in column A. Rows 7 and 8 are missing one value each, so they are real records and must stay.

RowA: NameB: EmailC: CityWhat’s in it
2Ana Ruizana@example.comBostonhas data
3empty
4Ben Coleben@example.comDenverhas data
5empty
6empty
7Cara Diazcara@example.comno city: keep it
8dev@example.comAustinno name: keep it
9[one space]only a space in A: looks empty
10Eli Mosseli@example.comMiamihas data
11empty
12Fay Leefay@example.comTulsahas data

The goal: delete rows 3, 5, 6, 9 and 11, and keep the other six rows in the same order.

Step 1: find the rows that are really empty

The usual advice is to filter one column for blanks. On this list that goes wrong: filtering Name for blanks also catches row 8, which has an email and a city. Check the whole row instead. Put a header such as Blank? in D1, then enter this in D2 and fill it down to D12:

=LEN(TRIM(CONCATENATE(A2:C2)))=0

Read it from the inside out. CONCATENATE joins the row’s cells into one piece of text (given a range, it appends the cells across the row). TRIM removes leading, trailing and repeated spaces, so a cell holding only a space becomes nothing. LEN counts the characters that are left. If the count is 0, the row is blank.

RowD: Blank?For comparison: =COUNTA(A2:C2)
2FALSE3
3TRUE0
4FALSE3
5TRUE0
6TRUE0
7FALSE2
8FALSE2
9TRUE1
10FALSE3
11TRUE0
12FALSE3

TRUE appears in rows 3, 5, 6, 9 and 11. The COUNTA column shows why you can’t just count filled cells: row 9 returns 1, because Google’s COUNTA help page says it counts text values “including zero-length strings and whitespace”. ISBLANK has the same blind spot: it returns FALSE if the cell has any content, including spaces, the empty string ("") and hidden characters, so =ISBLANK(A9) is FALSE.

To see how many blank rows there are before you delete anything:

=COUNTIF(D2:D12, TRUE)

It returns 5.

Wider tables

Change the range to the columns of your table, for example =LEN(TRIM(CONCATENATE(A2:H2)))=0 for columns A to H. Make sure the helper column sits outside that range.

Step 2: delete the blank rows with a filter

This keeps every other row where it was. It changes the sheet, so if you want a safety net, duplicate the tab first (right-click the tab › Duplicate).

  1. Select the whole table including the helper column, A1:D12, and choose Data › Create a filter (Google’s sort and filter help page).
  2. Click the filter icon in D1. Under Filter by values, untick FALSE so that only TRUE is ticked, and click OK. Only rows 3, 5, 6, 9 and 11 are now visible. Google notes that, once filtered, the bottom right shows how many rows are displayed out of the total.
  3. Click the row number of the first visible row (3), then hold Shift and click the row number of the last visible row (11).
  4. Right-click one of the selected row numbers and choose Delete selected rows. Only the rows the filter shows are deleted; the hidden rows 4, 7, 8, 10 and 12 stay.
  5. Choose Data › Remove filter. Check the result, then delete column D.

The list now looks like this, in the original order:

RowA: NameB: EmailC: City
2Ana Ruizana@example.comBoston
3Ben Coleben@example.comDenver
4Cara Diazcara@example.com
5dev@example.comAustin
6Eli Mosseli@example.comMiami
7Fay Leefay@example.comTulsa

If something went wrong, press Ctrl+Z (⌘+Z on a Mac) to undo.

Hide blank rows instead of deleting them

If you only want the gaps out of the way, repeat Step 2 up to the filter, but tick only FALSE. The blank rows are hidden and nothing is deleted; Data › Remove filter brings them back. A filter is visible to everyone who has access to the spreadsheet, and anyone who can edit it can change the filter. To hide the rows only for yourself, use Data › Create filter view instead: Google’s help says a filter view applies only to your view of the spreadsheet.

Copy the data without blank rows using FILTER

To leave the original untouched and build a clean copy, use FILTER on an empty tab or in an empty area to the right. It returns only the rows that meet a condition, so give it “this row isn’t empty”:

=FILTER(A2:C12, LEN(TRIM(A2:A12&B2:B12&C2:C12))>0)

On the example it returns six rows: Ana Ruiz, Ben Cole, Cara Diaz, the row with only dev@example.com and Austin, Eli Moss and Fay Lee, in that order. It joins columns A to C row by row, trims the spaces and keeps rows whose length is above zero, so row 9 (a single space) is left out. If you already have the helper column from Step 1, this shorter version does the same:

=FILTER(A2:C12, D2:D12=FALSE)

To include rows you add later, use open-ended ranges:

=FILTER(A2:C, LEN(TRIM(A2:A&B2:B&C2:C))>0)

The copy is a live formula that updates when the source changes. To keep it as plain data, copy it and use Edit › Paste special › Values only.

Why not just A2:A12<>""?

You will often see =FILTER(A2:C12, A2:A12<>""). It keeps rows where column A isn’t empty, which on this list drops row 8 (a real contact with no name) and keeps row 9 (a single space is not equal to an empty string). Test the whole row, as above, unless one column is truly required.

Delete the unused rows below your data

A new sheet starts with many empty rows under your table. To remove them, click the row number of the first empty row under your data (row 8 in the cleaned example), scroll to the bottom, hold Shift and click the last row number, then right-click and choose the Delete rows option (Sheets shows the row numbers in the label). Google’s keyboard shortcuts page also lists Ctrl+Alt+- (⌘+Option+- on a Mac) to delete selected rows. You can add rows again later from the bottom of the sheet, where Google’s rows and columns help page shows a box to add more rows.

Cells that only look empty

Common problems

FAQ

How do I delete blank rows in Google Sheets?

Add a helper column with =LEN(TRIM(CONCATENATE(A2:C2)))=0 (adjust A2:C2 to your columns) and fill it down. Select the table, choose Data › Create a filter, filter the helper column to show only TRUE, select the visible rows, right-click and choose Delete selected rows, then choose Data › Remove filter. Your other rows stay in their original order.

How do I remove blank rows without deleting anything?

Copy the data without them: =FILTER(A2:C12, LEN(TRIM(A2:A12&B2:B12&C2:C12))>0) returns every row that has something in column A, B or C, in the original order, and updates when the source changes. To only hide the blank rows, filter the helper column to show FALSE instead of TRUE.

Why does a row look empty but isn’t treated as blank?

It probably holds a space, an empty string from a formula, or a non-breaking space. Google’s ISBLANK help says ISBLANK returns FALSE for spaces, the empty string and hidden characters, and COUNTA counts zero-length strings and whitespace. The helper formula in this guide trims spaces first, so a space-only row counts as blank; for non-breaking spaces use =LEN(TRIM(SUBSTITUTE(CONCATENATE(A2:C2), CHAR(160), "")))=0.

How do I delete blank rows only if the whole row is empty?

Check every column of the row, not just one. =LEN(TRIM(CONCATENATE(A2:C2)))=0 joins the row’s cells, trims spaces and tests for length zero, so it returns TRUE only when every cell from A to C is empty. Filtering one column for blanks would also catch rows where only that column is missing.

How do I delete the empty rows at the bottom of a sheet?

Click the row number of the first empty row under your data, scroll down and Shift+click the last row number, then right-click and choose the Delete rows option. Google’s shortcut list also gives Ctrl+Alt+- (⌘+Option+- on a Mac) to delete rows that are selected.

Duplicate rows as well as blank ones? SheetDupes (disclosure: we make it) is a Google Sheets add-on for duplicate rows and messy contact data. It previews and highlights duplicate rows before anything is changed, and copies a backup tab before it removes or merges rows. It only reads and writes the spreadsheet you have open, and your data is not sent to Loomwise.
Install from Google Workspace MarketplaceSee SheetDupes

Related guides