How to Hide Things in Excel: Rows, Columns & Sheets

How-to basics · Updated November 23, 2026

To hide things in Excel, select the row, column, or sheet, right-click, and choose Hide (or use the shortcut Ctrl+9 for rows and Ctrl+0 for columns). To unhide, select the surrounding rows/columns, right-click, and choose Unhide; for sheets, right-click any sheet tab and choose Unhide.

Why Hide Data in Excel?

Hiding is not the same as deleting or protecting. It’s a way to declutter your view, focus on relevant data, or keep sensitive information out of sight without removing it. Common reasons include:

  • Hiding intermediate calculation columns (e.g., helper columns used in formulas).
  • Hiding rows with data you don’t need to see right now but might need later.
  • Hiding entire sheets that contain raw data or reference tables.
  • Hiding gridlines or formulas to make a report look cleaner.

Hiding is reversible and does not affect the underlying data or calculations—hidden cells still participate in formulas unless you exclude them.

How to Hide Rows and Columns

The quickest way:

  1. Select the row(s) or column(s) you want to hide. Click the row number or column letter to select an entire row/column; drag to select multiple.
  2. Right-click the selected row number or column letter and choose Hide.

Keyboard shortcuts (Windows):

  • Ctrl+9 – hide selected rows
  • Ctrl+0 – hide selected columns

On Mac, use Cmd+9 and Cmd+0.

To unhide:

  1. Select the rows/columns that surround the hidden ones (e.g., if row 5 is hidden, select rows 4 and 6).
  2. Right-click and choose Unhide.

If you have hidden columns A and B, you need to select the first visible column (e.g., column C) and drag left to include column A, then right-click and choose Unhide.

How to Hide Entire Worksheets

To hide a sheet:

  1. Right-click the sheet tab at the bottom of the window.
  2. Choose Hide.

The sheet disappears from the tab bar but remains in the workbook. To unhide:

  1. Right-click any visible sheet tab.
  2. Choose Unhide.
  3. In the dialog box, select the sheet you want and click OK.

Note: You cannot hide all sheets in a workbook—at least one must remain visible. If you try, Excel will show an error.

Hiding Formulas and Gridlines

Sometimes you want to hide the formula bar or gridlines to make the sheet look like a printed report.

Hide gridlines:

  • Go to View tab and uncheck Gridlines in the Show group.

Hide formulas in cells:

  1. Select the cells with formulas.
  2. Right-click and choose Format Cells (or press Ctrl+1).
  3. Go to the Protection tab.
  4. Check Hidden and click OK.
  5. Then protect the sheet: go to Review > Protect Sheet and set a password if desired.

After protecting, the formulas will not appear in the formula bar when you select the cell. This does not hide the cell values, only the underlying formulas.

How to Hide Cells (Not Rows/Columns)

Excel doesn’t have a direct “hide cell” command like hiding a row or column. But you can achieve a similar effect by:

  • Using white font: Change the font color to match the cell fill (e.g., white text on white background). This visually hides the content but it’s still selectable and editable.
  • Using custom number formatting: Apply a format like ;;; (three semicolons) to hide the cell’s value. Select the cell, press Ctrl+1, go to Number > Custom, and type ;;; in the Type box. The value remains in the cell but is not displayed.
  • Using conditional formatting: You can make text invisible based on a condition, but this is more complex and not a true hide.

These methods are useful for hiding intermediate values without affecting layout.

Hiding Data for Printing

If you want to hide rows/columns only when printing, you can set the print area:

  1. Select the range you want to print.
  2. Go to Page Layout > Print Area > Set Print Area.

Only the selected range will print, even if other data is visible on screen. To clear, go to Print Area > Clear Print Area.

Alternatively, you can hide rows/columns temporarily before printing and then unhide them after.

Common Problems and Pitfalls

  • Can’t unhide row 1 or column A: If row 1 or column A is hidden, you can’t select it by dragging from the edge. Instead, go to the Home tab, click Format (in the Cells group), then under Visibility, choose Hide & Unhide and select Unhide Rows or Unhide Columns.
  • Hidden rows still affect formulas: Hidden rows are still included in SUM, AVERAGE, etc. If you want to exclude them, use the SUBTOTAL function with function number 109 for SUM (which ignores hidden rows) or use the AGGREGATE function.
  • Hidden sheets can still be referenced: Even if a sheet is hidden, formulas in other sheets can still reference cells on it. That’s usually desired, but be aware it’s not a security measure.
  • Hiding is not protection: Anyone can unhide rows/columns/sheets easily. If you need to prevent others from unhiding, you must protect the sheet or workbook structure. For example, to prevent unhiding sheets, go to Review > Protect Workbook (structure) and set a password.

Frequently Asked Questions

How do I hide multiple non-adjacent rows?
Hold Ctrl while clicking row numbers to select multiple rows that aren’t next to each other, then right-click and choose Hide. The same works for columns.

Why can’t I unhide a column even after selecting surrounding columns?
If you have hidden columns A and B, and you only select column C, unhide won’t work because the selection doesn’t span the hidden columns. Select from column A (or the first visible column) to the column after the hidden ones, then right-click and Unhide.

Does hiding rows affect calculations?
Yes, by default most functions (SUM, AVERAGE) include hidden rows. If you want to exclude them, use =SUBTOTAL(109, A1:A10) for a sum that ignores manually hidden rows. The 109 function number is for SUM; 109 is for SUM, 109 is for SUM, but you can use 109 for SUM, 103 for COUNTA, etc. For example, with values in A1:A10, =SUBTOTAL(109, A1:A10) returns the sum of visible cells only.

Can I hide a sheet so it can’t be unhidden without a password?
Yes. Go to Review > Protect Workbook, check Structure, and set a password. This prevents anyone from right-clicking a sheet tab and choosing Unhide (or Hide) without entering the password.

What’s the difference between hiding and grouping?
Grouping (Data > Outline > Group) creates a collapsible section with a plus/minus button for easy toggling. Hiding is a static state—you must manually unhide. Grouping is often more user-friendly for reports.

Is there a way to hide cells based on a condition?
You can use conditional formatting to change font color to white when a condition is met, effectively hiding the value. Select the cells, go to Home > Conditional Formatting > New Rule, choose “Use a formula”, and set the font color to white. This is a visual hide, not a structural one.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.