Please Note: This article is written for users of the following Microsoft Excel versions: 97, 2000, 2002, and 2003. If you are using a later version (Excel 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Excel, click here: Hiding Individual Cells.

Hiding Individual Cells

Written by Allen Wyatt (last updated March 9, 2022)
This tip applies to Excel 97, 2000, 2002, and 2003


1

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. Choose Format | Conditional Formatting.
  4. Set the conditional format such that if cell J1 is equal to "p," the contents of the cells are white.
  5. Print your worksheet as normal. The cell contents should not show up on the printout.
  6. 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. Choose Cells from the Format menu. Excel displays the Format Cells dialog box.
  3. Make sure the Number tab is displayed.
  4. In the list of format categories, select Custom. (See Figure 1.)
  5. Figure 1. The Number tab of the Format Cells dialog box.

  6. In the Type box, enter three semicolons (;;;).
  7. 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 (2880) applies to Microsoft Excel 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) 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

Collating Copies

If you are printing more than one copy of a multi-page document, it would be great if Word could print them in complete ...

Discover More

Ensuring Usability for Differing Excel Versions

If you develop workbooks that will be used by others, you need to be aware of which versions of Excel are being used. ...

Discover More

Appending to a Non-Excel Text File

Does your macro need to add information to the end of a text file? This is called appending and is done using the ...

Discover More

Excel Smarts for Beginners! Featuring the friendly and trusted For Dummies style, this popular guide shows beginners how to get up and running with Excel while also helping more experienced users get comfortable with the newest features. Check out Excel 2013 For Dummies today!

More ExcelTips (menu)

Displaying Negative Percentages in Red

Excel includes quite a few different formats you can use for the information in a worksheet. One format that isn't as ...

Discover More

Shortcut Key for Format Painter

The Format Painter is great for copying formatting from one cell to another. If you don't want to grab the mouse to use ...

Discover More

Changing Cell Patterns

You can shade your cells by filling them with a pattern. Here's how to select the pattern you want used.

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 seven more than 1?

2017-09-15 17:14:19

Rubi Valerova

Hello,

I followed your steps and they worked... but now I am left with white rows...

I have information in columns A-R. I only want to hide some rows A-N without hiding the information in O-R.

Is there a different way do diving the rows and columns so if I hide row A-N, O-R doesn't get affected?

Thank you,


This Site

Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon 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.