How to hide cells in excel
Tutor 5 (70 Reviews)
Excel Tutor
Still stuck with a Excel question
Ask this expertAnswer
To hide cells in Excel, you can hide entire rows, columns, or use formatting to make cell contents invisible. Excel does not have a direct feature to hide individual cells, but you can achieve similar results through three main methods: hiding rows/columns, formatting cells to make content invisible, or protecting and hiding formulas.
Methods to Hide Cell Contents
1. Hide Entire Rows
Select the row numbers you want to hide by clicking on the row header. Right-click on the selected rows and choose "Hide" from the context menu. The rows disappear from view, and you'll notice a thicker line between the row numbers indicating hidden rows.
Keyboard shortcut: Select rows and press Ctrl+9 (Windows) or Cmd+9 (Mac).
2. Hide Entire Columns
Click on the column letter header to select the columns you want to hide. Right-click on the selected columns and choose "Hide" from the context menu. Hidden columns show a thicker line between column letters.
Keyboard shortcut: Select columns and press Ctrl+0 (Windows) or Cmd+0 (Mac).
3. Make Cell Contents Invisible Using Formatting
Select the cells containing data you want to hide. Press Ctrl+1 (Windows) or Cmd+1 (Mac) to open the Format Cells dialog box. Navigate to the Number tab and select "Custom" from the Category list. Enter three semicolons (;;;) in the Type field and click OK. The cell contents become invisible while the data remains in the cell.
How to Unhide Hidden Cells
Unhide Rows
Select the rows above and below the hidden rows by clicking and dragging across the row numbers. Right-click and select "Unhide" from the context menu. The hidden rows reappear in their original position.
Unhide Columns
Click and drag to select the columns on both sides of the hidden columns. Right-click on the selection and choose "Unhide" from the context menu. The columns become visible again.
Unhide All Rows and Columns Simultaneously
Click the Select All button (the triangle at the intersection of row and column headers). Right-click any row header and select "Unhide" to reveal all hidden rows. Right-click any column header and select "Unhide" to reveal all hidden columns.
Advanced Hiding Techniques
Group and Outline Feature
Select the rows or columns you want to group. Navigate to the Data tab on the ribbon. Click "Group" in the Outline section. A bracket appears with a minus sign that you can click to collapse (hide) the grouped data. Click the plus sign to expand and show the data again.
Hide Formulas in Formula Bar
Select cells containing formulas you want to protect. Press Ctrl+1 (Windows) or Cmd+1 (Mac) to open Format Cells. Go to the Protection tab and check "Hidden". Navigate to the Review tab and click "Protect Sheet". Enter a password (optional) and click OK. Formulas no longer appear in the formula bar when cells are selected.
Differences Between Windows and Mac
Windows: Uses Ctrl key combinations for shortcuts. The ribbon interface displays all options by default. Right-click menus appear with a single right-click action.
Mac: Uses Cmd key combinations instead of Ctrl. Some ribbon options may require clicking dropdown arrows for full access. Right-click functionality requires either Control+click or two-finger tap on the trackpad, depending on settings.
Important Considerations
Hidden cells remain part of calculations and formulas. Data in hidden cells can still be found using the Find feature (Ctrl+F or Cmd+F). Hidden cells are included when you copy and paste a range unless you specifically select visible cells only. Printing worksheets excludes hidden rows and columns by default.
Charts and pivot tables continue to use data from hidden cells unless you specifically exclude them. Filtering data creates a different type of hiding that responds differently to unhide commands. Protected sheets prevent unhiding cells unless users have the password.
Troubleshooting Common Issues
Cannot Unhide Rows or Columns
The worksheet might be protected - check the Review tab for the "Unprotect Sheet" option. Row height or column width might be set to zero - select surrounding rows/columns, right-click, choose "Row Height" or "Column Width" and enter a positive value (standard row height is 15, column width is 8.43).
Hidden Data Still Appears in Charts
Right-click the chart and select "Select Data". Click "Hidden and Empty Cells" button. Check "Show data in hidden rows and columns" to control visibility. Update the chart data range to exclude hidden cells manually.
Best Practices for Hiding Cells
Document which rows or columns are hidden in a separate summary sheet for future reference. Use consistent hiding methods throughout your workbook to maintain organization. Test formulas after hiding cells to ensure calculations remain accurate. Save a backup copy before hiding large amounts of data. Consider using filters instead of hiding for temporary data management needs.
Create named ranges before hiding data to maintain easy reference to hidden cells. Use cell comments to indicate why certain data is hidden. Review hidden cells periodically to determine whether they should remain hidden or be deleted.
. Was this Helpful?Get Online Tutoring or Questions answered by Experts.
You can post a question for a tutor or set up a tutoring session
Answers · 1
How to add secondary axis in excel
Answers · 1
How to switch columns to rows in excel
Answers · 1
How to subtract on excel
Answers · 1
How to combine two cells of text in excel
Answers · 1