Skip to main content

Unhide All Rows in Excel: Simple Tips, Shortcuts, and Fixes

This guide shows how to unhide rows in Excel using shortcuts, menu options, and VBA. You’ll also learn tips to troubleshoot common problems and keep your data visible and easy to work with.
Oct 7, 2025  · 8 min read

You’re working in Excel when something feels off. The data looks fine at first glance, but some numbers aren’t adding up. You check the formulas, double-check the totals, and still can’t find the problem.

The rows aren’t deleted; they’re hidden. And if you don’t know how to spot them, you could miss important information without realizing it.

In this guide, I’ll show you several ways to unhide rows in Excel, from quick clicks and keyboard shortcuts to using VBA for more advanced cases. We’ll also cover common mistakes, troubleshooting steps, and best practices so you can keep your data clear and ready to work with.

Why Rows May Be Hidden in Excel 

Before you unhide rows, let’s understand why they’re hidden. Sometimes it’s intentional, other times it’s by accident, and the reason can change how you fix it.

Common reasons include:

  • Manually hidden: You might have right-clicked the row and chosen Hide.
  • Filters: Rows that don’t match a filter get hidden automatically.
  • Grouping: Collapsed row groups won’t show their contents.
  • Row height set to zero: The row is still there, but has no visible height.
  • Imported data or formatting issues: Copying from another file can bring in hidden rows or formatting that hides them.

Core Methods for Unhiding Rows

Now that you know why rows might be hidden, let’s go through the main ways to bring them back.

Unhiding all rows at once

If you’re not sure where the hidden rows are, the quickest fix is to reset the whole sheet so everything is visible again.

  1. Select the entire sheet by pressing Ctrl + A (Windows) or Command + A (Mac).

  2. On Windows: Go to the Home tab > Format > Hide & Unhide > Unhide Rows.

  3. On Mac: With the sheet selected, go to the Format menu in the top bar > Row > Unhide.

This method works well if your top rows are hidden and you can’t click them directly.

Unhiding all the rows in Excel in one go

Unhide all the rows. Image by Author.

Keyboard shortcuts

Shortcuts are the fastest way to unhide rows if you use Excel on a daily basis.

  1. Select the rows around the hidden ones or press Ctrl + A (Windows)/Command + A (Mac) to select the whole sheet.

  2. Then, use the shortcut:

    • Windows: Ctrl + Shift + 9

    • Mac: Command + Shift + 9

This is ideal if you want to avoid using menus altogether.

Ribbon commands (Home tab)

If you prefer using Excel’s ribbon:

  1. Select the rows around the hidden ones, or the entire sheet.
  2. Go to the Home tab > Format > Hide & Unhide > Unhide Rows.

Unhiding rows in excel using the  ribbon home tab.

Unhide rows using the Excel Ribbon. Image by Author.

Context menu (right-click)

When you know exactly where the hidden rows are, do this:

  1. Select the rows above and below the hidden ones.
  2. Right-click the row number (not the cell).
  3. Choose Unhide from the menu.

This method is perfect for unhiding one or two specific rows.

Unhide rows with the right-click option. Image by Author.

Double-clicking row headers

If you see a jump in row numbers (e.g., from 4 to 6), it means the row in between is hidden. To fix this:

  1. Move your cursor to the line between the two visible row numbers until it turns into a double line with arrows.
  2. Double-click that border to reveal the hidden row.

Note: This only works if the hidden rows are between visible ones. It won’t help if the first or last row is hidden.

Double-click to unhide rows in Excel.

Unhide rows with a double-click. Image by Author.

Tip: If you select the whole column before double-clicking, Excel will unhide all the hidden rows in that column at once.

Advanced Techniques

If the usual methods don’t bring your rows back, Excel has a couple of more advanced options. But these are helpful if you work with large spreadsheets or want to automate the process.

VBA macros

VBA (Visual Basic for Applications) is Excel’s built-in programming tool. With just a few lines of code, you can unhide every row in a sheet. 

Here’s how to use it:

  1. Press Alt + F11 (Windows) or Fn + Option + F11 (Mac) to open the VBA Editor.

  2. In the menu, click Insert > Module.

  3. Paste this code

Sub UnhideAllRows()
    Rows.Hidden = False
End Sub
  1. Press F5 or click Run.

Every hidden row in your sheet will be visible again.

Unhiding all the row in Excel using VBA.

Unhide rows using VBA. Image by Author.

