How To Delete Hidden Rows in Excel (With 2 Methods)

First, click on the “File” tab.
  1. After that click on the “Info” from the pop-up menu and then click on “Check for Issues” and then “Inspect Document”.
  2. Once you click on “Inspect Document”, Excel opens the “Document Inspector” menu. …
  3. In the end, click on “Remove All” in the “Hidden Rows and Columns” selection.

Managing spreadsheets in Excel can be a tedious task and sometimes it seems like almost an impossible task to get the spreadsheet just right. Many of us have had to face the challenge of dealing with hidden rows in Excel that just won’t go away. It can be incredibly frustrating to try and find these rows and delete them. Fortunately, there are a few easy steps that can help you clean up your spreadsheet and delete these hidden rows. In this blog post, we’ll discuss exactly how to delete hidden rows in Excel. We’ll also discuss tips and tricks to help you optimize your spreadsheet and make it as efficient as possible. Let’s get started and learn how to delete hidden rows in Excel.

Delete Hidden Rows and Columns in Excel (Quick and Easy)

How to delete hidden rows in Excel from the “File” tab

The following steps will show you how to remove hidden rows from Excel’s “File” tab:

1. Locate the “Info” section under the “File” tab

Find the “File” tab in the top left corner of your workbook and click it. Search for the tab that says “Info. The “Info” tab is immediately below the “Open” tab and is above the “Save” tab. “.

2. Navigate to the “Inspect Workbook” section

Move your cursor to the right side of your screen. Locate the section that says “Inspect Workbook. “Click on the sizable button labeled “Check for Issues” that is located to the left of this section. ” This causes a drop-down menu to appear. Choose the first option that says “Inspect Document. As a result, the “Document Inspector” pop-up window appears.

3. Make the appropriate selections within the “Document Inspector” pop-up window

You can determine whether your document contains hidden rows before deleting them. In the “Document Inspector” pop-up window’s lower right corner, click the “Inspect” button. An exclamation point in red appears to warn the user if this action prompts the document to discover hidden rows.

The “Remove All” button is located to the right of this notice. Click the “Reinspect” button to make sure there aren’t any more hidden rows. When you’re sure you want to leave the “Document Inspector” pop-up window, click the “Close” button.

What is a hidden row in Excel?

In Excel, a hidden row is one that contains data but is hidden from the document editor. Excel users can prioritize certain pieces of information while keeping their other data in tact by using hidden rows. When a user is certain they won’t need the data any longer, they occasionally may want to permanently delete hidden rows.

How to delete hidden rows in Excel using a VBA macro

Here is a list of the steps for using a VBA macro in Excel to delete hidden rows:

1. Reveal the “Developer” tab

The “Developer” tab is often not automatically displayed in Excel spreadsheets, so you must manually activate it. Begin by clicking on the “File” tab. Navigate to “Options” and select “Customize Ribbon. ” Locate the section that says “Main Tabs. ” Select the box that says “Developer. This keeps the “Developer” tab open until you manually change it or reinstall a new version of Excel.

2. Exit out of the “File” tab

The following action is to close the “File” tab. Click on the back arrow to return to your document. You can view your workbook on the “Home” tab after completing this step.

3. Enter the “Developer” tab

You can now locate the “Developer” tab on your Excel ribbon thanks to the work you did in step one. Its most often to the left of the “Insert” tab. To access the area where you can create and execute macros, click it.

4. Open the “Visual Basic Editor” pop-up window

The “Visual Basic” button can be found on the far left side of your screen, below the “Developer” tab. To launch the “Visual Basic Editor” pop-up window, click this button. Alternately, you can simultaneously press the “Alt” and “F11” keys on your keyboard. This action also opens the “Visual Basic Editor” pop-up window.

5. Create a new module

Within the “Visual Basic Editor” pop-up window, find the “Insert” tab. This tab is situated between the “View” and “Format” tabs. When you select the “Insert” tab, a drop-down menu will appear. Choose “Module” rather than “Class Module” from the drop-down menu. “.

6. Insert the code for deleting hidden rows

Once you open a module, locate the code window. Then, paste it into the code window by copying the following code to your clipboard. You can copy it by selecting all of it with your mouse, performing a right-click, and choosing “Copy.” When you’re prepared to paste the text, make sure to do so as plain text to ensure accurate coding. The “Ctrl,” “Shift,” and “V” keys on your keyboard, or right-clicking and choosing “Paste as plain text,” are both acceptable methods of accomplishing this. The code is as follows:

Sub deleteAllHidden()

Dim ws As Worksheet

For Each ws In ActiveWorkbook.Worksheets

Dim lastRow

lastRow = 4000

For iCntr = lastRow To 1 Step -1

If Rows(iCntr).Hidden = True Then Rows(iCntr).EntireRow.Delete


Next ws

End Sub

7. Save the code and run the macro

Although you can enter the code manually, there is a higher likelihood of error due to the requirement for accuracy in both spelling and spacing. Therefore, a lot of users decide to copy and paste the code. You can check the code after copying and pasting it to make sure it appears as intended. To save your work, select “Save” near the top of the pop-up window.

You can select the “Run” tab by clicking on the pop-up window. Confirm that youve selected the appropriate macro option. To activate the macro that eliminates all of your hidden rows, select the “Run” button. When finished, click on the sizable red X in the top right corner to exit the “Run” dialog box.

Please note that Indeed is not affiliated with any of the businesses mentioned in this article.


How do I delete hidden rows in Excel 2020?

Delete All Hidden Rows and Columns in Excel
  1. Click the File option.
  2. In the options on the left, click on ‘Info’
  3. Click on the ‘Check for Issues’ option.
  4. Click on the ‘Inspect Document’ option. …
  5. Click the “Inspect” button in the “Document Inspector” dialog box.
  6. Scroll down to the ‘Hidden Rows and Columns’ option.

How do I remove hidden rows in Excel after filter?

Now you need to reverse the filter. In order to do this, choose your work area and press the Filter button. Uncheck the box next to “0” by selecting the arrow next to the temporary column’s header. Select all these rows, right-click and select “Delete”.

How do you delete hidden rows in sheets?

To delete such rows, you’ll first need to unhide them:
  1. Press one of the arrows. On the sheet, the hidden rows will automatically be highlighted.
  2. Right-click on the highlighted row.
  3. Press “Delete row.”

How do I delete hidden rows in Excel 365?

How do I delete all hidden rows
  1. In the table with hidden rows, choose the desired cell range.
  2. Press F5 to bring up the Go To dialog box.
  3. Click the “Special” button.
  4. Click the “Select only visible …” button.
  5. Then Copy and Paste the cells.

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *