How to Delete Rows in Excel That Go on Forever?

Method 1 – Using Context Menu

Steps:

➽ Select the rows that you want to delete.
➽ Right-click your mouse.
➽ Select Delete from the Context Menu.

Using Context Menu to delete rows in excel that go on forever

The selected rows will be deleted.

Deleting rows in Excel that go on forever using the context menu


Method 2 – Utilizing Delete Command from Ribbon

Steps:

➽ Select the rows.
➽ Click as follows: Home > Cells > Delete > Delete Sheet Rows.

Utilizing Delete Command on Ribbon

The selected rows will be deleted.

Deleting rows that go on forever Utilizing Delete Command on Ribbon


Method 3 – Applying Find & Select Tool

In this method, we will use the Find & Select tool to delete blank rows. This method is useful when you’re working with large spreadsheets or when you need to change certain text repeatedly. For illustration, we have placed two blank rows in the dataset.

Steps:

➽ Select the data range (B4:D11).
➽ Click Home > Editing > Find & Select > Go To Special….

Applying Find & Select Tool in Excel

A dialog box named “Go To Special” will pop up.
➽ Mark on the Blanks option.
➽ Press OK.

working on Go To Special dialog box to delete rows in Excel

The blank rows are now highlighted.
➽ Right-click your mouse and select Delete from the Context Menu.

bringing up context menu

A new Delete dialog box will open up.
➽ Mark the choice of the Entire row and press OK.

Delete dialog box to delete entire rows in Excel

 

Applying Find & Select Tool to delete rows in excel that go on forever


Method 4 – Implementing Filter Option

Steps:

➽ Select the data range including the title.
➽ Click in the sequence: Data > Filter.

Implementing Filter Option to delete rows in Excel

You will see the filter icon beside every heading of your dataset.
➽ Click on any filter icon and the filtering options will open up.
➽ Unmark everything except (Blanks).
➽ Click the OK button.

marking blank cells in Filter

It will show only the blank rows.

Showing Blank Rows in Excel sheet

➽ Select those blank rows and right-click your mouse.
➽ Click on Delete Row from the Context Menu.

Selecting rows to delete them forever in Excel

The blank rows are deleted. We will execute the following steps to display the other rows.
➽ Click on the filter icon.
➽ Mark the (Select All) option.
➽ Click OK.

returning other rows in Excel

The filled rows will be displayed in the worksheet.

Implementing Filter Option to delete rows in excel that go on forever

Related Content: How to Delete Filtered Rows in Excel?


Method 5 – Incorporating VBA Macro

Steps:

➽ Go to Developer tab >> Visual Basic option.

opening Visual basic from the developer tab

The Visual Basic Editor will open up.
➽ Go to Insert tab >> Module option.

VB editor in Excel

A Module will be created.
➽ Enter the following code into the module.

Sub Dlt_Row()
Rows(8).EntireRow.Delete
Rows(6).EntireRow.Delete
End Sub

VBA code to delete rows in excel that go on forever

➽ Click on the Run icon or press the F5 key on the keyboard.

Executing the code

The result will be as shown in the following image.

Incorporating VBA Macro to delete rows that go on forever in Excel


How to Delete Columns That Go on Forever in Excel

Steps:

➽ Select columns C and D.
➽ Right-click anywhere inside these two column headings.
➽ Select the Delete option from the Context Menu.

Delete Columns in Excel That Go on Forever

The selected columns will be deleted.

only one column is present now


Download Practice Workbook

 

Related Articles


<< Go Back to Delete Rows | Rows in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Md. Sourov Hossain Mithun
Md. Sourov Hossain Mithun

Md. Sourov Hossain Mithun, an Excel and VBA Content Developer at Softeko's ExcelDemy project, joined in October 2021. Holding a Naval Architecture & Marine Engineering degree from BUET, Mithun showcases expertise during his two-year tenure. With over 200 published articles on Excel topics, he earned a promotion to Team Leader, excelling in leading diverse teams. Mithun's passion extends to Advanced Excel, Excel VBA, Data Analysis, and Python programming, contributing significantly to the innovative and dynamic environment of ExcelDemy... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo