Data & Excel Automation•11 min read•Updated Sep 28, 2026

How to Hide, Unhide, and View Hidden Rows in Excel

Master row visibility controls in Excel workbooks. Restore hidden Row 1 using Name Box coordinates, apply keyboard shortcuts, and resolve active filter locks.

Tested & ConfirmedHardware & VM tested.
Testing Protocol ↗
Share:Post on X ↗LinkedIn ↗
How to Hide, Unhide, and View Hidden Rows in Excel

Mastering row visibility is a fundamental skill for any data analyst managing complex workbooks. Whether you are cleaning raw data, preparing financial reports, or managing large datasets, knowing how to unhide rows in Excel ensures that no critical information remains trapped behind a hidden state. This Manual provides the Engineering precision required to navigate row visibility, from standard context menu operations to advanced programmatic solutions for bulk visibility management.

Quick Keyboard & Action Summary

To unhide rows using the keyboard, select the rows surrounding the hidden area and press Ctrl + Shift + 9 (Windows) or Cmd + Shift + 9 (macOS). If you need to unhide row 1, use the Name Box by typing "A1" and pressing Enter, then navigate to the Home tab, select Format, and choose Unhide Rows. For filtered data, you must clear the filter from the Data tab rather than using the standard unhide command.

Row Visibility Mechanics in Standard Spreadsheet Engines

Excel manages row visibility through a specific property within the worksheet object model. When a row is hidden, its RowHeight property is set to zero. This is distinct from deleting a row, which removes the row index entirely from the worksheet structure. Because the row index remains present, formulas referencing these cells continue to calculate values unless specific functions like SUBTOTAL or AGGREGATE are employed to ignore hidden rows.

The visual indicator for hidden rows is a subtle double-line border between the row headers. If you hover your cursor over this boundary, the pointer transforms into a double-sided arrow with a split bar. This visual cue is the primary way to identify that rows are hidden without relying on the row number sequence. If the sequence jumps from 5 to 7, you know row 6 is hidden.

It is important to distinguish between manually hidden rows and rows hidden by a filter. Manually hidden rows retain their standard gray header color. Rows hidden by an AutoFilter or Advanced Filter display blue row numbers and a funnel icon in the column header. Standard unhide commands will not affect filtered rows, as their visibility is controlled by the filter criteria applied to the dataset. You must clear the filter to restore these rows to view.

Finally, consider the impact of grouping or outlining. When you use the Group feature, Excel creates a collapsible outline level. This is a different mechanism than the standard Hide command. Rows hidden via grouping are controlled by the plus and minus buttons in the margin. Attempting to unhide these rows using the standard context menu may not work if the group remains collapsed, requiring you to click the outline button to expand the range.

Primary Mouse and Context Menu Methods for Unhiding Rows

The most common method to reveal hidden content involves the row header interface. To perform this, select the row header immediately above the hidden range and the row header immediately below it. For example, if row 5 is hidden, click and drag from row 4 to row 6. Once the range is highlighted, right-click on the selected headers and choose the Unhide option from the context menu.

If you prefer using the ribbon interface, select the surrounding rows as described above. Navigate to the Home tab on the top ribbon. Within the Cells group, click the Format button. A dropdown menu will appear. Hover over the Hide & Unhide option, which will expand a secondary menu. Select Unhide Rows. This action forces Excel to reset the RowHeight property of all rows within the selection to the default height.

For users who need to unhide multiple non-contiguous blocks of rows, the mouse method requires careful selection. You can hold the Ctrl key (or Cmd on Mac) to select multiple ranges of row headers. Once all surrounding rows are selected, right-clicking any of the selected headers and choosing Unhide will reveal all hidden rows within those selections simultaneously. This is a significant time-saver when cleaning up messy spreadsheets.

Be aware that if you accidentally select only one row, the Unhide option may remain grayed out or inactive. The application requires a range that encompasses the hidden index to calculate the boundary for restoration. If you are struggling to select the correct rows, ensure you are clicking the actual gray row numbers on the far left of the interface, rather than clicking inside the cells of the worksheet.