Grouping and outlines

Sometimes rows are hidden because they’re part of a group, not because someone manually hid them. Grouping is a feature in Excel that lets you collapse and expand sections of data. It’s quite useful for organization, but easy to overlook if you don’t use it often.

Here’s what to check:

  • Look along the left edge of your sheet for plus (+) or minus (–) signs.
  • Click a plus (+) sign to expand a group and show the rows inside.
  • If rows are still missing, check for any collapsed groups elsewhere in the sheet.

Hidden vs. grouped rows: 

Hidden rows are made invisible manually. Grouped rows are collapsed as part of Excel’s outlining feature and can be expanded with the plus/minus controls.

Tip: To remove grouping completely, go to the Data tab and click Ungroup.

Ungrouping to unhide rows in excel.

Ungroup to unhide the rows. Image by Author.

Troubleshooting Common Issues

Now, let’s look at a few issues that you may encounter when unhiding rows:

Rows with zero height

A row can look hidden if its height is set to zero, even if you didn’t hide it manually. So even if you right-click and choose Unhide, it won’t work in this case.

Here’s how to fix this:

  1. Select the rows around the missing one.

  2. Go to Home > Format > Row Height (or right-click the row number and choose Row Height).

  3. Set the height to 15 (Excel’s default).

  4. Click OK, and the row should appear again.

Adjusting the row height to unhide the rows in Excel.

Adjust the row height. Image by Author.

Filtered rows

If your data is filtered, Excel will hide any rows that don’t meet the filter’s criteria. For example, if you filter by “Sales” in a Department column, only the “Sales” rows show; the others are hidden, even though they’re not deleted.

To confirm this, see if the color of row numbers changed. Because row numbers will turn blue when rows are filtered out.

Rows got hidden when the filter was applied in Excel.

Rows got hidden when the filter was applied. Image by Author.

Here’s how to fix this:

  1. Click anywhere in your table.
  2. Go to the Data tab and click Clear to remove all filters.

Unhiding all rows by clearing filters in Excel.

Unhide rows by clearing filters. Image by Author. 

Protected or locked sheets

If the Hide and Unhide options are greyed out, the sheet is probably protected. And when protection is on, you can’t unhide rows until it’s removed.

Hide and unhide option disabled due to protected sheet in Excel.

The Hide and Unhide option disabled. Image by Author.

Here’s how you can fix this:

  1. Go to the Review tab.
  2. Click Unprotect Sheet.
  3. If a password prompt appears, enter the password.

Unprotect the sheet and unhide the rows in Excel.

Unprotect the sheet and unhide the rows. Image by Author.

Tip: If you still want the sheet protected but need to hide/unhide rows, click Protect Sheet in the Review tab and check Format rows and Format columns before enabling protection.

Conflicting keyboard shortcuts

If Ctrl + Shift + 9 (Windows) or Command + Shift + 9 (Mac) isn’t working, another app or your system might be using that shortcut.

Here’s how you can fix this:

  • Use the menu method: Home > Format > Unhide Rows.
  • Check your Mac/Windows keyboard shortcut settings.
  • Close any apps that might override Excel shortcuts (like screen recorders or custom hotkey tools).

Best Practices For Unhiding Rows

Here are a few habits that can save you from mistakes and keep your Excel sheets clean and easy to work with.

Select visible cells only

By default, Excel copies everything in your selection, even hidden rows. That means if rows 2–5 are hidden and you select rows 1, 6, and 7, Excel still pastes rows 2–5 in between.

To avoid this, here’s how you can copy only visible cells:

  1. Select the range you want to copy.

  2. Press Alt + ; (Windows) or Command + Shift + Z (Mac) to select only the visible cells.

  3. Press Ctrl + C (Windows) or Command + C (Mac) to copy, then paste as usual.

This way, hidden rows stay hidden in your pasted data.

Use Go To Special to find hidden rows

When you work with a big dataset, it can be hard to identify where rows are hidden.  But the Go To Special feature makes it easy to find them.

Here’s how you can use this:

  1. Go to Home > Find & Select > Go To Special. Or press F5 or Ctrl + G (Windows) to open Go To, then click Special.

  2. Select Visible cells only and click OK.

Any gaps in the white selection border show where rows are hidden.

Find the hidden rows using the Go To Special tool in Excel.

Find the hidden rows using the Go To Special tool. Image by Author.

Prevent accidental hiding and double-checking

Here are a few tips to avoid hiding rows by mistake and to manage your worksheet layout better:

  • Be careful when selecting rows—a stray right-click or shortcut can hide them without you noticing.
  • Use Freeze Panes (under the View tab) to keep headers or important rows in sight.
  • If you use grouping, make sure it’s intentional and clearly labeled.
  • Before printing or sending a file, take a minute to check for hidden rows.

Final Thoughts 

Hidden rows can throw off your data, but now you know exactly how to spot and unhide them.

If one method doesn’t work, check for filters, zero-height rows, grouping, or sheet protection. Once they’re visible again, take a minute to prevent it from happening in the future with Freeze Panes, clear grouping labels, and tidy sheet layouts.

So the next time rows “disappear,” you’ll know they’re not lost; they’re hidden, and only a couple of clicks away.

If you want to learn more about hiding and unhiding rows or columns in Excel, check out our guides on how to unhide columns and remove blank rows to keep your sheet clean and organized. 


Laiba Siddiqui's photo
Author
Laiba Siddiqui
LinkedIn
Twitter

I'm a content strategist who loves simplifying complex topics. I’ve helped companies like Splunk, Hackernoon, and Tiiny Host create engaging and informative content for their audiences.

FAQs

Can hidden rows affect Excel formulas like SUM() or AVERAGE()?

Yes. Excel includes hidden rows in formulas like SUM(), AVERAGE(), and others by default.

For example, I have numbers in cells A1 to A8, and I hide rows 2, 3, 7, and 8. Now, only rows A1 to A6 are visible.

If I use the formula:

=SUM(A1:A6)

It will still include the values in the hidden cells A2 and A3. This means Excel doesn’t ignore hidden rows when using SUM().

However, if you want to exclude the hidden rows from the calculation, use the SUBTOTAL() function:

=SUBTOTAL(109, A1:A6)

How do I display hidden data in an Excel chart but hide it in the Excel sheet?

If you want your chart to display data from hidden rows while keeping those rows hidden in the sheet, follow these steps:

  • Go to your chart:
  • Right-click and choose Select Data.
  • Click Hidden and Empty Cells
  • Check Show data in hidden rows and columns

How do I unhide the first row (Row 1) in Excel?

Since you can’t select a row above Row 1, do this:

  • Select the A1

  • Type in the Formula box or press Ctrl + G and type A1, and press Enter.

  • Then go to Home > Format > Hide & Unhide > Unhide Rows. Or use the shortcut key Ctrl + Shift + 9

Topics

Learn Excel with DataCamp

Track

Excel Fundamentals

0 min
Gain the essential skills you need to use Excel, from preparing data to writing formulas and creating visualizations. No prior experience is required.
See DetailsRight Arrow
Start Course
See MoreRight Arrow
Related

Tutorial

Unhide Columns in Excel: Easy Methods and Pro Tips

Learn quick ways to reveal hidden columns, including shortcuts, special cases like column A, and how to manage hidden columns for better spreadsheet organization.
Javier Canales Luna's photo

Javier Canales Luna

Tutorial

How to Move Columns in Excel: Simple Techniques and Pro Tips

Learn different methods to rearrange your spreadsheet by moving single or multiple columns in Excel. Discover practical shortcuts, hidden tricks, and expert tools to speed up your workflow.
Laiba Siddiqui's photo

Laiba Siddiqui

Tutorial

How to Freeze Panes in Excel: A Guide to Lock Rows and Columns

Learn how to keep important rows and columns visible while you scroll in Excel. I’ve explained Freeze Panes step-by-step, with tips for solving everyday problems and improving your workflow.
Laiba Siddiqui's photo

Laiba Siddiqui

Tutorial

Remove Blank Rows in Excel: 4 Easy Methods

Learn how to remove extra rows quickly using sorting, formulas, and VBA, depending on what works best for you.
Laiba Siddiqui's photo

Laiba Siddiqui

Tutorial

Unprotect Excel Sheet: Methods to Unlock and Edit Your Data

Learn how to unprotect an Excel sheet with and without a password.
Laiba Siddiqui's photo

Laiba Siddiqui

Tutorial

How to Insert Multiple Rows in Excel: 4 Different Ways

Learn to insert multiple rows in Excel using menus, shortcut keys, the copy-paste method, or the name box.
Laiba Siddiqui's photo

Laiba Siddiqui

See MoreSee More