Cập nhật thông tin chi tiết về How To Hide And Unhide Worksheets In Excel / 2023 mới nhất trên website Trucbachconcert.com. Hy vọng nội dung bài viết sẽ đáp ứng được nhu cầu của bạn, chúng tôi sẽ thường xuyên cập nhật mới nội dung để bạn nhận được thông tin nhanh chóng và chính xác nhất.
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 2019, 2016, 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 Unhide Sheet.
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
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
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.
This tutorial will teach you how to group worksheets together in Excel to get the ability to modify multiple sheets at a time.
Have you ever found yourself in a situation when you need to perform the same tasks on multiple sheets? That’s very easy to do with the Group Worksheets feature. If your sheets have the same layout and structure, just group them together, and any changes you make on one sheet will be automatically applied to all other worksheets in the group.
When you are working with a set of identically structured sheets, grouping them together can save you a lot of time. Once the worksheets are grouped, you can enter the same data, make the same changes, write the same formulas and apply the same formatting to all the worksheets at once without having to switch through different sheets and edit each one individually.
Here are just a few examples of what you can do to a group of worksheets:
Add new or edit the existing data on several worksheets at a time.
Perform the same calculations with the same regions and cells.
Print out a selection of worksheets.
Set up the header, footer, and page layout.
Correct the same typo or mistake on multiple sheets.
Move, copy, or delete a group of worksheets.
In the screenshot below, we are setting up a table with the same data, formatting and layout for the 4 grouped worksheets: East, North, South and West.
How to group worksheets in Excel
For example, here’s how you can group two worksheets:
Once the worksheets are grouped, you can edit them all in one go. Also, you can perform calculations that will automatically reflect on all the worksheets in the group.
As an example, suppose we want to calculate the amount of commission based on the commission percentage (column C) and sales (column D) on the following sheets: East, North, South and West.
Here’s the fastest way:
Group the 4 sheets.
Enter the below formula in cell E2, and copy it down through cell E5: =C2*D2
Done! The formula will appear on all the grouped sheets in the same cells.
How to group all worksheets in Excel
To group all the worksheets in a workbook, this is what you need to do:
Choose Select All Sheets in the context menu.
Note. When all the sheets in a workbook are grouped, switching to another sheet tab will ungroup the worksheet. If only some worksheets are grouped, you can browse through the grouped sheets without ungrouping them.
How do you tell if worksheets are grouped in Excel?
There are two visual signs of grouped worksheets in Excel:
The sheet tabs in a group have a white background; the sheet tabs outside the group appear in gray.
The word Group is added to the name of the workbook; as soon as the worksheets are ungrouped, it disappears.
How to ungroup worksheets in Excel
After you’ve made the desired changes, you can ungroup the worksheets in this way:
Choose Ungroup Sheets in the context menu.
That’s how to group and ungroup worksheets in Excel. I thank you for reading and hope to see you on our blog again next week!
You may also be interested in
Bạn đang xem bài viết How To Hide And Unhide Worksheets In Excel / 2023 trên website Trucbachconcert.com. Hy vọng những thông tin mà chúng tôi đã chia sẻ là hữu ích với bạn. Nếu nội dung hay, ý nghĩa bạn hãy chia sẻ với bạn bè của mình và luôn theo dõi, ủng hộ chúng tôi để cập nhật những thông tin mới nhất. Chúc bạn một ngày tốt lành!