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 26, 2016)

6

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. ...

MORE FROM ALLEN

Getting Rid of Empty Rows after Importing

Import data into a worksheet (or paste it there) and you may find that you end up with a group of blank cells you need to ...

Discover More

Printing Portions of Mail Merged Documents

When you use a data source to create a bunch of documents in a mail merge, you might not want to print all the documents ...

Discover More

Finding Quoted Text in VBA

Macros are created for all sorts of purposes in creating, editing, and processing documents. You might want to use a ...

Discover More

Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!

More ExcelTips (ribbon)

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

Automatic Row Height for Wrapped Text

When you format a cell so that the information within it can wrap to multiple lines, you may be surprised if Excel ...

Discover More

Adjusting Row Height for a Number of Worksheets

Adjusting the height of a row or range of rows is relatively easy in Excel. How do you adjust the height of those same ...

Discover More
Subscribe

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

View most recent newsletter.

Comments

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}] 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 4?

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

HIDING OF COLUMNS
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
Subscribe

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.