Excel allows us to collapse or expand an entire row, column, outline or group of data. In this tutorial, we will learn how to collapse multiple columns. We will also learn how to expand or collapse rows and outlines in Pivot table fields.
Figure 1 – How to collapse cells
How to Collapse Rows within a Group
Rules of Excel VBA Indentation. There are some generally acceptable rules for indentation. 1) For each set of code that has an starting and ending keyword such as IFEnd If, indent the lines of code between. Use “Tab” key for indentation, Shift+Tab to undo the Tab effect.
- When we have a group in a Pivot table we wish to collapse, we will click on the (-) minus button at the side of the group’s bar to collapse the row.
Figure 2 – Collapsing cells
Here are the steps to add indentation to list items: Select the entire column which has the indentation (in this example, it’s column A). To do this, click on the top of the column label (where it says A) Right-click and select ‘Insert 1 left’. Hi all I have some structured data which uses indentations to display a hierarchy (in the 'Format Cells' dialog under 'Alignment' there is a box 'Indent' which shows the indent/hierarchy level). I'm trying to pull out this indent level without success and hope someone may have some ideas.
- If we do not have a Pivot table, we can also collapse rows in Excel by selecting any cell in the group. Next, we will go to the Data Tab and select Hide detail in the Outline group.
Figure 3 – How to collapse rows
Display the Expand/Collapse buttons
- We may not always find the minus or plus buttons turned on automatically. To display the expand/collapse buttons, we will go to the Pivot table Tools tab and click on the Analyze tab.
- Next, we will click on the table +/- Buttons command to toggle the buttons on or off
Figure 4 – Display Expand/Collapse buttons
How to Collapse or Expand the Entire Outline to a Specific Level
When we want to collapse or expand all groups at a particular level, we will click on the corresponding outline number at the top left corner of the worksheet. In our data, we have 3 outline levels.
Figure 5 – Collapse rows outline
- When we want to collapse our outline to show only 2 outline levels, we will click on the number 2
Figure 6 – Collapsing rows outline
- If we want to collapse further to 1 outline, we will click on the number 1.
Figure 7 – Collapsing rows outline
How to Uncollapse Rows
When we want to expand rows in a particular group, we will click on any cell and go to the Data Tab to select the Show Detail button found in the Outline group.
Figure 8 – How to expand all rows
How to Collapse Columns
We do not collapse columns in Pivot Tables. However, we can collapse columns in Excel.
- We will highlight Column B and C
Figure 9 – Collapsing columns
- Next, we will click on Data and select Group
Figure 10 – How to collapse columns
- We will find the collapse/expand sign beneath the formula bar
- Now, we will click on the Minus sign (-) tocollapse columns
Figure 11 – Collapse 2 columns
- We can always click on the (+) at any time to expand or restore columns.
Figure 12 – Uncollapse columns
Instant Connection to an Excel Expert
Most of the time, the problem you will need to solve will be more complex than a simple application of a formula or function. If you want to save hours of research and frustration, try our liveExcelchat service! Our Excel Experts are available 24/7 to answer any Excel question you may have. We guarantee a connection within 30 seconds and a customized solution within 20 minutes.
In this article we will learn how to decrease and increase the text towards the cell border you can use “Indent” option in Microsoft Excel 2010. It is a part of “Format Cells”, in “Alignment” tab in “Text Alignment”. There are two types of Indent one is “Increase Indent” and second is “Decrease Indent”.
“Decrease Indent is used to move the content closer to the cell border”
“Increase Indent is used to move the content further away from the cell border”
To understand Changing the Indentation in Microsoft Excel 2010/2013,let’s take an example and understand:-
Wrap Text by using the shortcut command
I have text in cell A1 to A12, to change the indentation in a cell follow the below mentioned steps:-
Step 1: Select the list of expenses below each division for example: select the cells A2:A6 (a group of expenses for Department 1).
Step 2: Go to “Home” tab in the group of “Alignment” click on the “Increase Indent” icon on the formatting tool bar several times until you reach the desired indentation.
Excel Indent In Cell
Step 3: To go back the position click on “Decrease Indent” icon on the formatting toolbar several times until you reach the desired indentation.
OR
Step 1: Select the range A2:A7 and Press the key “CTRL + 1”.
Step 2: Format Cells dialog boxwill appear, select the “Alignment” tab and in the Indent box change the number of characters to Indent.
How To Indent On Excel Box
Step 3: Select the Right (Indent) in Horizontal.
Step 4: Type 5 in indent.
How Do You Indent In Excel
Click on Ok.