The fastest way to remove empty rows

Open your spreadsheet in Google Sheets and select all the data you want to clean up. Click the column header of the first column, then hold Shift and click the last column header to select everything. Now go to Data in the menu bar and click Delete empty rows. Google Sheets will scan your selection and remove every row with no data in any column.

This one-click method works best when your spreadsheet has a clear block of data with empty rows scattered throughout. If you have data in some columns but not others, Google Sheets will only delete rows that are completely blank across all selected columns.

The process takes a few seconds, and you cannot undo it with Ctrl+Z after closing the file, so make sure you want those rows gone before you click. If you are unsure, duplicate your sheet first by right-clicking the sheet tab at the bottom and selecting Duplicate.

Key Takeaways

  • Google Sheets has a built-in Delete empty rows feature under the Data menu that removes all blank rows from your selection at once.
  • You must select the data range first — click a column header, then Shift+click the last column to select everything you want to check.
  • A row is considered empty only if it has no data in any column within your selection, so partial blanks will not be deleted.
  • This action cannot be undone after you close the file, so duplicate your sheet first if you want to keep a backup.

Selecting the right range before you delete

The columns and rows you select matter. If you select only columns A through C, Google Sheets will only look for empty rows within those three columns — a row with data in column D will not be checked. This means you might leave behind rows you thought were empty.

To select your entire data range safely, click the column header of your first column (the letter at the top), then hold Shift and click the column header of your last column with data. This selects all rows in those columns. If you want to be extra careful, select from column A all the way to the last column your sheet contains, even if some columns are empty.

You can also click the box in the top-left corner where the row numbers and column letters meet to select the entire sheet at once. This tells Google Sheets to check every single cell, so no empty rows will be missed.

When the Delete empty rows option is grayed out

If the Delete empty rows option appears faded or grayed out in the Data menu, you have not selected a range yet. Click anywhere in your data first, then try again. Google Sheets needs to know what area to check before it can offer the delete option.

Another reason it might be grayed out is if you have selected only a single cell or a single row. The feature works on ranges of data, not individual cells. Make sure you have selected at least two columns and multiple rows before opening the Data menu.

If you are working in a shared spreadsheet and do not have edit permission, the option will also be unavailable. Ask the owner to give you editor access, or make a copy of the sheet that you can edit yourself.

Removing empty rows manually if you prefer control

If you want to delete empty rows one at a time instead of all at once, right-click the row number on the left side of the row you want to remove. A menu will appear with the option Delete row. Click it, and that single row disappears.

This method takes longer but gives you a chance to check each row before it is gone. Scroll through your sheet, find the empty rows, and delete them individually. You can undo each deletion with Ctrl+Z if you change your mind.

Manual deletion is useful when you have only a few empty rows scattered throughout a large sheet, or when you want to be absolutely certain before removing anything. For sheets with dozens of empty rows, the automatic method is much faster.

Hiding empty rows instead of deleting them

If you are not ready to delete empty rows permanently, you can hide them instead. Select the empty rows by clicking the row number on the left, then right-click and choose Hide rows. The rows stay in your file but do not appear on screen.

Hidden rows are useful when you might need that space later or when you are sharing the sheet with others and want to keep the data clean without losing anything. You can unhide rows at any time by selecting the rows around the hidden ones, right-clicking, and choosing Unhide rows.

The downside is that hidden rows still take up space in your file and can make the sheet confusing if you forget which rows are hidden. If you are certain you will not need the empty rows again, deletion is cleaner than hiding.

Preventing empty rows from appearing in the first place

Empty rows often appear when you delete data from a row but leave the row itself behind. Instead of deleting just the content, right-click the row number and select Delete row to remove the entire row. This keeps your sheet clean as you work.

If you copy and paste data from another source, check for extra blank rows before pasting. Some spreadsheets and data exports include empty rows at the end. You can delete these before pasting, or clean them up afterward using the automatic delete feature.

When you are building a new sheet, avoid leaving gaps between sections of data. If you need space for visual separation, use a single blank row instead of several. This makes it easier to spot and remove empty rows later if you need to.

What happens to formulas and references when you delete rows

If your sheet contains formulas that reference other cells, deleting rows will change those references. For example, if a formula in cell D5 refers to cell A10, and you delete row 8, the formula will now refer to cell A9 instead. Google Sheets updates these references automatically.

This can cause problems if your formulas depend on specific row numbers. Before deleting empty rows from a sheet with many formulas, check whether any formulas reference rows by their number rather than by a named range. If they do, consider using named ranges instead so your formulas stay accurate when rows are deleted.

If you are unsure how your formulas will be affected, duplicate the sheet first and test the deletion on the copy. This way you can see what changes before you delete rows from your original data.

Frequently Asked Questions

Will deleting empty rows affect my charts or graphs?

If your chart is set to update automatically when data changes, it will adjust when you delete empty rows. If the chart references specific cells that shift position after deletion, those references will update too. Test on a duplicate sheet first if you have important charts.

Can I delete empty rows from multiple sheets at once?

No, you must delete empty rows from one sheet at a time. Open each sheet tab, select your data range, and use the Data menu to delete empty rows. There is no feature to clean up multiple sheets in a single action.

What if some rows have spaces or invisible characters instead of being truly blank?

Google Sheets will not delete rows that contain spaces or hidden characters, even if they look empty. You may need to manually check these rows and clear them before using the automatic delete feature. Click the cell, press Delete to clear it, then try the delete empty rows feature again.

Does deleting empty rows change the row numbers of the remaining rows?

Yes, when you delete a row, all rows below it shift up and their row numbers change. This is why formulas that reference specific row numbers can break. If you use named ranges instead of row numbers in your formulas, they will continue to work correctly.

Can I undo a delete empty rows action?

You can undo it immediately with Ctrl+Z, but only before you close the file. Once you close and reopen the sheet, the undo history is gone and the deletion cannot be reversed. Always duplicate your sheet first if you are not completely sure.