PDF download Download Article
Expert tips for deleting empty rows in Excel (or Google Sheets)
PDF download Download Article

If you use Excel often, you may run into an issue where you've got a sheet with blank rows in it. While this may not seem like a problem, blank rows can interfere with formulas and other Excel functions, and it just leaves your data looking messy. Thankfully, deleting blank rows in Excel is pretty simple (and the methods work on Google Sheets, too). In this article we'll teach you how to delete blank rows manually, as well as how to utilize filters to delete blank rows.

Things You Should Know

  • Highlight the blank rows in your document, right click (Windows) or Ctrl-click (Mac), and select "Delete rows" to delete blank rows manually.
  • You can use the =COUNTA formula to help you find and filter blank rows so they can easily be deleted.
  • Manual deletion works well for small sheets and is too time-consuming for big sheets, but the filter method works for spreadsheets of all sizes.
Method 1
Method 1 of 2:

Using a Filter

PDF download Download Article
  1. If you have a large Excel sheet, you can use a filter to easily display all of the blank rows without having to scroll. Note that this method will work on Excel sheets with any amount of data, but is especially convenient for large and complicated sheets.
    • This method will also work on Google Sheets, but instead of a Data tab you'll want to use the Data menu item at the top of the screen.
  2. For most sheets, it is most convenient to make this column the rightmost column, but you can also add a new column to the left of the first column if you prefer. However, you should not add the column in the middle of your data.
    Advertisement
  3. You don't have to worry about formatting this column as it will be deleted later.
  4. In this cell enter the formula =COUNTA(XX:YY). In this formula, XX should be the first cell in the row and YY should be the last.
    • For example, if your row starts at B2 and ends at K2, you'd write =COUNTA(B2:K2).
  5. This will copy the formula to each cell and replace the row numbers in the formula with the appropriate ones for that row. Drag down to the bottom of your sheet.
  6. On Google Sheets you'll want to click the Data dropdown menu item.
  7. On Google Sheets you'll want to click Create a filter. This will add filters to the headers on your sheet.[1]
    • If your sheet already has column filters, you can skip this step.
  8. A menu will appear with various sorting options.
  9. On Google Sheets you can click the option that says "Clear" to clear all of the filter criteria.
  10. Blank rows will have a value of "0" in the "Blanks" column, so by selecting "0", you're asking the sheet to only show you rows that fit that criteria (i.e. rows that are fully blank).
  11. You can click the row number of the first blank row and drag down to the row number of the last blank row, or you can click the first blank row, hold down the Shift key, and click on the last blank row.
  12. On a Mac, Ctrl-click on any one of the selected rows to pull up the contextual menu, and then you can select Delete rows.
  13. Remove the filter by pressing the Filter button again. You can do this in Google Sheets by clicking the Data dropdown and selecting Remove filter.
  14. Simply right click the highlighted column (or Ctrl-click on Mac) and select Delete column.
  15. Advertisement
Method 2
Method 2 of 2:

Deleting Blank Rows Manually

PDF download Download Article
  1. If you have a small spreadsheet in Excel, you can manually select empty rows and delete them. If your spreadsheet is very large, you may want to consider Using a Filter.
  2. If you click the column number all the way on the left-hand side of the page, it will highlight the entire row. Alternatively, you can click and drag your cursor over the empty cells to select them.[2]
    • If you need to select multiple rows that are adjacent to one another, hold down the Shift key and click the first and then the last row number. All of the rows in between those rows will be selected. Release the Shift key once you're done. Alternatively, you can click and drag from the first blank row to the last blank row in a sequence to select them.
    • If you need to select multiple rows that are not adjacent to one another, hold down the Ctrl key on Windows or the Cmd key on Mac and click each row number. Release the Ctrl/ Cmd key once you're done.
  3. On a Mac, Ctrl-click on any one of the selected rows to pull up the contextual menu, and then you can select Delete rows.[3]
  4. Advertisement

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Tips

  • Avoid using Excel's "Go To" feature to find blank cells. This method will highlight all blank cells, even ones in rows with other data, and if you opt to delete those rows you may lose data.
Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Advertisement

You Might Also Like

Insert Rows in Excel Add or Delete Rows in Microsoft Excel: 4 Simple Ways
Create a Filter View on Google SheetsCreate a Filter View on Google Sheets
Make a Spreadsheet in ExcelMake a Spreadsheet in Excel
Delete Rows on Google Sheets on Android5 Simple Steps to Delete Rows on Google Sheets on Android
Clear Filters in Excel2 Simple Ways to Clear Filters in Microsoft Excel
Hide Rows in ExcelHide Rows in Excel
Use AutoFilter in MS ExcelEasy AutoFilter Basics for Beginners
Unhide All Rows and Columns in Microsoft Excel
Use Google Spreadsheets Use Google Sheets: The Ultimate Guide for Getting Started
Remove Spaces Between Characters and Numbers in Excel3 Ways to Remove Leading, Trailing, & Extra Spaces in Excel
Find Duplicates in ExcelFind Duplicates in Excel
Remove Leading or Trailing Zeros in ExcelRemove Leading or Trailing Zeros in Excel
Make Tables Using Microsoft ExcelSimple Steps to Make Tables in Excel
Edit Data in Microsoft Excel3 Simple Ways to Edit Data in MS Excel
Advertisement

About This Article

Hannah Dillon
Written by:
wikiHow Technology Writer
This article was co-authored by wikiHow staff writer, Hannah Dillon. Hannah Dillon is a Technology Writer and Editor at wikiHow. She graduated with a B.A. in Journalism from North Dakota State University in 2013 and has since worked in the video game industry as well as a few newspapers. From a young age Hannah has cultivated a love for writing and technology, and hopes to use these passions in tandem to help others in the articles she writes for wikiHow. This article has been viewed 3,990 times.
How helpful is this?
Co-authors: 3
Updated: October 13, 2023
Views: 3,990
Categories: Google Docs
Thanks to all authors for creating a page that has been read 3,990 times.

Is this article up to date?

Advertisement