How to Unhide Excel Lines

If you just need to unhide excel lines and move on, the boxed answer at the top is all you need. The rest of this page is for when you want to understand why it works in Excel, adapt it to a trickier version, or make it robust enough to hand to a colleague. We keep the opening short on purpose — the depth is here when you want it, not in your way when you don’t.

Exact answer

In Excel: select the row numbers, right-click and choose Hide; to bring them back, select the rows around the gap (or Ctrl+A for the whole sheet) and choose Unhide, or use Home ▸ Format ▸ Hide & Unhide.

On this page7
Annotated stepsExcel
1

Click a row number and drag (or Ctrl-click) to select the whole rows you want to hide.

2

Right-click the selection and choose Hide, or use Home ▸ Format ▸ Hide & Unhide ▸ Hide Rows.

3

To unhide a few, select the rows immediately above and below the gap, right-click and choose Unhide.

4

To unhide every row at once, press Ctrl+A, then Home ▸ Format ▸ Hide & Unhide ▸ Unhide Rows.

Ctrl+CthenCtrl+Shift+V+Cthen+Ctrl+VPaste values · WindowsMac

What this does

Hiding a row collapses it out of view without deleting anything — the data, formulas and any totals that reference it all keep working, the row is simply not shown. You select whole rows by their numbers, right-click and pick Hide, and a doubled border marks where rows are missing. Unhiding reverses it: select the rows on either side of the gap and choose Unhide. To reveal every hidden row at once, select the entire sheet with Ctrl+A first. Most people learn this as a sequence of clicks and forget it by next week; learning it as a pattern instead is what lets you apply it to the next, slightly different version of the problem without starting from scratch. That is the difference this page is trying to make. For “unhide excel lines”, the reliable version is a short checking loop, not just the first command that appears to work. Run it on a deliberately small range first, watch how the affected cells change, and only then apply the same setup to the full sheet. When this is a ribbon command, the selection matters more than the button: confirm the range, apply the command, then spot-check the output before saving. That is what makes a visual that makes the number obvious at a glance useful in real work: repeatable, auditable, and not dependent on memory or luck.

A worked example

A report has detail in rows 5–8 you want out of the way. Click row header 5, drag to row 8 to select all four, right-click and choose Hide — rows 5 to 8 vanish and the numbering jumps from 4 straight to 9. Later, to bring them all back, press Ctrl+A to select the whole sheet, then Home ▸ Format ▸ Hide & Unhide ▸ Unhide Rows, and rows 5–8 reappear exactly as they were. Hide rows to tuck away detail, helper calculations or seasonal entries without losing them — a cleaner print-out, a tidier review, a report that shows only the summary. Because nothing is deleted, you can unhide and get every row back exactly as it was whenever you need it. If this is something you do often, add the command to the Quick Access Toolbar (right-click it on the ribbon and choose Add to Quick Access Toolbar) or learn its shortcut, so next time it is one click instead of a hunt through the menus.

In Google Sheets

This is a command rather than a formula, so there is no syntax to carry over. Google Sheets arranges its commands in menus across the top instead of a ribbon, names some of them differently and does not have every Excel command — look for the equivalent in the Sheets menus or its help before assuming the steps match. Keep this page bookmarked for the next time the same question comes up. Better still, repeat the steps once in your own workbook — doing it yourself is what turns a copied answer into something you remember. If you take one thing from this page on “unhide excel lines”, make it the order of checks rather than the individual clicks: confirm what is selected, apply the step, and look at the result before moving on. That small routine is what keeps Excel work predictable when the same task comes back in a slightly different workbook.

Common mistakes

  • Selecting cells instead of whole row headers, so Hide is greyed out or hides the wrong thing.
  • Forgetting hidden rows still count in SUM and other ranges — hiding does not exclude them from formulas.
  • Trying to unhide row 1 by selecting around it (there is no row above) — instead select from row 1 down, or use the Name Box and Unhide Rows.
  • Confusing hiding with filtering; a filter hides rows by condition and is cleared differently from a manual Hide.

Frequently asked questions

How do I unhide all rows at once?

Select the entire sheet with Ctrl+A (or click the corner box above row 1), then Home ▸ Format ▸ Hide & Unhide ▸ Unhide Rows reveals every hidden row in one step.

Do hidden rows still affect my totals?

Yes — SUM and most functions still include hidden rows. Use SUBTOTAL or AGGREGATE if you need a total that ignores hidden rows.

How do I unhide the very first row?

There is no row above row 1 to select, so type A1 in the Name Box to land there, then Home ▸ Format ▸ Hide & Unhide ▸ Unhide Rows.