How to Delete Infinite Rows in Excel: 5 Methods

Method 1 – Changing Sheet Properties to Delete Infinite Rows

Steps:

  • Go to the Developer tab in the Ribbon. Click Properties under the Control section. The Properties dialog box will appear.

Going to sheet properties via developer tab

  • Go to the Scroll Area in the box and write our desired range in the adjacent cell. The Excel sheet has active data from A1 to E12. Write $A$1:$D$12 in the cell and press Enter.

implementing active row range

  • You probably can’t select cells past this $A$1:$D$12 range.

working cursor can not pass the active cells resulting in deleting the infinite rows in excel


Method 2 – Apply Find & Select Tool to Erase Infinite Rows in Excel

Step 1: Use the Home Tab to Select Special Criteria

  • Select data range from the dataset.
  • Click: Home > Editing > Find & Select > Go To Special.

A dialog box named “Go To Special” will open up then.

Using home tab to go to 'go to special menu'

Step 2: Finding Out Blank Rows

  • Mark on Blanks option.
  • Press OK.

selecting blanks to highlight blank rows

The blank rows are now highlighted in the dataset.

Step 3: Deleting Blank Rows In Excel

  • Right-click your mouse and click Delete from the context menu.

We’ll get a new dialog box then.

deleting blank rows in excel

Step 4: Shifting All the Rows up to Fill up the Blank Space

  • Mark on the Entire row option and press OK.

re-organizing the existing data

  • Observe that the blank infinite rows are gone.

result after deleting infinite rows in excel


Method 3 – Use Delete Tab to Delete Infinite Rows in Excel

Steps:

  • Select the rows that you want to remove.
  • Click: Home > Cells > Delete > Delete Sheet Rows.

selecting delete sheet rows from the home tab after selecting the rows to be deleted

  • The rows are no more now.

result after deleting infinite rows in excel


Method 4 – Insert Filter Option to Remove Infinite Rows in Excel

Step 1: Triggering Filter Menu

  • Including your title select the data range.
  • Click: Data > Sort & Filter > Filter

You will get the filter icon in every title box of your dataset.

triggering filtering menu from data tab

Step 2: Selecting Blank Cells

  • Click any filter icon and then the filtering options will open up.
  • Unmark everything without the (Blanks) option.
  • Hit the OK tab.

selecting blanks to delete infinite blank rows in excel

You will spot that it is showing only the blank rows now.

filter result showing the blank rows

Step 3: Deleting Blank Rows

  • Blank infinite rows and right-click your mouse.
  • Press Delete Row from the context menu.

deleting infinite rows in excel

Those blank rows are deleted. We’ll try to get back our other rows.

Step 4: Reselecting the Data

  • Click the filter icon again.
  • Give a mark on the (Select All) option.
  • Press OK.

re-organizing all the data

Here are our other filled rows that are back now.

result after deleting infinite rows in excel

 


Method 5 – Embed Excel VBA to Limit Scroll Area

Step 1: Triggering VBA Window

  • Right-click your mouse on the sheet title.
  • Select View Code from the context menu.

triggering vba code window from context menu

A VBA window will open up.

Step 2: Inserting the code

  • Type the codes given below.
Sub All_WC_SCROLL LIMIT()

Dim ws As Worksheet

For Each ws In Application.ActiveWorkbook.Worksheets
      ws.ScrollArea = ws.UsedRange.Address
Next

End Sub

inserting and running the code

  • Press the Play icon to run the codes.
  • Notice the result below; you will not be able to go beyond the used cell limit.

permanently deactivating the infinite rows in excel with vba


Download Practice Book

You can download the free Excel template from here and practice on your own.


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