Unhide All Rows Not Working in Excel (5 Issues & Solutions)

In this article, we’ll discuss 5 reasons why unhiding all rows is not working in Excel, and provide the solutions


Reason 1 – Freeze Panes is Enabled

In the following picture, rows 1-5 are not visible.

Freeze Panes

The Unhide option for unhiding rows in the context menu has no effect.

Freeze Panes

The reason is that Freeze Panes is enabled. Removing Freeze Panes will unhide the hidden rows.

STEPS:

  • Go to the View tab.
  • Click on the drop-down list of Freeze Panes and choose Unfreeze Panes.

Freeze Panes

Note. The keyboard shortcut to unfreeze the panes: ALT + W + F  + F.

The unhidden rows are revealed, and the methods of hiding and unhiding rows will now work as expected.

Freeze Panes

Read More: VBA to Hide Rows Based on Cell Value in Excel


Reason 2 – Row Height is Very Small or Zero

Here, row 8 in the below image cannot be unhidden using the conventional methods of unhiding rows.

When the Row Height is Very Small or Zero

In fact, the row is not actually hidden, rather the row height is 0, which is why the unhiding it doesn’t work.

When the Row Height is Very Small or Zero

The same situation will occur if the row height is minuscule (between 0.08 and 0.67).

To solve the issue, simply increase the row height using the Row Height option from the Format menu (for example, to a height of 20).

When the Row Height is Very Small or Zero

After increasing the row height, row 8 is visible again.

When the Row Height is Very Small or Zero


Reason 3 – Filter Mode is Active

In the following screenshot, Filter mode is active and Product IDs 1004 & 1005 are filtered out. As a result, rows 8-9 are not visible.

If the Filter Mode is Active

The only way to unhide the hidden rows is to remove the Filter.

STEPS:

  • Go to the Data tab.
  • Select Clear from the Filter option in the Sort & Filter section.

If the Filter Mode is Active

All filtered out / hidden rows are restored.

If the Filter Mode is Active

Read More: How to Unhide Rows in Excel


Reason 4 – The Sheet is Protected

Rows 7-10 in the following figure are not visible and cannot be unhidden using the Unhide Rows command.

Excel Unhide All Rows Not Working When the Sheet is Protected

One possible reason is that sheet protection is active.

We can check whether it is protected or not using VBA.

STEPS:

  • Open a module by clicking Developer > Visual Basic.

How to Insert VBA Code

  • Go to Insert > Module.

How to Insert VBA Code

  • Copy and the following code and paste it into the newly created module:
Sub SheetProtection()
If ActiveSheet.ProtectContents = True Then
MsgBox "The Sheet is Protected"
Else
MsgBox "The Sheet is Not protected"
End If
End Sub

Excel Unhide All Rows Not Working When the Sheet is Protected

  • Run the code (the keyboard shortcut is F5 or Fn + F5).

A message appears informing that “The Sheet is Protected”.

Excel Unhide All Rows Not Working When the Sheet is Protected

To unprotect the sheet:

  • Go to the Review tab.
  • Click on Unprotect Sheet from the Protect ribbon.

Excel Unhide All Rows Not Working When the Sheet is Protected

The Unhide option is available again in the context menu.

  • Select the dataset, right-click on any cell, and select Unhide.

Excel Unhide All Rows Not Working When the Sheet is Protected

The hidden rows are visible again.

Excel Unhide All Rows Not Working When the Sheet is Protected


Reason 5 – Can’t Unhide the Top Row

The procedure for unhiding the top row of a worksheet is not the same as for other rows in Excel.

Can’t Unhide Top Rows in Excel

Unhiding the row from the context menu doesn’t work.

Can’t Unhide Top Rows in Excel

Here is the solution.

STEPS:

  • Go to the Home tab
  • Click on the Go To option from the Find & Select option in the Editing section.

Can’t Unhide Top Rows in Excel

  • Input A1 as the Reference and click OK.

Go To Reference

  • Click on the Unhide option from the context menu.

Can’t Unhide Top Rows in Excel

The hidden first row is visible.

Can’t Unhide Top Rows in Excel

Read More: Shortcut to Unhide Rows in Excel


Download Practice Workbook


Related Articles


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

Get FREE Advanced Excel Exercises with Solutions!
Md. Abdul Kader
Md. Abdul Kader

MD. ABDUL KADER is an engineer with a talent for Excel and a passion for VBA programming. To him, programming is like a time-saving wizard, making data manipulation, file handling, and internet interactions a breeze. His skill set extends to SWM, GIS, RS, and SPSS. He holds a B.Sc in Urban & Regional Planning from Chittagong University of Engineering and Technology and has shifted to become a content developer. In this role, he crafts technical content centred around... Read Full Bio

2 Comments
  1. Thank you, this helped me !!!!

    • Dear German,

      You are most welcome. To get solutions with detailed explanations, follow ExcelDemy.

      Regards
      Shamima Sultana
      Project Manager | ExcelDemy

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo