Field Guide

How to hide columns in Excel: hide, unhide, and group rows and columns

Updated

To hide a column in Excel, select its column header (or several by holding Ctrl), right-click the selection, and choose Hide; a thin double line appears where the column used to be. To bring it back, select the columns on both sides of that double line, right-click, and choose Unhide. Rows work exactly the same way from the row headers down the left edge.

Hiding takes a column or row off the screen without removing its contents, so a hidden column still travels inside the workbook. That sets it apart from two features it gets confused with. Keeping a column or row in view while you scroll the rest of the sheet is freezing, which freeze panes covers. And switching rows in and out of view from the header arrows, as a toggle you can turn back off, is AutoFilter. This page is about the manual hide, the group and outline feature that folds sections away on demand, and the two headers that are genuinely awkward to recover: column A and row 1.

How do I hide a column or a row?

Select one or more column headers along the top of the grid, then right-click any of the selected headers and choose Hide. To hide columns that are not next to each other, hold Ctrl as you click each header first, then hide them in one action. Rows are identical: select the row headers on the left edge, right-click, and choose Hide. Either way Excel closes the gap and leaves a double line between the neighboring headers, which is the cue that something is hidden there.

The same commands sit on the ribbon. On the Home tab, in the Cells group, select Format, then Hide & Unhide, and pick the hide or unhide command for rows or columns.

A B D E
1 Region Jan Mar Apr
2 East 100 130 150
3 West 250 300 280
Column C is hidden, so the header row jumps straight from B to D. The February figures in column C are still stored in the workbook; hiding only takes them off the screen.

How do I unhide a column or a row?

Select the columns on both sides of the double line, right-click either header, and choose Unhide, and the hidden column reappears between them. A quicker route is to double-click the double line itself, which unhides the column behind it. Rows come back the same way: select the rows above and below the gap, right-click, and choose Unhide, or double-click the double line between the two row headers.

On the ribbon, these live at Home > Cells > Format > Hide & Unhide, where the two unhide items are named Unhide Columns and Unhide Rows.

How do I bring back column A or row 1?

Column A and row 1 are the two that resist this, because there is no header to the left of column A or above row 1 to serve as the second side of the selection. So the select-both-sides trick has nothing to grab, and Excel gives you two ways around it.

The first uses the Name Box, the small box just left of the formula bar. Type A1 there and press Enter: even though the cell is out of sight, this selects it. Then on the Home tab, in the Cells group, select Format, point to Hide & Unhide, and choose Unhide Columns to bring back column A, or Unhide Rows to bring back row 1. (Reaching the same cell through Home > Find & Select > Go To, typing A1 in the Reference box, and selecting OK works too.)

The second route is a right-click on the visible neighbor. Right-click the column B header and choose Unhide, and column A slides back into place; right-click the row 2 header and choose Unhide to recover row 1. If the menu does not show those items, make sure you are right-clicking inside the header label itself.

You could instead select the whole sheet and unhide everything from Home > Cells > Format > Hide & Unhide, but that reveals every hidden row and column at once, which is usually more than you were after.

How do I group rows or columns instead of hiding them?

Hiding is a flat on or off. If you keep folding the same sections away and opening them again, grouping is the smoother tool. Select the rows (or columns) you want to fold together, then go to Data > Outline > Group > Group. In the Group dialog, choose Rows or Columns and select OK. If you select whole rows rather than just cells, Excel groups by row without even opening that dialog.

Grouping adds outline controls next to the headers: a stack of numbered buttons, 1, 2, 3, in the corner, plus a + or - button for each group. Select a level number to collapse the sheet to that depth, so 1 shows only the top summary and the highest number shows every detail row. Select a group’s - button to fold it away, or its + button to open it back up; ALT+SHIFT+- collapses the selected group and ALT+SHIFT+= expands it. You can nest groups inside groups, up to eight levels deep.

To take a grouping apart, select the rows or columns and go to Data > Outline > Ungroup, or use Data > Outline > Ungroup > Clear Outline to strip the whole outline in one move. Nothing is deleted either way. If the numbered buttons and the +/- controls are missing in the Windows desktop app, turn them on under File > Options > Advanced, in the display options for the worksheet, with Show outline symbols if an outline is applied.

The short version

Frequently asked questions

How do I hide columns in Excel?
Select one or more column headers along the top of the grid, right-click any of the selected headers, and choose Hide. To pick columns that are not next to each other, hold Ctrl as you click each header, then hide them together. Rows work the same way from the row headers on the left edge. Once a column is hidden, a double line between the neighboring headers shows where it went. The same commands also live on the ribbon at Home > Cells > Format > Hide & Unhide.
How do I unhide columns in Excel?
Select the columns on both sides of the double line, right-click either header, and choose Unhide, and the hidden column reappears between them. You can also double-click the double line itself to unhide the column behind it. Rows unhide the same way: select the rows above and below the gap and choose Unhide, or double-click the double line between the two row headers. On the ribbon, the same items are at Home > Cells > Format > Hide & Unhide, named Unhide Columns and Unhide Rows.
How do I unhide column A, the first column?
Column A is awkward because there is no header to its left to include in the selection. Type A1 in the Name Box to the left of the formula bar and press Enter to select the hidden cell, then on the Home tab, in the Cells group, select Format, point to Hide & Unhide, and choose Unhide Columns. Or right-click the column B header and choose Unhide, which brings column A back into place.
How do I unhide row 1, the first row?
Row 1 has nothing above it to select, so use one of two routes. Type A1 in the Name Box and press Enter, then choose Home > Cells > Format > Hide & Unhide > Unhide Rows. Or right-click the row 2 header and choose Unhide to recover row 1. If the right-click menu does not show Unhide, make sure you are clicking inside the row label itself.
How do I group rows in Excel?
Select the rows you want to fold together, then go to Data > Outline > Group > Group, choose Rows in the Group dialog, and select OK. If you select whole rows rather than just cells, Excel groups by row without opening that dialog. Grouping adds numbered 1, 2, 3 buttons and a plus or minus control beside the headers: select a number to collapse the sheet to that level, or use the minus and plus buttons, or ALT+SHIFT+- and ALT+SHIFT+=, to close and open a group. To undo it, select the rows and go to Data > Outline > Ungroup.
Does hiding a column delete the data?
No. Hiding takes a column or row off the screen and out of a printout, but its contents stay in the workbook and come straight back when you unhide it. Grouping and outlining do not delete anything either. Because the data is still stored in the file, a formula elsewhere can still reach the cells in a hidden column, and a comparison of two versions still reads them.

Catch the errors before they ship

Reviewing a change to a model? Compare the two versions in your browser and see every changed cell, formula, and value. It's free, and nothing leaves your computer.