logo
search
Printing Problems

How to Hide Excel Cell Values from Printing but Keep Them Visible

Phi Hung VoPhi Hung Vo Oct 10, 2026 870 views

Question details

The user needs a way to prevent specific cell data (such as part costs and calculated totals) from appearing on printed pages, while still displaying those values on the spreadsheet screen.

How to Hide Excel Cell Values from Printing but Keep Them Visible
Product
Excel
Device & OS
not provided
Scenario
Preparing a financial or operational spreadsheet for printing where certain sensitive calculations should only be visible to the digital user, not the recipient of the physical printout.
Observed behavior
By default, Excel prints all visible cell values exactly as they appear on the screen, meaning sensitive costs and totals are included on the printed page.
Before you start

Identify the exact ranges or cells containing the costs and totals you want to exclude from the printout, and note their original font colors so you can easily restore them.

Solution 1Recommended

Temporarily Change Font Color to Match the Background

The most straightforward method to hide cell values from printing is to temporarily change their font color to match the worksheet background (usually white) right before you print.

Because Excel does not have a native 'Do Not Print' property for individual cells, matching the text color to the background color renders the text invisible on the printed page. After printing, you simply undo the action to restore visibility on your screen.

1
Select the target cells

Highlight the specific cells containing the costs and calculated totals you want to hide.

2
Change the font color

Navigate to the 'Home' tab on the ribbon. Click the 'Font Color' dropdown and select the color that matches your cell background (e.g., White).

3
Print the document

Go to File > Print (or press Ctrl + P) and print your spreadsheet. The hidden values will not appear on the paper.

4
Restore the original color

Immediately press 'Ctrl + Z' (Undo) or manually change the font color back to Automatic/Black to keep the values visible on your screen.

Temporarily Change Font Color to Match the Background
Quick Tip: If you need to do this frequently, consider setting up a custom Cell Style named 'Hidden Print' to quickly apply and remove the white font color.
Efficient Printing with WPS Office

Control Your Print Output Easily in WPS Spreadsheet

WPS Office provides seamless formatting and printing controls, allowing you to manage exactly what appears on your printed spreadsheets while retaining full data visibility on screen.

  1. 1. Open your file in WPS Spreadsheet: Launch WPS Office and open the spreadsheet containing the data you want to print.
  2. 2. Highlight the sensitive cells: Select the cells containing the costs or totals that should be excluded from the printout.
  3. 3. Change font color: Go to the Home tab and change the font color to match your worksheet background (e.g., White).
  4. 4. Print the document: Press Ctrl + P to open the Print Preview. Confirm the values are hidden, then click Print.
  5. 5. Restore visibility: Press Ctrl + Z immediately after printing to undo the color change and restore the values on your screen.
Free, lightweight, and fast office suiteFully compatible with Microsoft Excel formats (.xlsx, .xls)Advanced print preview and quick layout controlsEasy-to-use cell formatting and object properties
microsoft office alternative - wps office

Frequently Asked Questions

Can I use the `;;;` custom number format to hide cells from printing?

Yes, applying the `;;;` custom number format will hide the cell value from printing. However, this also hides the value on your screen. The data will only be visible in the formula bar when you actively click on the cell, which may not be ideal if you need to view the entire spreadsheet at once.

Is there a native 'Do Not Print' button for individual cells in Excel?

No, Excel does not have a native feature to flag specific cells as non-printable. You must rely on workarounds like changing the font color, hiding entire columns/rows, or utilizing non-printing shapes.

Can a macro automate hiding these cells before printing?

Yes. You can write a VBA macro using the `Workbook_BeforePrint` event to automatically change the font color of specific ranges to white right before printing, and a standard macro to restore the original color afterward. This requires saving the file as a Macro-Enabled Workbook (.xlsm).