How to remove blank rows in Excel

In desktop Excel, use Go To Special to find the blanks and delete the rows. In Excel for the web and Google Sheets, filter to (Blanks), delete the rows, and clear the filter.

Step by step

Pen, Book, and Desk are split by empty rows. Delete those rows so the list has no gaps. First the quick way in desktop Excel. Excel for the web and Google Sheets get their own way after it.

Select A1:C6, empty rows included. A blank row here is a row of empty cells inside that range.

On Home, open Find and Select. The blanks command is inside that menu.

Choose Go To Special. In the dialog that opens, pick Blanks, the option this lesson uses.

OK selects every empty cell in the range. The gaps under Pen and under Book light up.

Open Delete. Clearing the cells would leave the empty rows in place.

Delete Rows removes each row that holds one of those blanks. Book and Desk move up under Pen. That is the desktop way.

Excel for the web and Google Sheets have no Go To Special. Here is the same list again, cleaned up with a filter instead.

Select A1:C6 again, header row included. The filter uses row 1 as its labels.

On the Data tab, click Filter. Each header now has a small dropdown arrow. In Google Sheets it is Create a filter under Data.

Open the arrow on Item. Pick a column that is filled in on every real row.

Uncheck Select All, then check only (Blanks). Pen, Book, and Desk drop out of the list.

Apply. Only the empty rows 3 and 5 stay on screen. The blue row numbers show the sheet is filtered.

Select the visible blank rows, 3 to 5. Row 4 is hidden, and Excel leaves hidden rows alone.

Right-click the selection, open Delete, and choose Rows. In Google Sheets it is Delete selected rows.

The two blank rows are gone. The filter still asks for blanks, so no data rows show.

Open the Item arrow again to bring the rows back.

Check Select All.

Apply. Pen, Book, and Desk return with no gaps between them.

What would you like to learn next?

All lessons