Selecting corner button and Name Box to unhide row 1 in Excel
Selecting the top-left intersection button allows instant unhiding of the first worksheet row.

Keyboard Shortcuts and Navigation Workflows (Windows and macOS)

Keyboard shortcuts significantly increase the speed of spreadsheet operations. On Windows, the standard shortcut to unhide rows is Ctrl + Shift + 9. To use this, select the rows surrounding the hidden area using Shift + Spacebar to select the entire row, then expand your selection with the arrow keys. Once the surrounding rows are highlighted, press the shortcut. If you need to remove duplicates in Excel after unhiding, this workflow keeps your hands on the keyboard.

On macOS, the shortcut is Cmd + Shift + 9. The logic remains identical to the Windows version. Select the row headers, then trigger the command. If you are working on a MacBook, ensure your function keys are not overriding the command. Sometimes, the system-level shortcuts for macOS window management can conflict with Excel shortcuts, requiring you to adjust your System Settings if the command fails to execute.

A frequent issue on Windows 10 and 11 is the conflict with input language switching. The operating system often reserves Ctrl + Shift for changing keyboard layouts. If your shortcut is not working, it is likely being intercepted by the OS. You can resolve this by changing your keyboard language settings in the Windows Control Panel or by using the Alt + H, O, U, R sequence, which is the legacy menu navigation path that bypasses the Ctrl + Shift conflict.

If you are working with columns, the shortcut is Ctrl + 0 (zero) to hide and Ctrl + Shift + 0 to unhide. Note that the zero key is often confused with the letter O. Always use the number row for these commands. If you are trying to Excel drop-down list management, keeping your columns visible is essential for data validation integrity.

Unhiding Row 1 and Column A Edge Cases (Name Box and Go To Special)

Unhiding row 1 presents a unique challenge because there is no row header above it to select. Right-clicking row 2 will not provide the Unhide option for row 1. To resolve this, you must use the Select All button, which is the small triangle located in the top-left corner of the worksheet where the row and column headers intersect. Clicking this selects the entire sheet. Once selected, right-click any row header and choose Unhide.

An alternative method involves the Name Box, which is the input field to the left of the formula bar. Type "A1" into the Name Box and press Enter. This forces Excel to select cell A1, even if it is currently hidden. Once the cell is selected, go to the Home tab, click Format, select Hide & Unhide, and choose Unhide Rows. This method is highly effective when you are dealing with frozen panes that make manual selection difficult.

The Go To Special dialog box is another reliable tool for this task. Press F5 to open the Go To dialog, then click the Special button. Select the "Row differences" or simply type the cell reference of the hidden row in the Reference box. Once the hidden cell is active, the ribbon commands for unhiding become available. This is particularly useful if you need to add bullet points in Excel to data that was previously obscured.

If you are working on a Mac, the Select All button remains the most consistent method. However, if you are using Excel Online, the interface may behave differently. In the web version, you can often drag the boundary between the top of the sheet and row 2 downward to manually resize the row height, which effectively unhides the row without needing to navigate through menus.

Comparative Feature Matrix: Hide vs Filter vs Group vs Zero Row Height

Understanding the differences between various visibility methods is essential for maintaining data integrity. The following table outlines how these features interact with the Excel engine.

Visibility FeatureTrigger MethodHeader Visual IndicatorFormula Behavior (SUBTOTAL)Recommended Use Case
Standard HideRight-click HeaderDouble-lineIgnoredStatic data cleanup
AutoFilterData TabBlue NumbersIgnoredDynamic data analysis
GroupingData > GroupOutline BarIgnoredHierarchical reports
Zero HeightFormat > Row HeightDouble-lineIncludedCustom formatting
VBA HiddenMacro CodeDouble-lineIgnoredAutomated workflows

The distinction between standard hidden rows and zero-height rows is subtle but critical. When you set a row height to zero, the row is technically hidden, but it is not flagged as "Hidden" in the same way the standard Hide command flags it. This means that some functions may still include these rows in their calculations. Always use the standard Hide command for data management to ensure consistency across your workbooks.

