Xóa Unhide Trong Excel / Top 17 Xem Nhiều Nhất & Mới Nhất 10/2023 # Top Trend | Hoisinhvienqnam.edu.vn

How To Unhide Rows In Excel

Download Article

Download Article

Unhiding a Specific Row

Find the hidden row. Look at the row numbers on the left side of the document as you scroll down; if you see a skip in numbers (e.g., row 23 is directly above row 25), the row in between the numbers is hidden (in 23 and 25 example, row 24 would be hidden). You should also see a double line between the two row numbers.

It’s in the drop-down menu. Doing so will prompt the hidden row to appear.

Unhide a range of rows. If you notice that several rows are missing, you can unhide all of the rows by doing the following:

This tab is just below the green ribbon at the top of the Excel window.

If you’re already on the Home tab, skip this step.

This option is in the “Cells” section of the toolbar near the top-right of the Excel window. A drop-down menu will appear.

You’ll find this option in the Format drop-down menu. Selecting it prompts a pop-out menu to appear.

Adjusting Row Height

This tab is just below the green ribbon at the top of the Excel window.

If you’re already on the Home tab, skip this step.

This option is in the “Cells” section of the toolbar near the top-right of the Excel window. A drop-down menu will appear.

It’s in the drop-down menu. This will open a pop-up window with a blank text field in it.

Enter the default row height. Type 14.4 into the pop-up window’s text field.

Community Q&A

Add New Question

The top 7 rows of my Excel worksheet have disappeared. I’ve tried to “unhide” from the Format menu, but nothing happens. What do I do?

You’ll have to unlock the cells (via the format pop-up), then hide them all before unhiding them.

There is a possibility you did not hide the rows but reduced your rows’ height to minimum. Select all rows above and below of your 7 rows and increase rows height from format menu. It will re-adjust the height of rows and your rows will be visible.

This article was written by Jack Lloyd. Jack Lloyd is a Technology Writer and Editor for wikiHow. He has over two years of experience writing and editing technology-related articles. He is technology enthusiast and an English teacher. This article has been viewed 309,392 times.

How helpful is this?

Updated: November 17, 2023

Thanks to all authors for creating a page that has been read 309,392 times.

Robert Theriault

“I had some rows hidden and couldn’t figure out how to unhide the rows. The article solved that problem for me. Thanks” …” more

Unhiding All Worksheets Within An Excel Workbook

Although you can quickly hide as many worksheets within a workbook as you like, we’re still limited to unhiding individual worksheets one at a time – unless you’re aware of Excel’s Custom Views feature. Fortunately, there is another way to avoid the agony of manually unhiding worksheets one at a time.

In this article I’ll show you how to use a single line of programming code to unhide the worksheets. Programming code in Excel is often referred to as macros. In this case we’re not creating a permanent macro, but rather typing a line of code to run on demand.

Figure 1: There are a variety of ways to hide worksheets in Excel.

Figure 2: Unfortunately, you must unhide worksheets one at a time.

You probably don’t have the time or inclination to unhide more than a couple of worksheets in this fashion, so instead we’ll use a bit of programming code to instantly display all worksheets at once:

As illustrated in Figure 3, press Alt-F11 on your keyboard to display Excel’s Visual Basic Editor. Mac users should press Fn-Alt-F11. Although it looks like a separate program, it’s a hidden aspect of Excel that most users haven’t seen before.

Select Immediate Window from the View menu, or press Ctrl-G on your keyboard (for Mac, Ctrl-Cmd-G).

At this point the Immediate window will appear on-screen. This is a special area where any programming code you type will be executed immediately, hence the name.

Type the following line of programming code into the Immediate window exactly as written below, and press Enter.

For Each s In Sheets: s.Visible = True: Next

The downside of the Immediate Window is you don’t get any direct feedback if your programming code worked, other than seeing that all of your worksheets are now visible within the workbook. Error prompts will appear if you press Enter when the line of code is either incomplete or contains typographical errors.

