There’s something common and irritating about spreadsheets with unnecessary rows or blank rows. But no worries, there are several ways in Excel to avoid these unwanted rows and they are quite easy to delete. In this article, we’re going to take a look at 5 ways to remove infinite rows from our Excel data.
Download Practice Book
You can download the free Excel template from here and practice on your own.
5 Easy Ways to Delete Infinite Rows in Excel
Method 1: Use Selection From the Context Menu to Remove Infinite Rows in Excel
Let me introduce our dataset first. For this operation, I have made a dataset that represents some products’ names, order dates, and prices. In our very first method, I’ll use the manual method to delete rows in excel.
➽ First, select the rows that you want to delete.
➽ Then right-click your mouse.
➽ Select Delete option from the context menu.
You’ll notice that the selected rows are removed now.
Read more: How to Delete Selected Rows in Excel
Method 2: Apply Find & Select Tool to Erase Infinite Rows in Excel
In this method, I’ll use the Find & Select tool to delete blank infinite rows in excel. It will be useful when you’re working with large spreadsheets. For this method, I have placed two blank rows in my dataset.
➽ Select data range from the dataset.
➽ Click successively: Home > Editing > Find & Select > Go To Special
A dialog box named “Go To Special” will open up then.
➽ Give mark on Blanks option.
➽ Then just press OK.
The blank rows are now highlighted in the dataset.
➽ Then right-click your mouse and click Delete from the context menu.
We’ll get a new dialog box then.
➽ Put a mark on Entire row option and press OK.
Now you’ll observe that the blank infinite rows are gone.
Method 3: Use Delete Tab to Delete Infinite Rows in Excel
Here, we’ll do the same operation using the Delete tab from the Home ribbon. It’s quite easy.
➽ Select the rows that you want to remove.
➽ Click as follows: Home > Cells > Delete > Delete Sheet Rows
You will find that the rows are no more now.
Method 4: Insert Filter Option to Remove Infinite Rows in Excel
The FILTER option filters a range of data based on supplied criteria. We’ll apply it here in our method to delete some blank infinite rows in excel.
➽ Including your title select the data range.
➽ Then click: Data > Sort & Filter > Filter
You will get the filter icon in every title box of your dataset.
➽ Click any filter icon and then the filtering options will open up.
➽ Now unmark everything without the (Blanks) option.
➽ Just hit the OK tab then.
You will spot that it is showing only the blank rows now.
➽ Pick those blank infinite rows and right-click your mouse.
➽ Press Delete Row from the context menu.
Those blank rows are deleted. Now we’ll try to get back our other rows.
➽ Click the filter icon again.
➽ Give mark on the (Select All) option.
➽ Finally, press OK.
Here’s our other filled rows are back now.
Method 5: Embed Excel VBA to Delete Infinite Rows in Excel
If you like to work with VBA in Excel then I can give you the easiest way to erase infinite rows in Excel.
➽ Right-click your mouse on the sheet title.
➽ Select View Code from the context menu.
A VBA window will open up.
Here I’ll delete the blank rows from 7 to 9. You can change the criteria in the given codes.
➽ Now type the codes given below.
Option Explicit Sub sbDeleteARowMulti() Rows("7:9").Delete End Sub
➽ Then press the Play icon to run the codes.
Finally, you will notice in our image below, the rows from 7 to 9 are deleted.
Read more: Delete Multiple Rows in Excel with VBA
I hope all of the methods described above will be helpful enough to delete infinite rows in excel. Feel free to ask any questions in the comment section and please give me feedback.
- How to Use Macro to Delete Rows Based on Criteria in Excel (3 Ways)
- How to Insert or Remove Rows and Columns from Excel Table
- How to Erase Multiple Rows in Excel with Condition (3 Ways)
- How to Delete Multiple Rows in Excel (3 Methods)
- How to Delete Rows in Excel: 7 Methods
- How to Use VBA to Delete Empty Rows in Excel