How to Remove Empty Rows in Excel (11 Easy Ways)

Download Practice Workbook


Method 1 – Using Context Menu to Remove Empty Rows

  • Select the empty row by left-clicking on the mouse in the row number.
  • Hold the CTRL key and select the row number to select multiple rows.

Using Context Menu to Remove Empty Rows

  • Right-click and select Delete from the context menu.

Clicking Delete Option

It will delete the selected empty rows.

Final Output After Using Context Menu to Remove Empty Rows

Read More: How to Delete Empty Rows at Bottom in Excel (7 Ways)


Method 2 – Using Keyboard Shortcut

  • Before removing the empty rows, select the empty row by left clicking on the mouse in the row number.
  • Hold the CTRL key and select other empty rows.

Using Keyboard Shortcut to Remove Empty Rows

  • Hold the CTRL key and press minus(-)

Pressing Ctrl and -

It will delete the selected empty rows.

Output After Using Keyboard Shortcut to Remove Empty Rows

Read More: How to Use VBA to Delete Empty Rows in Excel


Method 3 – Using Ribbon Command

  • To remove an empty row using ribbon, select the empty row or rows. We have selected row 5.
  • Open the Home tab >> from Delete group >> select Delete Sheet Rows

Using Ribbon Command to Remove Empty Rows

It will remove the empty row.

Output After Using Ribbon Command to Remove Empty Rows

If you want to select multiple rows then you can use the CTRL key.
Hold the CTRL key and select the row number. Follow the procedure shown in Method 1.

Read More: Delete Row If Cell is Blank in Excel (4 Methods)


Method 4 – Using Go To Special Feature

  • Select the rows to apply Go To Special. We have selected the range B3:B17.
  • Open the Home tab >> from Editing group >> go to Find & Select >> select Go To Special

Using Go To Special Feature to Remove Empty Rows

A dialog box will pop up.

  • Select the Blanks option and click OK.

Selecting Blanks on Go To Special Window

All the empty rows will be selected.

Selecting Empty Rows

Right-click and select Delete from the context menu .

Hitting Delete ButtonA dialog box will pop up.

  • From Delete select the option Entire Row and click OK.

Delete Options

All the selected empty rows will be removed.

Output After Using Go To Special Feature to Remove Empty Rows

Read More: How to Delete Rows in Excel: 7 Methods


Method 5 – Using Find Feature

  • Select the range to apply Find. We have selected the range B3:B17.
  • Open the Home tab >> from Editing group >> go to Find & Select >> select Find

Using Find Feature to Remove Empty Rows

  • In the Find dialog box, select Sheet in Within and in Search select By Rows and in Look in select Values.
  • Checkmark on the Match entire cell contents and click on Find Next.

Find and Replace Window

  • Press ALT + A to select all the found values in the dialog box.

All the empty rows will be selected.

  • Right-click and select Delete from the context menu.

Click on Delete to Apply Find Feature to Remove Empty Rows

  • In the Delete pop-up, select the option Entire Row and click OK.

Delete Options in Find Feature to Remove Empty Rows

All the selected empty rows will be removed.

Output After Using Find to Remove Empty Rows in Excel

Read More: How to Filter Data and Delete Rows with Excel VBA (5 Examples)


Method 6 – Using Filter to Remove Empty Rows

  • Select the range to apply Filter. We have selected the range B3:B17.
  • Open the Data tab >> select Filter

Using Filter to Remove Empty Rows

A Filter will be applied.

Result After Filter is Applied

  • Select a column header and right-click.
  • In the Filter Options, Deselect all the values except Blanks.
  • Click OK.

Using Blank Filter to Remove Empty Rows

All the empty rows will be sorted.

  • Right-click and select Delete Row from the context menu.

Deleting the Blank Rows

Click OK to Delete entire sheet row.

Confirm to Remove Empty Rows

All sorted empty rows will be removed.

Empty Rows Removed

You can get the non-empty rows back by left-clicking on the mouse on the empty rows number

Output After Using Filter to Remove Empty Rows


An Alternate Way

  • Select the range to apply Filter. We have selected the range B3:B17.
  • Open the Data tab >> select Filter