Grouping is the preferred method for financial statements where you need to toggle between summary and detail views. Unlike standard hiding, grouping provides a clear visual interface for the user to expand and collapse sections. This reduces the risk of users accidentally deleting hidden data because they did not realize it was there.

Filtered rows are the most common source of confusion. Because the filter is a dynamic state, you cannot simply "unhide" a filtered row. You must remove the filter criteria. If you Locate yourself frequently hiding and unhiding the same rows, consider using the Group feature instead, as it is designed for repeated toggling.

Troubleshooting hidden vs filtered rows in Excel with data filter icons
Distinguishing between filtered rows and manually hidden rows prevents accidental data omission.

Automating Bulk Row Visibility with VBA and Office Scripts

For large workbooks with hundreds of sheets, manual unhiding is inefficient. You can use a simple VBA macro to iterate through every worksheet and ensure all rows are visible. This is a common requirement in data auditing where you need to ensure no data is being obscured by previous users.

Sub UnhideAllRowsInWorkbook()
    Dim ws As Worksheet
    For Each ws In ThisWorkbook.Worksheets
        ws.Rows.Hidden = False
    Next ws
End Sub

To use this code, press Alt + F11 to open the VBA editor, insert a new module, and paste the code above. You can then run the macro by pressing F5. This script sets the Hidden property of all rows in every sheet to False, effectively clearing any hidden rows in the entire file. Always save a backup of your workbook before running bulk automation scripts.

For Excel Online users, Office Scripts provide a similar capability using TypeScript. This is useful for cloud-based workflows where VBA is not supported. The following script performs the same function for the active worksheet.

function main(workbook: ExcelScript.Workbook) {
  let sheet = workbook.getActiveWorksheet();
  let range = sheet.getRange();
  range.setHidden(false);
}

These automated methods are superior to manual intervention when dealing with standardized report templates. By embedding these scripts into your workflow, you ensure that every team member is viewing the same data, eliminating the risk of hidden rows causing discrepancies in final analysis or reporting.

Thorough Troubleshooting: Why Hidden Rows Will Not Unhide

If you Locate that your attempts to unhide rows are failing, the most common culprit is sheet protection. If the worksheet is protected, the Unhide command will be disabled in the ribbon and the context menu. You must go to the Protection menu in the ribbon and click Unprotect Sheet. If a password is required, you will need the credentials to proceed. Without unprotecting the sheet, you cannot modify row visibility.

Another frequent issue is frozen panes. If row 1 is frozen, it may appear as though it is hidden when it is actually just locked in place. If you cannot scroll to it, go to the View tab and select Unfreeze Panes. This will restore normal scrolling behavior and allow you to see if the row was actually hidden or just pinned to the top of the window.

If you are working with a shared workbook or a file with restricted permissions, certain features may be disabled by the administrator. Check the title bar of your Excel window to see if it says "Read-Only" or "Protected View." If you are in Protected View, you must click "Enable Editing" before you can make any changes to the row visibility or structure of the document.

Finally, verify that you are not dealing with a table object that has specific filtering applied. Tables in Excel have their own filtering logic that can override standard row visibility. If your data is inside a formal Table (created via Insert > Table), look for the filter arrows in the header row. Clearing these filters is the only way to reveal the rows contained within the table structure. If you still cannot unhide the rows, try copying the data to a new, clean workbook to rule out file corruption.

Frequently Asked Questions

The Unhide option is typically grayed out because the worksheet is protected, or you have not selected the rows surrounding the hidden range. Ensure the sheet is unprotected and that you have selected the row headers above and below the hidden section.

Sarah Blake
Sarah Blake• Senior Data Operations & Spreadsheet Analyst3+ Years Industry Experience

Data analyst with 3+ years designing automated reporting engines, dynamic financial spreadsheets, and clean data workflows in Microsoft Excel and Google Sheets.