You may also encounter an error if the workbook is protected by way of the Protect Workbook command on Excel’s Review menu.

You can safely exit the Visual Basic Editor once you’ve run the line of code.

Figure 3: A single line of code in the Immediate Window will unhide all worksheets in the workbook.

The aforementioned line of code utilizes Visual Basic for Applications in Microsoft Excel. This is known as an object-oriented programming language, so if you want a little insight as to what the macro is doing:

For Each sets up a loop.

s is a variable that serves as a temporary placeholder for a worksheet to be acted on.

Sheets is a collection of all worksheets within the workbook. This actually includes other types of sheets as well, meaning Chart Sheets and Macro Worksheets. We could be more specific and use the Worksheets collection instead, but Sheets results in less typing.

Each worksheet has a Visible property, and in this case we’re setting it to True. The setting gets set to False when you hide a worksheet.

Next simply instructs Excel to skip to the next worksheet in succession, until all have been processed.

If you were to store this within a formal macro, the code might take this form:

For each s in Sheets

s.Visible

Next

The Immediate Window only allows us to execute a single line of code at a time, so the colons allow us to string three lines of code together into a single line that can be executed.

How To Quickly Unhide Columns In Excel

If you prefer written instruction instead, below is the tutorial.

Hidden rows and columns can be quite irritating at times.

Especially if someone else has hidden these and you forget to unhide it (or even worse, you don’t know how to unhide these).

While I can’t do anything about the first issue, I can show you how to unhide columns in Excel (the same techniques can also be used to unhide rows).

It may happen that one of the methods of unhiding columns/rows may not work for you. In that case, it is good to know the alternatives that can work.

How to Unhide Columns in Excel

There are many different situations where you may need to unhide the columns:

Multiple columns are hidden and you want to unhide all columns at once

You want to unhide a specific column (in between two columns)

You want to unhide the first column

Let’s go through each for these scenarios and see how to unhide the columns.

Unhide All Columns At One Go

If you have a worksheet that has multiple hidden columns, you don’t need to go hunt each one and bring it to light.

You can do that all in one go.

And there are multiple ways to do this.

Using the Format Option

Here are the steps to unhide all columns at one go:

No matter where that pesky column is hidden, this will unhide it.

Note: You can also use the keyboard shortcut Control A A (hold the control key and hit the A key twice) to select all the cells in the worksheet.

Using VBA

If you need to do this often, you can also use VBA to get this done.

The below code will unhide column in the worksheet.

Sub UnhideColumns () Cells.EntireColumn.Hidden = False EndSub

You need to place this code in the VB Editor (in a module).

If you want to learn how to do this with VBA, read a detailed guide on how to run a macro in Excel.

Using a Keyboard Shortcut

If you’re more comfortable using keyboard shortcuts, there is a way to unhide all columns with a few keystrokes.

Here are the steps:

Select any cell in the worksheet.

Press Control-A-A (hold the control key and press A twice). This will select all the cells in the worksheet

Use the following shortcut – ALT H O U L (one key at a time)

If you can get hang of this keyboard shortcut, it could be a lot faster to unhide columns.

Note: The reason you need to press A twice when holding the control key is that sometimes when you press Control A, it only selects the used range in Excel (or the area that has the data) and you need to press the A again to select the entire worksheet.

Another keyword shortcut that works for some and not for others is Control 0 (from a numeric keypad) or Control Shift 0 from a non-numeric keypad. It used to work for me earlier but doesn’t work anymore. Here is some discussion on why it may happen. I suggest you use the longer (ALT HOUL) shortcut that works every time.

Unhide Columns in Between Selected Columns

There are multiple ways you can quickly unhide columns in between selected columns. The methods shown here are useful when you want to unhide a specific column(s).

Let’s go through these one-by-one (and you can choose to use that you find the best).

Using a Keyboard Shortcut

Below are the steps:

Select the columns that contain the hidden columns in between. For example, if you are trying to unhide column C, then select column B and D.

Use the following shortcut – ALT H O U L (one key at a time)

