How to Hide Rows and Columns in Excel 2013

To hide a row or column in Excel 2013, select it by clicking its row number or column letter, right-click, and choose Hide. The keyboard shortcuts are Ctrl + 9 to hide the selected rows and Ctrl + 0 to hide the selected columns. A double line between headers shows where something is hidden. The same steps work in every newer Excel version.

Excel can’t hide a single cell, only whole rows and columns. If you want to hide what’s in specific cells, use the custom number format trick further down.

Quick Answer

Select the rows or columns > right-click the header > Hide. To show them again, select the headers on both sides > right-click > Unhide.

How to Hide Rows or Columns

  1. Click the row number or column letter. Drag across headers to select several, or hold Ctrl and click to pick ones that aren’t next to each other.
  2. Right-click any selected header.
  3. Choose Hide.
Spreadsheet with rows 4 to 6 selected and the right-click menu showing Hide
Right-click the selected row numbers and choose Hide.

You can also use Home > Format > Hide & Unhide > Hide Rows or Hide Columns. This works even if you’ve only selected a cell in the row or column.

Keyboard Shortcuts

Action Shortcut
Hide rows Ctrl + 9
Hide columns Ctrl + 0
Unhide rows Ctrl + Shift + 9
Unhide columns Ctrl + Shift + 0 (may not work; see Troubleshooting)
Hide via ribbon keys Alt, H, O, U, then R (rows) or C (columns)

How to Unhide Rows or Columns

  1. Select the headers on both sides of the hidden ones. For hidden column C, select B through D.
  2. Right-click the selection and choose Unhide.

To unhide everything, press Ctrl + A (or click the corner box above row 1), then go to Home > Format > Hide & Unhide > Unhide Rows and again for Unhide Columns.

If row 1 or column A is hidden, type A1 in the Name Box to the left of the formula bar, press Enter, then use Home > Format > Hide & Unhide > Unhide Rows (or Columns).

Hide the Contents of Individual Cells

  1. Select the cells and press Ctrl + 1.
  2. On the Number tab, choose Custom.
  3. Type three semicolons (;;;) in the Type box and click OK.

The values disappear from the grid and printouts but stay in the cells and in formulas. You can still see them in the formula bar when the cell is selected. To hide that too, protect the sheet with the cell’s Hidden option turned on (Format Cells > Protection).

Group Instead of Hide

If you’ll hide and show the same rows often, select them and use Data > Group. A plus/minus button appears in the margin so you can collapse and expand them with one click.

To keep a header row in view while scrolling, freeze a row in Excel.

To organise sheets visually, see changing sheet tab colours.

Troubleshooting

  • Ctrl + Shift + 0 doesn’t unhide columns: Windows reserves that combination for switching keyboard input languages. Use right-click > Unhide, or turn off the shortcut in Windows keyboard settings under advanced keyboard, input language hot keys.
  • Unhide is grayed out: The sheet is protected. Go to Review > Unprotect Sheet.
  • Rows won’t unhide: Their height may be set very small rather than hidden, or a filter is hiding them. Set Row Height to 15, or clear the filter with Data > Clear.
  • A column is too narrow to see: See how to set column width in Excel.

Hidden data is still searchable. Learn how to search for a word in Excel, including in hidden cells.

Frequently Asked Questions

Do hidden rows print?

No. Hidden rows and columns are left out of printouts.

Are hidden rows included in SUM?

Yes, SUM includes them. Use SUBTOTAL(109, range) or AGGREGATE to add only visible cells.

How do I hide all unused rows below my data?

Click the first empty row number, press Ctrl + Shift + Down Arrow, and press Ctrl + 9.

Summary

  1. Select the row or column headers.
  2. Right-click and choose Hide, or press Ctrl + 9 / Ctrl + 0.
  3. Select both neighbors and choose Unhide to bring them back.
  4. Use ;;; formatting to hide individual cell contents.