The fastest way to hide a row in Excel is to right-click its row number and choose Hide; on the keyboard, select the row and press Ctrl + 9. These methods work in Microsoft 365, Excel 2024, 2021, 2019, and 2016 on Windows and Mac, though the exact menu wording varies slightly between platforms and app versions.

How to Hide a Row in Excel

  1. Click any cell in the row you want to hide, or click the row's number on the left edge to select the entire row.
  2. To hide multiple rows at once, drag across the row numbers, or hold Ctrl and click each nonadjacent row number.
  3. Right-click the selected row number and choose Hide, or go to Home > Cells > Format > Hide & Unhide > Hide Rows.
  4. Use the keyboard shortcut Ctrl + 9 (Windows) as the quickest alternative once the rows are selected.
  5. Confirm the rows disappeared by checking that the row-number sequence now skips numbers, for example jumping from 4 to 7.

If the right-click context menu doesn't show Hide, the sheet is probably protected or grouped. Check for a Protected View banner or Review > Unprotect Sheet before retrying.

Hide Rows on the Ribbon, by Height, or via Keyboard

The right-click method is the default, but the ribbon and row-height route gives you a reversible, exact control that also works when context menus are disabled.

  • Ribbon path: Home > Cells > Format > Hide & Unhide > Hide Rows.
  • Zero height: Home > Cells > Format > Row Height, then type 0 and press OK. This hides the row exactly as the Hide command does.
  • Keyboard: select the rows, then press Ctrl + 9. On Mac Excel, use Ctrl + 9 as well; Cmd + 9 is not mapped to Hide Rows.

All three are functionally equivalent. Use the ribbon or height method when teaching or scripting repeated layouts; use the shortcut when speed matters.

Unhide Rows in Excel

Unhiding is where most people get stuck, because the gray gutter left by a hidden row is easy to miss.

  1. Select the rows immediately above and below the hidden row (or rows), so the selection spans the gap.
  2. Right-click either selected row number and choose Unhide, or use Home > Cells > Format > Hide & Unhide > Unhide Rows.
  3. Alternatively, double-click the double line between the two visible row numbers where the hidden rows sit.
  4. To unhide everything on a sheet, click the select-all triangle at the intersection of the column letters and row numbers, right-click any row number, and choose Unhide.

If Unhide is grayed out or does nothing, the selection wasn't spanning the hidden boundary, or the sheet is protected. Select the full address range including the gap before retrying.

Keyboard Shortcuts and Methods by Platform

Task Windows Excel Mac Excel
Hide selected rows Ctrl + 9 Ctrl + 9
Unhide rows Select spanning rows, then Ctrl + Shift + 9 Select spanning rows, then Ctrl + Shift + 9
Hide selected columns Ctrl + 0 Ctrl + 0
Open Format menu Alt, H, O menu bar Format > Rows

The Ctrl + Shift + 9 shortcut only reveals a hidden row when the rows on both sides of the gap are selected; if you select only one side, it silently does nothing. On Mac keyboards, confirm the function keys are set to standard F-keys if a shortcut behaves unexpectedly, since F9-style keys can intercept some combinations.

Why Hidden Rows Can Break Filters, Copies, and Printouts

Hiding rows is a display operation, not a data operation—the values remain in the sheet. That distinction causes the practical problems below.

  • Copy-paste: copying a range with hidden rows copies the hidden values too unless you use Home > Editing > Find & Select > Go To Special > Visible cells only, or press Alt + ; before copying.
  • Sorting and filtering: a filter can conflict with manually hidden rows because Excel keeps filtered-out rows hidden independently. Clearing the filter restores filtered rows but leaves manually hidden rows hidden.
  • Printing: hidden rows don't print. If rows disappear on paper but show on screen, check Page Layout > Print Area and any row-level print settings before assuming a bug.
  • Formulas: hidden rows still calculate and are still included in SUM, COUNTA, and similar functions. Use SUBTOTAL or AGGREGATE when you need totals that ignore hidden rows.

The official Hide or show rows or columns reference confirms the right-click, ribbon, and double-click paths; the same page's alternate version for columns documents the row-height-zero method and its reversibility.

When Hide Rows Is Missing, Grayed Out, or Reverts

If Hide is unavailable, the cause is almost always one of the following, in order of likelihood.

  • Protected sheet: Review > Unprotect Sheet (or the password prompt) restores the commands. Some templates protect sheets by default.
  • Grouped or shared workbook: shared workbooks and some grouped selections (via Alt + Shift + → outlining) can gray out or reorganize the hide commands. Ungroup with Data > Outline > Ungroup.
  • Protected View: files downloaded from email or the web open in Protected View, where editing is disabled. Click Enable Editing in the yellow banner.
  • Hidden rows revert after reopening: a macro or a saved filtered view may be re-applying the hidden state. Check View > Sheet View and any active workbook macros.
  • Rows won't hide at all: confirm you've selected the row header, not just cells; the Hide command acts on entire rows only.

If the issue persists on a work-managed device with a locked template, contact your IT administrator rather than editing protection settings directly.

Excel for the Web and Mobile Differences

Excel for the web supports hiding and unhiding rows through the right-click menu and the Home > Format > Hide & Unhide path, with the same Ctrl + 9 shortcut on Windows browsers. The web app's context menus are more limited than the desktop version, so the ribbon route is the most reliable.

On Excel for iOS and Android, tap the row number, open the context menu (usually a small chevron or long-press), and choose Hide. Unhiding requires selecting the rows above and below the gap—mobile has no double-click on the boundary, so the spanning-selection method is the only reliable route there.

Frequently Asked Questions

Does hiding rows delete the data inside them?

No. Hidden rows keep their values, formulas, and formatting; they are simply not displayed, copied by default, or printed. Unhiding restores them exactly as they were.

Can I hide rows with a formula or shortcut without selecting them first?

Not with a single built-in shortcut, because Excel needs an explicit target. You can hide rows programmatically with a short VBA macro or by using the filter feature to suppress rows matching a criterion—filtering is the no-code equivalent.

Why does Ctrl + 9 do nothing on my keyboard?

Ctrl + 9 hides rows only when at least one full row is selected in the sheet grid, and it is blocked on protected sheets. Click a row number first, then press the shortcut; on some laptops, confirm Num Lock isn't remapping the number row.

How do I hide rows in Google Sheets instead?

Select the row numbers, right-click, and choose Hide row. The logic matches Excel, but the shortcut is different—there is no default hide-row shortcut in Google Sheets, so use the menu path Format > Hide selected rows.