This will instantly unhide the columns.

Using the Mouse

One quick and easy way to unhide a column is to use the mouse.

Below are the steps:

Hover your mouse in between the columns alphabets that have the hidden column(s). For example, if Column C is hidden, then hover the mouse between Column B and D (at the top of the worksheet). You will see a double line icon with arrows pointing on left and right.

Hold the left key of the mouse and drag it to the right. It will make the hidden column appear.

Using the Format Option in the Ribbon

Under the home tab in the ribbon, there are options to hide and unhide columns in Excel.

Here is how to use it:

Select the columns between which there are hidden columns.

Hover the cursor on Hide & Unhide option.

Using VBA

Below is the code that you can use to unhide columns in between the selected columns.

Sub UnhideAllColumns() Selection.EntireColumn.Hidden = False End Sub

You need to place this code in the VB Editor (in a module).

If you want to learn how to do this with VBA, read a detailed guide on how to run a macro in Excel.

By Changing the Column Width

There is a possibility that none of these methods work when you try to unhide column in Excel. It happens when you change the Column Width to 0. In that case, even if you unhide the column, it’s width still remains 0, and hence you can’t see it or select it.

Below are the steps to change the column width:

In the name box, type any cell address in that column. For example, if it is column C, type C1.

Although the column is not visible, the cursor would go in between B1 and D1 (indicating that C1 has been selected).

Enter a column width value to make the column visible.

This is by far the most reliable way to unhide columns in Excel. If everything fails, just change the column width.

Unhide the First Column

Unhiding the first column can be a little bit tricky.

You can use many of the methods covered above, with a little bit of extra work.

Let me show you a few ways.

Use the Mouse to Drag the First Column

Even when the first column is hidden, Excel allows you to select it and drag it to make it visible.

To do this, hover the cursor on the left edge of column B (or whatever is the leftmost visible column).

The cursor would change into a double arrow pointer as shown below.

Hold the left mouse button and drag the cursor to the right. You will see that it unhides the hidden column.

Go to a Cell in the First Column and Unhide it

But how do you go to any cell in the column that’s hidden?

Good question!

You use the Name Box (it’s left to the formula bar).

Enter A1 in the Name Box. It will instantly take you to the A1 cell. Since the first column is hidden, you won’t be able to see it, but be assured that it’s selected (you’ll still see a thin line just left of B1).

Once the hidden column cell is selected, follow the below steps:

Hover the cursor on the ‘Hide & Unhide’ option.

Select the First Column and Unhide it

Again! How do you select it when it’s hidden?

Well, there are many different ways to skin the cat.

And this is just another method in my kitty (this is the last cat sounding reference I promise).

When you select the leftmost visible cell and drag the cursor to the left (where there are row numbers), you end up selecting all the hidden columns (even when you don’t see it).

Once you have select all the hidden columns, follow the below steps:

Hover the cursor on the ‘Hide & Unhide’ option.

Check The Number of Hidden Columns

Excel has an ‘Inspect Document’ feature that is meant to quickly scan the workbook and give you some details about it.

And one of the things that you can do that ‘Inspect Document’ is to quickly check how many hidden columns or hidden rows are there in the workbook.

This might be useful when you get the workbook from someone and want to quickly inspect it.

Below are the steps on how to check the total number of hidden columns or hidden rows:

Open the workbook

In the Document Inspector, make sure Hidden Rows and Columns option is checked.

This will show you the total number of hidden rows and columns.

It also gives you the option to delete all these hidden rows/columns. This can be the case if there is extra data that has been hidden and is not needed. Instead of finding hidden rows and columns, you can quickly delete these from this option.

You May Also Like the following Excel Tips/Tutorials:

How To Hide And Unhide Worksheets In Excel

What to Know

This article explains how to hide and unhide worksheets using the contextual menu and the ribbon in Excel for Microsoft 365, Excel 2023, 2023, 2013, and 2010. 

Data Use in Hidden Worksheets

