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
- Flag empty rows: in a spare column,
=LEN(TRIM(CONCATENATE(A2:C2)))=0, filled down (change A2:C2 to the columns of your table). TRUE = nothing in the row but, at most, spaces. - Delete them: select the table, Data › Create a filter, filter the helper column to TRUE only, select the visible rows, right-click › Delete selected rows, then Data › Remove filter.
- Hide them instead: filter the helper column to FALSE only.
- Copy the data without them:
=FILTER(A2:C12, LEN(TRIM(A2:A12&B2:B12&C2:C12))>0)
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.
| Row | A: Name | B: Email | C: City | What’s in it |
|---|---|---|---|---|
| 2 | Ana Ruiz | ana@example.com | Boston | has data |
| 3 | empty | |||
| 4 | Ben Cole | ben@example.com | Denver | has data |
| 5 | empty | |||
| 6 | empty | |||
| 7 | Cara Diaz | cara@example.com | no city: keep it | |
| 8 | dev@example.com | Austin | no name: keep it | |
| 9 | [one space] | only a space in A: looks empty | ||
| 10 | Eli Moss | eli@example.com | Miami | has data |
| 11 | empty | |||
| 12 | Fay Lee | fay@example.com | Tulsa | has 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.
| Row | D: Blank? | For comparison: =COUNTA(A2:C2) |
|---|---|---|
| 2 | FALSE | 3 |
| 3 | TRUE | 0 |
| 4 | FALSE | 3 |
| 5 | TRUE | 0 |
| 6 | TRUE | 0 |
| 7 | FALSE | 2 |
| 8 | FALSE | 2 |
| 9 | TRUE | 1 |
| 10 | FALSE | 3 |
| 11 | TRUE | 0 |
| 12 | FALSE | 3 |
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).
- Select the whole table including the helper column, A1:D12, and choose Data › Create a filter (Google’s sort and filter help page).
- 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.
- Click the row number of the first visible row (3), then hold Shift and click the row number of the last visible row (11).
- 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.
- Choose Data › Remove filter. Check the result, then delete column D.
The list now looks like this, in the original order:
| Row | A: Name | B: Email | C: City |
|---|---|---|---|
| 2 | Ana Ruiz | ana@example.com | Boston |
| 3 | Ben Cole | ben@example.com | Denver |
| 4 | Cara Diaz | cara@example.com | |
| 5 | dev@example.com | Austin | |
| 6 | Eli Moss | eli@example.com | Miami |
| 7 | Fay Lee | fay@example.com | Tulsa |
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
- Spaces. Handled: TRIM removes them before the length check, so a space-only row counts as blank.
- Formulas that return an empty string. A formula such as
=IF(C2="", "", UPPER(C2))shows nothing when C2 is empty; LEN of that result is 0, so the helper treats it as blank. Deleting such a row deletes the formula too. - Non-breaking spaces. Text pasted from web pages can contain a non-breaking space (character 160). Google’s TRIM help says non-breaking spaces will not be trimmed, so a row holding one is not flagged. Remove them first with SUBSTITUTE:
=LEN(TRIM(SUBSTITUTE(CONCATENATE(A2:C2), CHAR(160), "")))=0. See removing extra spaces for more.
Common problems
- “Create a filter” is greyed out. Google’s help lists merged cells, hidden rows or columns, conditional formatting and data validation rules as possible causes, and suggests trying a copy of the sheet.
- A row with data was deleted. You probably filtered one data column for blanks rather than the helper column. Undo with Ctrl+Z and filter on the helper column, which checks the whole row.
- A blank-looking row wasn’t flagged. It likely holds a non-breaking space or another hidden character; use the SUBSTITUTE version of the helper above.
- FILTER shows #N/A. Google’s FILTER help says #N/A is returned when no rows meet the conditions, for example when every row in the range is blank.
- Removing duplicates next? Delete blank rows first, then see duplicates that ignore blank cells and find and remove duplicates.
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.
Install from Google Workspace MarketplaceSee SheetDupes
Related guides
- How to Find Duplicates in Google Sheets but Ignore Blank Cells: Highlight, Count, List and Remove Without Empty Rows Getting in the Way (2026)
- How to Remove Extra Spaces in Google Sheets: Leading, Trailing and Double Spaces, Non-Breaking Spaces, Line Breaks and Why TRIM Isn’t Working (2026)
- How to Find and Remove Duplicates in Google Sheets: Highlight, Count, Delete and Keep the Original (2026)
- How to Show Only the Duplicates in Google Sheets: Filter Duplicate Rows, List Repeated Values and Find Rows That Appear Once (2026)
- UNIQUE vs Remove Duplicates in Google Sheets: Live or Static, Letter Case, Spaces, Columns and Headers (2026)
- How to Change Text Case in Google Sheets: UPPERCASE, lowercase, Proper Case Names, Sentence Case and Duplicates That Differ Only in Case (2026)
- How to Check if Email Addresses Are Valid in Google Sheets: ISEMAIL, Clean Up Spaces and Capitals, Flag Bad Emails and Find Duplicates (2026)