How to Hide Sheets, Cells, Columns, and Formulas in Excel

·
8 min read

Help Desk Geek is reader-supported. We may earn a commission when you buy through links on our site. Learn more.

You need to hide sheets, cells, columns, or formulas in Excel without deleting the underlying data. Some of Excel’s hiding options are surprisingly useful, but they control presentation rather than secure confidential information.

Fix #1: Hide rows and columns

Hiding rows or columns cleans up a worksheet while leaving formulas and references intact.

  1. Select the row numbers or column letters you want to hide.
  2. Hold Ctrl while selecting headers if the rows or columns aren’t next to each other.
  3. Right-click a selected header.
  4. Select Hide.
Excel for Microsoft 365 worksheet with several row headers selected and the right-click menu showing Hide
Excel for Microsoft 365 worksheet with several column headers selected and the right-click menu showing Hide

The row numbers or column letters should skip over the hidden area. Two narrow lines mark where Excel hid it.

Excel worksheet showing skipped row numbers and column letters with boundary lines marking hidden rows and columns

You can also use the Ribbon:

  1. Select the rows or columns.
  2. Open Home.
  3. Select Format in the Cells group.
  4. Select Hide & Unhide.
  5. Choose Hide Rows or Hide Columns.

The keyboard shortcuts are Ctrl + 9 for rows and Ctrl + 0 for columns. If Ctrl + 0 doesn’t work, use the Ribbon because Windows can intercept that shortcut.

Unhide rows and columns

  1. Select the headers on both sides of the hidden area.
  2. Right-click the selection.
  3. Select Unhide.
Excel worksheet with columns on both sides of a hidden column selected and the right-click menu showing Unhide

The missing rows or columns should reappear at their previous sizes. You can also select Home > Format > Hide & Unhide > Unhide Rows or Unhide Columns.

If row 1 or column A is hidden:

  1. Select the Name Box to the left of the formula bar.
  2. Type A1.
  3. Press Enter.
  4. Select Home > Format > Hide & Unhide.
  5. Choose Unhide Rows or Unhide Columns.

Check the row height or column width if the header returns but the cells still look hidden. A width or height close to zero can create the same effect.

Fix #2: Hide unused worksheet areas

A dashboard often looks better when readers see only its working area. This method actually works well, and it doesn’t affect calculations.

Hide unused rows

  1. Select the first unused row below the dashboard or table.
  2. Press Ctrl + Shift + Down Arrow.
  3. Right-click the selected row headers.
  4. Select Hide.
Excel dashboard with all unused rows below the working area selected and the right-click menu showing Hide

Only the working rows should remain visible.

Hide unused columns

  1. Select the first unused column to the right of your data.
  2. Press Ctrl + Shift + Right Arrow.
  3. Right-click the selected column headers.
  4. Select Hide.
Excel dashboard with all unused columns to the right of the working area selected and the right-click menu showing Hide

The worksheet should now show a compact working area. Use the unhide steps from Fix #1 when you need the hidden space again.

Fix #3: Hide and unhide worksheets

Hidden worksheets remain part of the workbook, so formulas, charts, and PivotTables can still reference them.

  1. Right-click the worksheet tab at the bottom of Excel.
  2. Select Hide.
Excel for Microsoft 365 sheet tab right-click menu with Hide highlighted

The tab should disappear while the worksheet’s data remains in the file.

To restore it:

  1. Right-click any visible worksheet tab.
  2. Select Unhide.
  3. Select the hidden sheet in the Unhide dialog.
  4. Select OK.
Excel Unhide dialog listing hidden worksheets with one sheet selected and the OK button visible

The worksheet tab should return to its former position.

Stop casual users from unhiding sheets

Protecting the workbook structure disables ordinary sheet-management commands.

  1. Open the Review tab.
  2. Select Protect Workbook.
  3. Enable Structure if Excel displays a choice.
  4. Enter an optional password.
  5. Confirm the password when prompted.

The Unhide, rename, move, delete, and new-sheet commands should become unavailable. Store the password somewhere safe because Microsoft can’t recover a forgotten workbook password.

Workbook structure protection discourages casual changes. It doesn’t provide strong protection for confidential data.

Fix #4: Hide cell values with a custom format

The custom number format ;;; hides displayed values without changing the cells. Calculations continue to use them.

  1. Select the cells you want to hide.
  2. Right-click the selection.
  3. Select Format Cells.
Excel worksheet with selected cells and the right-click menu showing Format Cells
  1. Open the Number tab.
  2. Select Custom under Category.
  3. Replace the contents of Type with ;;;.
  4. Select OK.
Excel Format Cells dialog on the Number tab with Custom selected and three semicolons entered in the Type field

The cells should appear blank.

Excel worksheet showing a visually blank formatted cell while its underlying value remains visible in the formula bar

This is a clever display trick, but the value remains visible in the formula bar when someone selects the cell. Copying the cell into another workbook can also reveal it.

To show the values again:

  1. Select the hidden-value cells.
  2. Open Format Cells.
  3. Select the original number format, such as General, Number, or Currency.
  4. Select OK.

The values should reappear. Any new content entered while the ;;; format is active will also stay hidden until you change the format.

Fix #5: Hide formulas with sheet protection

Selecting Hidden in Format Cells doesn’t hide a formula by itself. Excel enforces that setting only after you protect the worksheet.

  1. Select the cells containing formulas.
  2. Right-click the selection.
  3. Select Format Cells.
  4. Open the Protection tab.
  5. Select Hidden.
  6. Leave Locked selected if you also want to prevent edits.
  7. Select OK.