By default, all open Excel workbooks display worksheet tabs on the taskbar at the bottom of the screen, but you can hide or display them as needed. At least one worksheet must be visible at all times.

Hiding worksheets doesn’t mean you’re deleting them, and you can still reference them in formulas and charts located on other worksheets or other workbooks.

Hide Worksheets Using the Contextual Menu

If the Hide option is inactive or grayed out, most likely, the current workbook has only one worksheet. Excel deactivates the Hide option for single-sheet workbooks because there must always be at least one visible sheet.

How to Hide a Single Worksheet

How to Hide Multiple Worksheets

Press and hold down the Ctrl key on the keyboard.

Hide Worksheets Using the Ribbon

Excel has no keyboard shortcut for hiding worksheets, but you can use the ribbon bar to accomplish the same task.

Select one or more worksheet tabs at the bottom of an Excel file.

Select Format in the Cells group.

Select Hide Sheet.

Unhide Worksheets Using the Contextual Menu

You can unhide tabs using the contextual menu, just as you can hide them.

Unhide Worksheets Using the Ribbon

As with hiding worksheets, Excel has no keyboard shortcut for unhiding a sheet, but you can still use the ribbon.

Select one or more worksheet tabs at the bottom of the Excel file.

Select Format.

Select Unhide Sheet.

How To Hide And Unhide Rows In Excel

The tutorial shows three different ways to hide rows in your worksheets. It also explains how to show hidden rows in Excel and how to copy only visible rows.

If you want to prevent users from wandering into parts of a worksheet you don’t want them to see, then hide such rows from their view. This technique is often used to conceal sensitive data or formulas, but you may also wish to hide unused or unimportant areas to keep your users focused on relevant information.

On the other hand, when updating your own sheets or exploring inherited workbooks, you would certainly want to unhide all rows and columns to view all data and understand the dependencies. This article will teach you both options.

How to hide rows in Excel

Anyway, you begin with selecting the rows you’d like to hide:

To select multiple contiguous rows, drag across the row headings using the mouse. Or select the first row and hold down the Shift key while selecting the last row.

With the rows selected, proceed with one of the following options.

Hide rows using the ribbon

If you enjoy working with the ribbon, you can hide rows in this way:

Under Visibility, point to Hide & Unhide, and then select Hide Rows.

Either way, the selected rows will be hidden from view straight away.

If you’d rather not take your hands off the keyboard, you can quickly hide the selected row(s) by pressing this shortcut: Ctrl + 9

How to unhide rows in Excel

As with hiding rows, Microsoft Excel provides a few different ways to unhide them. Which one to use is a matter of your personal preference. What makes the difference is the area you select to instruct Excel to unhide all hidden rows, only specific rows, or the first row in a sheet.

Unhide rows by using the ribbon

Here is the Excel Unhide Rows shortcut: Ctrl + Shift + 9

Pressing this key combination (3 keys simultaneously) displays any hidden rows that intersect the selection.

In order to unhide all rows on a sheet, you need to select all rows. For this, you can either:

Press the Select All shortcut: Ctrl + A

Please note that in Microsoft Excel, this shortcut behaves differently in different situations. If the cursor is in an empty cell, the whole worksheet is selected. But if the cursor is in one of contiguous cells with data, only that group of cells is selected; to select all cells, press Ctrl+A one more time.

Once the entire sheet is selected, you can unhide all rows by doing one of the following:

Press Ctrl + Shift + 9 (the fastest way).

How to unhide all cells in Excel

To unhide all rows and columns, select the whole sheet as explained above, and then press Ctrl + Shift + 9 to show hidden rows and Ctrl + Shift + 0 to show hidden columns.

How to unhide specific rows in Excel

Depending on which rows you want to unhide, select them as described below, and then apply one of the unhide options discussed above.

To show one or several adjacent rows, select the row above and below the row(s) that you want to unhide.

To unhide multiple non-adjacent rows, select all the rows between the first and last visible rows in the group.

For example, to unhide rows 3, 7, and 9, you select rows 2 – 10, and then use the ribbon, context menu or keyboard shortcut to unhide them.

