You hide rows in Excel by selecting the rows you want out of sight, right-clicking the row header, and choosing Hide. The data stays in the sheet and in every formula and chart, it just stops being drawn between the rows above and below. On Windows and Mac you can also use Format > Hide & Unhide > Hide Rows on the Home tab, or the keyboard shortcut Ctrl+9 (Command+9 on Mac). Hiding rows is a display choice, not a deletion, so nothing is lost and you can bring the rows back at any time.
This matters for spreadsheets you share or print: hiding detail rows, helper columns, subtotal workings or rows that are not relevant to a particular audience keeps the sheet readable without breaking calculations. The steps below use the desktop version of Excel for Windows and Mac. Excel for the web and the Excel mobile apps work slightly differently and are called out where it matters.
A quick note before the steps: menu labels and right-click options can differ slightly between Excel versions, platforms and regions, so if a label you see is worded a little differently, look for the closest match.
What You'll Need
- A spreadsheet open in Excel for Windows, Mac, or Excel for the web. The mobile apps have limited row-hiding support.
- The rows you want to hide, identified by number in the row header on the left edge of the sheet.
- No special permissions are needed if you can edit the file. Note that if a sheet is protected, hiding rows may be blocked until protection is removed or the workbook owner allows formatting.
Step-by-Step
- Open the workbook in Excel and click the worksheet tab at the bottom that contains the rows you want out of sight. Hiding only affects the active sheet.
- Find the row numbers along the left edge of the grid, in the grey header area. These are the row headers, not the data cells.
- Select the rows you want to hide. To hide a single row, click its row number once so the whole row highlights. To hide several adjacent rows, click the first row number, hold Shift, and click the last one. To hide non-adjacent rows, hold Ctrl (Command on Mac) and click each row number you want.
- Right-click anywhere on the selected row headers and choose Hide from the context menu. The rows collapse and the numbering jumps, for example from row 4 straight to row 9.
- Alternatively, with the rows still selected, go to the Home tab, click Format in the Cells group, point to Hide & Unhide, and click Hide Rows. This is the route to use if right-click is awkward on a trackpad or touch screen.
- If you prefer the keyboard, press Ctrl+9 with the rows selected (Command+9 on Mac). This is the fastest repeatable shortcut and works on whole rows only, not individual cells.
- Check the result by looking at the row numbers. A gap in the numbering, and a slightly thicker line where the hidden rows sit, confirms that rows are hidden rather than deleted.
- To hide a whole block for printing, hide the rows before you go to File > Print. Hidden rows are omitted from the printout by default, which is often the real reason people want them gone.
- To bring the rows back, select the rows on either side of the hidden block, right-click the row header and choose Unhide. Selecting at least one row above and one row below forces Excel to reveal everything hidden in between.
- To reveal every hidden row in one go, click the small triangle at the very top-left corner of the grid (where the row numbers and column letters meet) to select the whole sheet, then right-click a row header and choose Unhide.
Common Mistakes
- Selecting cells instead of rows. If you highlight data cells and then right-click, you get the cell menu without the row Hide option. Always click the row numbers in the grey header.
- Deleting instead of hiding. Delete removes the data and shifts everything up, which breaks references to those rows. Hide keeps the data intact. If you deleted by accident, press Ctrl+Z immediately to undo it.
- Trying to unhide without covering the hidden block. Selecting only the row above and pressing Unhide will not work if the hidden rows are below it. Select a row above and a row below, or select the whole sheet.
- Hiding the first row with the header off the top. If row 1 is hidden, it can look as though the header has vanished. Select the whole sheet and unhide to restore it.
- Assuming hidden data is private. It is not. Anyone who selects the sheet can unhide rows, and hidden cells still appear in formulas, sorting, filtering and the Name Box. To share only part of a sheet, hide and then protect the sheet, or copy the visible range into a new workbook.
- Hiding rows on a protected sheet. Protection typically blocks the Hide command. Ask the owner for the password or unprotect the sheet with Review > Unprotect Sheet if you have permission.
Tips
- Filtering is often better than hiding when the goal is to show only certain records. A filter hides rows automatically and can be reversed by clearing the filter, and it makes the criteria visible.
- Use grouping for large blocks: Data > Group collapses rows with a plus/minus button in the margin, which is easier for readers to expand than manual hiding.
- Excel treats a row height of zero as hidden, so setting row height back to a normal value will also reveal a row if Unhide does nothing.
- To find any hidden rows in a large sheet, select the whole sheet, right-click a row header and choose Unhide. Anything hidden becomes visible, so scan, then re-hide what you meant to keep out of sight.
- Keep a note of what you hid. A hidden helper column or workings block is easy to forget, and a later editor may be confused by numbers that do not add up.
- On Excel for the web, the same right-click and Home > Format routes exist, but the mobile apps offer a more limited set of row options and are not ideal for bulk hiding.
Troubleshooting
Unhide is greyed out. The sheet is probably protected, or you did not select rows adjacent to hidden ones. Check Review for protection first, then select the full sheet and try again.
The row numbering does not show a gap but rows still look missing. Zoom out or check for a very small row height instead of a true hidden row. Drag the row border below the row number downward, or use Home > Format > Row Height and set a normal value.
Hidden rows come back in the printout. Excel prints hidden rows only if the print area has been set to include them through other means, or if you filtered rather than hid. Re-hide the rows and confirm they are gone on screen before printing, and preview with File > Print.
Some rows stay hidden after unhiding. Repeat the whole-sheet selection and Unhide. Standalone hidden rows outside the block you selected are not affected by a local Unhide.
A refresh or paste seems to reveal hidden rows. Pasting into a range that includes hidden rows may overwrite them; check that your paste range covers only visible cells, using Alt+; (semicolon) on Windows to select visible cells only before copying or pasting.
Frequently Asked Questions
Does hiding rows delete the data?
No. Hidden row data remains in the workbook, continues to feed formulas and charts, and can be shown again with Unhide.
What is the keyboard shortcut to hide rows?
With whole rows selected, press Ctrl+9 on Windows or Command+9 on Mac. It only works on complete rows, not partial cell ranges.
Why can I not unhide rows?
Usually the sheet is protected, or you have not selected the rows immediately above and below the hidden block. Select the whole sheet with the corner triangle and try Unhide again.
Can I hide rows in Excel for the web or on my phone?
Excel for the web supports hiding and unhiding rows through the right-click menu and the Home tab. The mobile apps offer a limited set of row actions, so use a desktop or the web version for bulk edits.
Are hidden rows excluded from printing?
Yes, by default. If yours still print, confirm they are truly hidden rather than filtered, and check the print preview before sending the file.
Will other people see that I hid rows?
Yes. Anyone who can edit the sheet can select it and unhide rows. If a section must stay private, do not rely on hiding alone: protect the sheet or share a copy containing only the visible data.