How To Delete All Hidden Rows In Excel

Mastering Excel takes a lot of time and effort. Unless you’re an expert, getting a hang of the advanced features might be a daunting process. Unfortunately, not all commands are clearly visible within the interface.

How To Delete All Hidden Rows In Excel

Deleting hidden rows is a perfect example. In the older versions of Excel, this wasn’t even possible. Thankfully, Microsoft decided to add it to versions 2007 and newer. Still, the way it works is a mystery to many.

There are two ways of deleting hidden rows in Excel. Let’s go over them.

Using the Inspect Document Function

The Document Inspector feature is available in Excel, Word, PowerPoint, and Visio. It’s the best way to uncover and delete any hidden data that might be present in a document. This is useful when you have to share documents with other people and want to make sure there are no surprises in the document.

In Excel, deleting hidden rows and columns is an easy job. Here’s what you have to do:

  1. Open the workbook you want to use, and go to File. How To Delete All Hidden Rows In Excel
  2. Now, click on Info. How To Delete All Hidden Rows In Excel
  3. Next, click on the Check for Issues button, then select Inspect Document. How To Delete All Hidden Rows In Excel
  4. Within the Document Inspector dialog box, make sure that Hidden Rows and Columns is selected and then click Inspect.How To Delete All Hidden Rows In Excel
  5. The Document Inspector will show you a report which shows you whether there are any hidden rows and columns. If there are, go to Remove All, then click Cancel.

How To Delete All Hidden Rows In Excel

Deleting Hidden Rows on Previous Versions of Excel

This feature can be found in the same place in Excel 2013 and 2016. The interface of the 2010 version looks a bit different, but the pathway to the Document Inspector is the same. If you’re using Excel 2007, you can find this option by clicking on the Office button, then going to Prepare > Inspect Document.

How To Delete All Hidden Rows In Excel

There’s not a difference to the feature itself, so this will make sure that there are no hidden rows and columns regardless of your version of Excel.

Using VBA Code to Delete Hidden Rows

This is a very convenient method if you only need to remove hidden rows and columns from one sheet instead of a whole workbook. It might not be as capable as the Inspect Document feature, but it’s a very easy and fast way of deleting rows from a worksheet. Here’s how to do it:

  1. Open the Excel file and press Alt + F11 to open VBA Editor. How To Delete All Hidden Rows In Excel
  2. Now, go to Insert > Module. How To Delete All Hidden Rows In Excel
  3. When the module window pops up, paste the following code in it:

Sub deletehidden()
For lp = 256 To 1 Step -1
If Columns(lp).EntireColumn.Hidden = True Then Columns(lp).EntireColumn.Delete Else
Next
For lp = 65536 To 1 Step -1
If Rows(lp).EntireRow.Hidden = True Then Rows(lp).EntireRow.Delete Else
Next
End Sub

  1. Then, press F5 to run the code.

How To Delete All Hidden Rows In Excel

This will remove all hidden rows and columns from the sheet you’re working on. If there aren’t many of them, you can repeat this process to clear the entire workbook of them in no time.

The only issue that can occur is if there are any formulas in the hidden rows and columns. If they affect the data within a sheet, deleting them might cause some of the functions to not work properly, and you might end up with some incorrect calculations.

Using a Third-Party Software

There’s a variety of third-party solutions that can help you remove hidden rows and columns in an instant. They usually serve as an extension to Excel, adding more options to the toolbar. Aside from this, they also offer additional features that might be hard to find, such as:

  1. Batch delete checkboxes
  2. Batch delete option buttons
  3. Delete blank rows,
  4. Batch delete all macros

They may prove very useful if you’re a heavy Excel user and are looking for quick solutions to the common issues that Microsoft has yet to address properly.

The Final Word

The fact that Excel is equipped with the ability to discover and delete hidden rows and columns makes it much more convenient to use. Thanks to Document Inspector, there’s no need to worry about hidden information.

If you find coding fun, executing VBA code is a more convenient solution, which you can do even if you don’t have any coding experience. All you have to do is to cut and paste the right commands.

Lastly, you can choose a third-party solution that will help you get the most out of Excel. They can be a great upgrade to the software and make it much easier to use.

Sign up and earn $1000 a day ⋙

How to fix error 0xa00f4288 in Camera app on Windows 10 & 11

How to fix error 0xa00f4288 in Camera app on Windows 10 & 11

How to fix error 0xa00f4288 in the Camera app on Windows 10 & 11. Windows' default Camera App is the main tool for taking photos. So in the case of Win 10 & 11 cameras