How to unhide top rows in Excel

Hiding the first row in Excel is easy, you treat it just like any other row on a sheet. But when one or more top rows are hidden, how do you make them visible again, given that there is nothing above to select?

The clue is to select cell A1. For this, just type A1 in the Name Box, and press Enter.

Tips and tricks for hiding and unhiding rows in Excel

As you have just seen, hiding and showing rows in Excel is quick and straightforward. In some situations, however, even a simple task can become a challenge. Below you will find easy solutions to a few tricky problems.

How to hide rows containing blank cells

To hide rows that contain any blank cells, proceed with these steps:

Select the range that contains empty cells you want to hide.

Press Ctrl + 9 to hide the corresponding rows.

This method works well when you want to hide all rows that contain at least one blank cell, as shown in the screenshot below:

If you want to hide blank rows in Excel, i.e. the rows where all cells are blank, then use the COUNTBLANK formula explained in How to remove blank rows to identify such rows.

How to hide rows based on cell value

To hide and show rows based on a cell value in one or more columns, use the capabilities of Excel Filter. It provides a handful of predefined filters for text, numbers and dates as well as an ability to configure a custom filter with your own criteria (please follow the above link for full details).

To unhide filtered rows, you remove filter from a specific column or clear all filters in a sheet, as explained here.

Hide unused rows so that only working area is visible

In situations when you have a small working area on the sheet and a whole lot of unnecessary blank rows and columns, you can hide unused rows in this way:

Press Ctrl + Shift + Down arrow to extend the selection to the bottom of the sheet.

Press Ctrl + 9 to hide the selected rows.

In a similar fashion, you hide unused columns:

Select an empty column that comes after the last column with data.

Press Ctrl + Shift + Right arrow to select all other unused columns to the end of the sheet.

Press Ctrl + 0 to hide the selected columns. Done!

If you decide to unhide all cells later, select the entire sheet, then press Ctrl + Shift + 9 to unhide all rows and Ctrl + Shift + 0 to unhide all columns.

If your worksheet contains hundreds or thousands of rows, it can be hard to detect hidden ones. The following trick makes the job easy.

This will select all visible cells and mark the rows adjacent to hidden rows with a white border:

How to copy visible rows in Excel

Supposing you have hidden a few irrelevant rows, and now you want to copy the relevant data to another sheet or workbook. How would you go about it? Select the visible rows with the mouse and press Ctrl + C to copy them? But that would also copy the hidden rows!

To copy only visible rows in Excel, you’ll have to go about it differently:

Select visible rows using the mouse.

Press Ctrl + C to copy the selected rows.

Press Ctrl + V to paste the visible rows.

Cannot unhide rows in Excel

If you have troubles unhiding rows in your worksheets, it’s most likely because of one of the following reasons.

1. The worksheet is protected

Whenever the Hide and Unhide features are disabled (greyed out) in your Excel, the first thing to check is worksheet protection.

2. Row height is small, but not zero

In case the worksheet is not protected but specific rows still cannot be unhidden, check the height of those rows. The point is that if a row height is set to some small value, between 0.08 and 1, the row seems to be hidden but actually it is not. Such rows cannot be unhidden in the usual way. You have to change the row height to bring them back.

To have it done, perform these steps:

Select a group of rows, including a row above and a row below the problematic row(s).

This will make all hidden rows visible again.

If the row height is set to 0.07 or less, such rows can be unhidden normally, without the above manipulations.

3. Trouble unhiding the first row in Excel

If someone has hidden the first row in a sheet, you may have problems getting it back because you cannot select the row before it. In this case, select cell A1 as explained in How to unhide top rows in Excel and then unhide the row as usual, for example by pressing Ctrl + Shift + 9.

If none of the above tips has worked for you, there is a chance that the hidden rows are a result of filtering. In this case, clear the filters, as explained in How to remove filter in Excel.

This is how you hide and undie rows in Excel. I thank you for reading and hope to see you on our blog next week!

You may also be interested in