Alternate Way of Using Filter to Remove Empty Rows

  • Select a column header and right click on the mouse to see the Filter Options.
  • Select all the values except Blanks and click OK.

Applying Blank Filter to Remove Empty Rows

It will filter out the empty rows.

Final Output

Read More: How to Filter and Delete Rows with VBA in Excel (2 Methods)


Similar Readings:


Method 7 – Using Advanced Filter to Remove Empty Rows

  • Select any cell and enter the following formula.
=D4<>""

Using Advanced Filter to Remove Empty Rows in Excel

  • Select the range to apply Advanced Filter. We have selected the range B3:B17.
  • Open the Data tab >> select Advanced Filter

Opening Advanced Filter

A dialog box will pop up.

➤ Select copy to another location in Action
➤ Select the List range. It automatically selected the range B4:B17, since we applied Advanced Filter selecting this range.
➤Select the Criteria range. We have selected the range F3:F4.
➤In copy to, enter the location. We have used H4

Advanced Filter Options

  • Click OK.

All the non-empty rows are copied to another location where empty rows are removed.

Output After Using Advanced Filter to Remove Empty Rows

Read More: How to Delete Selected Rows with Excel VBA (A Step-by-Step Guideline)


Method 8 – Using FILTER Function 

  • Select any cell to place the resultant value. We have selected the F4 cell.
  • Enter the following formula.
=FILTER(B4:D17, B4:B17<>"")

Using FILTER Function to Remove Empty Rows

  • Press ENTER.

It will filter all the non-empty values.

Output of FILTER Function

Read More: How to Delete Blank Rows in Excel?


Method 9 – Using Sorting to Remove Empty Rows

  • Select the rows you want to Sort. We have selected the range B3:D17.
  • Open the Data tab >> select A to Z Sort

Using Sorting to Remove Empty Rows

All the rows will be sorted from A to Z so that the empty rows will be at the bottom.

  • Right click and select Delete.

Deleting Sorted Empty RowsA dialog box will pop up.

  • Select the Entire Row option and click OK.

Delete Options

All the selected empty rows will be removed.

Output of Sorting Method

Read More: How to Use Macro to Delete Rows Based on Criteria in Excel (3 Ways)


Method 10 – Using Power Query to Remove Empty Rows

  • To use the power query, first select the cell range. We have selected the cell range B4:D17.
  • Open the Data tab >> select From Table/Range

Using Power Query to Remove Empty Rows

  • In the pop-up dialog box, check My table has headers and click OK.

Selecting Table

A new window will pop up.

Power Query Window

  • Select the cell range to remove the empty rows.
  • Open the Home tab >> from Remove Rows >> select Remove Blank rows

Remove Blank Rows From Power Query

All the empty rows will be removed.

Result of Removing Blank Rows

  • To keep your changes, select Keep from the dialog box.

Confirming Power Query Editor to Remove Empty RowsYou will find it from the power query to your working sheet.

Power Query Output


Method 11 – Removing Empty Rows Using Hide

  • Select the empty rows of your dataset.
  • Hold the CTRL key and select the row numbers.
  • In row 18, press CTRL+SHIFT+Down Arrow to select all the empty rows from row 18.

Removing Empty Rows Using Hide

All the empty rows will be selected.

Empty Rows are Selected

  • On the row number, right-click and select Hide.

Hiding Empty Rows

All the empty rows will be hidden.

Output After Removing Empty Rows Using Hide

Read More: How to Delete Hidden Rows in Excel (3 Methods)


Related Articles

Get FREE Advanced Excel Exercises with Solutions!
Shamima Sultana
Shamima Sultana

Shamima Sultana, BSc, Computer Science and Engineering, East West University, Bangladesh, has been working with the ExcelDemy project for 2 years. She has written over 75+ articles and reviewed 1000+ articles for ExcelDemy. She has also led several teams with Excel VBA and Content Development works. Currently, she is working as the Project Manager and oversees the day-to-day work, leads the services team, allocates resources to the right area, etc. Her work and learning interests vary from Microsoft... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo