Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, and 2016. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Hiding and Unhiding Rows.

Hiding and Unhiding Rows

by Allen Wyatt
(last updated November 5, 2020)


Excel allows you to easily hide a row, meaning it will not be shown on the display or printed when you print the worksheet. The row is not deleted; its height is simply reduced to 0. To hide a row, follow these steps:

  1. Select any cell in the row (or rows) you want to hide.
  2. Make sure the Home tab of the ribbon is displayed.
  3. In the Cells group, click the Format tool. Excel displays a number of formatting options.
  4. Click Hide & Unhide and then Hide Rows.

You can also hide rows by selecting those you want to hide, right-clicking on the selected rows, and choosing Hide from the resulting Context menu.

When you hide rows in a worksheet, you will notice that the other rows are not renumbered. Instead, a thick bar appears in the row header area (at the left side of the screen) to indicate that there are hidden rows at that point. You can unhide previously hidden rows by following these steps:

  1. Select the rows on both sides of those that are hidden. For instance, if rows 7 through 11 are hidden, select rows 6 and 12.
  2. Make sure the Home tab of the ribbon is displayed.
  3. In the Cells group, click the Format tool. Excel displays a number of formatting options.
  4. Click Hide & Unhide and then Unhide Rows.

You can also unhide rows by selecting the rows on both sides of those you want to unhide (see step 1 for an example), right-clicking on the selected rows, and choosing Unhide from the resulting Context menu.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (6292) applies to Microsoft Excel 2007, 2010, 2013, and 2016. You can find a version of this tip for the older menu interface of Excel here: Hiding and Unhiding Rows.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...


Adding a Macro to the Quick Access Toolbar

One of the easiest ways to quickly access a macro is to assign it to the Quick Access toolbar. Here's how you can make ...

Discover More

Transferring Ribbon Customizations

Excel allows you to make a wide range of customizations to both the Quick Access Toolbar and the ribbon. If you want to ...

Discover More

Putting Headers and Footers on Multiple Worksheets

You can easily create headers and footers for multiple worksheets by working with a selection set of the worksheets you ...

Discover More

Solve Real Business Problems Master business modeling and analysis techniques with Excel and transform data into bottom-line results. This hands-on, scenario-focused guide shows you how to use the latest Excel tools to integrate data from multiple tables. Check out Microsoft Excel 2013 Data Analysis and Business Modeling today!

More ExcelTips (ribbon)

Changing Default Row Height

Changing the default row height used for a worksheet is relatively easy, as long as you don't mind the row height never ...

Discover More

Adjusting Row Height for Your Text

Want Excel to automatically adjust the height of a worksheet row when it wraps text within the cell? It's easy to do, ...

Discover More

Hiding a Huge Number of Rows

Need to hide a large number of rows? It's easy to do if you combine a few keyboard shortcuts. Here are several techniques ...

Discover More

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.


If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is five minus 3?

2020-11-06 06:03:52

Peter Atherton

I missed the Unhide Macro
Sub UnhideRC()
With ActiveSheet
.Rows.Hidden = False
.Columns.Hidden = False
End With
End Sub

2020-11-06 06:01:06

Peter Atherton

Interest Comments by all.
Starting from the top.
Alex B. I managed to hide all the rows, not woken properly, so needed a macro to unhide them.
Charles Pegman, You can also set the Column width to 0.5 (Excel changes it to 0.43) and you will hardly notice. However, I would hide the column and unhide it in the macro before running the code and then rehiding it at the end. (See Test code)
Tamara Powel; Neat idea! I hadn't thought of that.

Sub WorkWithHidden()
Dim rg As Range, c As Range, lrow As Long
With Application
.ScreenUpdating = False
End With
'test code
lrow = Cells(Rows.Count, "C").End(xlUp).Row
Set rg = Range(Cells(1, 3), Cells(lrow, "C"))
For Each c In rg
Debug.Print c
[C:C].Columns.Hidden = True
End Sub

2020-11-05 10:19:48

Ronald Jordan

The instructions to hide / unhide rows also applies to columns.

2016-12-04 22:42:10

Alex B

The tip should work for unhiding the first row or column in a table unless its also the first row or column in the spreadsheet.

In Excel 2010, what works for me if Row 1 is hidden is to hover over the top left corner (the select all corner) and then lower you cursor until you get to the bottom margin of that square at which point the cursor changes to a double line with arrows in both directions. Double click and it will unhide the row.
This works for columns as well but you would move to the right hand side of that box for the cursor to change. I do find you need to need to scroll the sheet left to show the now unhidden first column.
The cursor change doesn't happen if there is nothing hidden in the direction you are trying to unhide.

You can also do <F5> a1 OK and then unhide but the above is easier. (ie Goto the hidden cell a1)

2016-11-30 05:56:40

Charles Pegman

I have a worksheet where I use a macro to copy data from a "booking" sheet to an "invoice" sheet.
I hid some columns on the booking sheet to make things clearer and the invoices stopped working properly. After investigation it turns out that columns with width=0 are ignored by the macro, so all the subsequent cells are in the wrong place (by the number of cols hidden).
My fix is, rather than use "hide", I reset the width to 1 pixel. Not as neat on the screen but saves having to recode the macro.

2016-11-29 16:31:27

Tamara Power

If the first row is hidden, you can click the triangle in the top left corner to select the whole sheet, then right click on the row numbers and select unhide.

I'm with Alex though, I almost never hide rows or columns, I just group them so that they won't show. If I need hidden areas for formulas or lookup tables (for data validation drop down lists for example) I just put them all in named ranges on a new sheet. If it needs to be hidden then I can hide the whole sheet and not copy something over a hidden field by mistake.

2016-11-26 16:53:51

James Turner

The easiest way to hide a row is to highlight the row or rows, right click, and select hide. To unhide, highlight the visible rows on both sides of the hidden, right click and select unhide.

2016-11-26 13:37:00

Sheryl L

This method does not work for unhiding the first row or column in a table.

2016-11-26 06:03:04

Alex B

Its worth considering using Data > Group to hide the rows because that gives you a visual queue that you have rows hidden, as well as a toggle switch to hide and unhide the rows.

This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.