How to open multiple programs with one shortcut on Windows 10

How to open multiple programs with one shortcut on Windows 10

How to open multiple programs with one shortcut on Windows 10, You can actually open multiple programs at the same time with a single key. Here's how to use one

How to delete old boot menu options on Windows

How to delete old boot menu options on Windows

How to remove old boot menu options on Windows, Windows 10 dual boot is useful but can leave redundant boot options in the menu. Here's how to remove the menu

Instructions for fixing Snipping Tool errors on Windows 11

Instructions for fixing Snipping Tool errors on Windows 11

Instructions for fixing Snipping Tool errors on Windows 11. Windows 11 has officially been released for a while, but during use there are still many errors

Instructions for entering text by voice on Windows 11

Instructions for entering text by voice on Windows 11

Instructions for entering text by voice on Windows 11, Entering text by voice on Windows 11 helps you significantly improve your work efficiency. Here's how

How to turn on/off Sticky Key on Windows 11

How to turn on/off Sticky Key on Windows 11

How to turn on/off Sticky Key on Windows 11, Sticky Key makes the PC keyboard easier to use. Here's how to turn Sticky Key on and off on Windows 11.

What is Windows Modules Installer?

What is Windows Modules Installer?

What is Windows Modules Installer?, Windows Modules Installer sometimes takes up a lot of system resources. Is Windows Modules Installer important or not?

How to increase volume in Windows 10

How to increase volume in Windows 10

How to increase volume in Windows 10, How to increase computer volume to maximum level? Let's learn with WebTech360 how to increase Windows 10 computer volume

How to use Windows 11 Installation Assistant to install Windows 11

How to use Windows 11 Installation Assistant to install Windows 11

How to use Windows 11 Installation Assistant to install Windows 11, Windows 11 Installation Assistant is one of the best ways to upgrade your computer to Windows 11.

How to turn off the startup sound in Windows 11

How to turn off the startup sound in Windows 11

How to turn off the startup sound in Windows 11, Does the PC startup sound bother you? Then please refer to how to turn off the startup sound for PC running Windows 11 below

Instructions for changing the screen lock timeout on Windows 11

Instructions for changing the screen lock timeout on Windows 11

Instructions for changing the screen lock timeout on Windows 11. While using Windows 11, there are times when users will need to leave the computer for a period of time.

Windows 11 optimization guide to increase FPS when playing games

Windows 11 optimization guide to increase FPS when playing games

Instructions for optimizing Windows 11 to help increase FPS when playing games, Windows 11 is an operating system platform that is introduced as more improved in gaming quality, helping games

Windows 11: How to use and customize the Quick Settings menu

Windows 11: How to use and customize the Quick Settings menu

Windows 11: How to use and customize the Quick Settings menu, Windows 11 brings some great new features and the Quick Settings menu is no exception. Here it is

How to fix the error of not being able to start Windows 11 after enabling Hyper-V

How to fix the error of not being able to start Windows 11 after enabling Hyper-V

How to fix the error of not being able to start Windows 11 after turning on Hyper-V. Hyper-V helps you run virtual machines on Windows. However, after enabling Hyper-V, you cannot post again

How to fix error 0xc00007b in Windows

How to fix error 0xc00007b in Windows

How to fix error 0xc00007b in Windows, Windows displays error 0xc00007b when the application does not work properly. Below is a step-by-step guide to fix error 0xc00007b in

How to change the login screen on Windows 10/11

How to change the login screen on Windows 10/11

How to change the login screen on Windows 10/11, Don't like the blurry screen when logging in on Windows 10/11? So, instructions on how to turn off and change the login screen

How to uninstall drivers in Windows 11

How to uninstall drivers in Windows 11

How to uninstall drivers in Windows 11, Do you want to remove unwanted drivers on Windows 11? Then please see instructions on how to remove drivers in Windows

How to fix No Internet Secured error on Windows 10

How to fix No Internet Secured error on Windows 10

How to fix No Internet Secured error on Windows 10, No Internet Secured is a common error on Windows 10. Below are simple ways to fix No Internet Secured error

How to fix the error of not being able to save Excel files on Windows

How to fix the error of not being able to save Excel files on Windows

How to fix the error of not being able to save an Excel file on Windows. If you can't save the Excel file, don't worry too much. Below are ways to fix the error of not being able to save the above Excel file

How to open DMG files on Windows

How to open DMG files on Windows

How to open DMG files on Windows, DMG is a file format specific to the macOS operating system. However, you still have a way to open DMG files on Windows.