Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Hiding Individual Cells.

Hiding Individual Cells

Written by Allen Wyatt (last updated September 10, 2022)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021


Ruby has a worksheet that she needs to print out in a couple of different ways, for different users. Part of preparing her data for printing involves hiding or displaying some rows and some columns, as appropriate. Ruby wondered if there was a way to hide the contents of individual cells, as well.

If, by "hide," you want to have the cell disappear and information under it move up (like when you hide a row) or move left (like when you hide a column), then there is no way to do this in Excel. Actual hiding in this manner can only be done on a row or column basis.

There are ways that you can hide the information in the cell, however, so that it doesn't show up on the printout. One easy way, for instance, is to format the cell so its contents are white. This means that, when you print, you'll end up with "white on white," which is invisible. Test this solution, though—some printers, depending on their capabilities, will still print the contents.

If this approach works for you, you could expand on it just a bit to make your data preparation tasks just a bit easier. Follow these general steps:

  1. In an out-of-the-way cell (let's say it is cell J1) insert the letter "p."
  2. Select the cell (or cells) you want to hide on the printout.
  3. With the Home tab of the ribbon displayed, click the Conditional Formatting option in the Styles group. Excel displays a palette of options related to conditional formatting.
  4. Click New Rule. Excel displays the New Formatting Rule dialog box.
  5. In the Select a Rule Type area at the top of the dialog box, choose Use a Formula to Determine Which Cells to Format. (See Figure 1.)
  6. Figure 1. The New Formatting Rule dialog box.

  7. In the criteria area for the rule enter the following: =$J$1="p". This formula will return True if the cell contains a lowercase letter "p."
  8. Click the Format button. Excel displays the Format Cells dialog box.
  9. Make sure the Font tab is displayed. (See Figure 2.)
  10. Figure 2. The Font tab of the Format Cells dialog box.

  11. Use the Color drop-down list to choose white.
  12. Click OK to dismiss the Format Cells dialog box.
  13. Click OK to dismiss the New Formatting Rule dialog box.
  14. Print your worksheet as normal. The cell contents should not show up on the printout.
  15. To make the cell contents visible on the printout, just modify cell J1 so that it contains something other than the letter "p."

Another solution is to use a custom format for the cells whose content you want to hide. Follow these steps:

  1. Select the cell (or cells) you want to hide.
  2. Display the Home tab of the ribbon.
  3. Click the small icon at the lower-right corner of the Number group. Excel displays the Format Cells dialog box.
  4. Make sure the Number tab is displayed.
  5. In the list of format categories, select Custom. (See Figure 3.)
  6. Figure 3. The Number tab of the Format Cells dialog box.

  7. In the Type box, enter three semicolons (;;;).
  8. Click on OK.

Now the information in the cell is not visible, nor will it print. You can, however, see the information in the Formula Bar, and it can be overwritten if you enter anything else in the cell.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (6866) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021. You can find a version of this tip for the older menu interface of Excel here: Hiding Individual Cells.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Macro for Month Name

Need to know how to generate a full month name based on a date? It's easy to do, as discussed in this tip.

Discover More

Maintaining the Active Cell

Move from one worksheet to another, and Excel selects whatever cell was last used in the worksheet you are selecting. If ...

Discover More

Hyperlinks in Comments

Need to add a hyperlink to a comment or note? It's easy to do by following the steps outlined in this tip.

Discover More

Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!

More ExcelTips (ribbon)

Converting From Numbers to Text

If you have a range of numeric values in your worksheet, you may want to change them from numbers to text values. Here's ...

Discover More

Changing the Color of a Cell Border

Excel provides a variety of tools you can use to make your data look more presentable on the screen and on a printout. ...

Discover More

Setting Cell Color Based on Numeric Values

Excel allows you to specify colors for the interior of cells in your worksheet. If you want those colors to be set ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 1 + 1?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.