Excel worksheet showing selected formula cells and formulas visible in the formula bar before protection
Excel Format Cells Protection tab with Hidden and Locked checked
  1. Open the Review tab.
  2. Select Protect Sheet.
  3. Confirm that Protect worksheet and contents of locked cells is selected.
  4. Choose the actions users may perform.
  5. Enter an optional password.
  6. Select OK.
  7. Confirm the password if prompted.
Excel Protect Sheet dialog with Protect worksheet and contents of locked cells checked and permitted actions listed

Select one of the protected formula cells. Its result should remain visible, but the formula bar should appear blank.

Pressing Ctrl + ` or selecting Formulas > Show Formulas won’t expose formulas marked Hidden while protection remains active. Unprotecting the worksheet makes them visible again.

A sheet-protection password prevents accidental edits and casual inspection. Remove confidential formulas from files shared with people who mustn’t access them.

Fix #6: Hide worksheet gridlines

Gridlines can make a finished form or dashboard look busy. Excel lets you hide them without adding borders or changing cell contents.

  1. Open the View tab.
  2. Clear Gridlines in the Show group.
Excel View tab with the Gridlines checkbox cleared in the Show group

All gridlines should disappear from the active worksheet. Repeat the change on other sheets because Excel controls this setting per worksheet.

You can also use Page Layout:

  1. Open Page Layout.
  2. Find Gridlines under Sheet Options.
  3. Clear View.
Excel Page Layout tab showing Sheet Options with the Gridlines View checkbox cleared

To restore gridlines, select the same checkbox again.

Hide gridlines in only part of a sheet

  1. Select the cells where you don’t want gridlines.
  2. Open Home.
  3. Select Fill Color.
  4. Choose a solid color, including white if it matches the sheet.

Gridlines should disappear inside the filled range while remaining visible elsewhere. Add borders manually if the cells still need visible boundaries.

Fix #7: Hide notes and their indicators

Current Excel distinguishes threaded comments from older cell notes. The display setting for cell indicators applies to notes.

  1. Select File > Options.
  2. Select Advanced.
  3. Scroll to the display settings.
  4. Find the setting that controls how cells with comments or notes appear.
  5. Choose the option that hides comments or notes and their indicators.
  6. Select OK.
Excel worksheet showing a cell with a legacy note indicator and the note displayed beside the cell
Excel Options Advanced page with the display setting for comments, notes, and indicators visible

The indicator should disappear, but Excel retains the note. You can still review notes from the Review tab.

For threaded comments, use the comments controls on Review to close the comments pane or hide an open comment card. Their commands differ from legacy notes.

Fix #8: Stop long text from overflowing into nearby cells

Text spills into adjacent blank cells when the column is too narrow. Filling the next cell blocks it, but Excel has cleaner layout options.

Wrap the text

  1. Select the cells containing long text.
  2. Open Home.
  3. Select Wrap Text.

The text should fit within the column by expanding the row height. Adjust the row height if you need a fixed layout.

Excel worksheet showing long text from cell A1 overflowing across empty neighboring cells

Use Fill alignment

Fill alignment repeats short entries, so it isn’t suitable for every worksheet. With longer text, it can stop the visible spill without adding content to the neighboring cell.

  1. Select the cell.
  2. Right-click it.
  3. Select Format Cells.
  4. Open the Alignment tab.
  5. Open the Horizontal list.
  6. Select Fill.
  7. Select OK.
Excel Format Cells Alignment tab with Fill selected in the Horizontal alignment list

The text should stop at the cell boundary.

Excel worksheet showing long text contained within its original cell instead of overflowing into adjacent cells

I’d use Wrap Text for sentences and notes. Fill alignment is better reserved for special layouts where its repeated-text behavior won’t cause trouble.

Fix #9: Hide the workbook window

Excel can hide an open workbook window while keeping the file open. This is handy when a macro or another workbook depends on it.

  1. Open the workbook you want to hide.
  2. Select the View tab.
  3. Select Hide in the window controls.
Excel View tab with the Hide command highlighted in the Window group

The workbook window should disappear, but Excel will remain open.

To restore it:

  1. Select View > Unhide.
  2. Select the workbook window.
  3. Select OK.

Don’t confuse this with hiding a worksheet or encrypting a file. Anyone who can open the file in Excel can use Unhide.

Fix #10: Keep confidential data outside the workbook

Hidden data is still data. Rows, sheets, values, and formulas can often be revealed by anyone who can edit the workbook.

For a workbook containing confidential material:

  1. Remove the confidential source data from the shared file.
  2. Store it in a separate workbook with restricted OneDrive or SharePoint access.
  3. Use an approved external link, Power Query connection, or Data Model if the report needs that data.
  4. Share only the report workbook with its intended readers.

You can also apply file-level encryption:

  1. Select File > Info.
  2. Select Protect Workbook.
  3. Select Encrypt with Password.
  4. Enter a strong password.
  5. Confirm the password.
  6. Save the workbook.

Password encryption protects the file itself. Access permissions in OneDrive or SharePoint give you better control over who can open it.

Microsoft Excel open on a Windows computer

When hidden items won’t reappear

Check for workbook or worksheet protection if Unhide is unavailable. A filter can also conceal rows, while tiny row heights and column widths can make visible cells look hidden.

For a damaged workbook, save a separate copy before trying File > Open > Open and Repair. Don’t overwrite the only copy.

Conclusion

Fix #1 is the smoothest option for routine cleanup, while the ;;; custom format is a small Excel gem worth bookmarking for dashboards. I recommend file encryption or restricted cloud access whenever the workbook contains confidential data, because repeated hidden items or missing commands usually point to protection settings rather than an Excel fault.