Prevent the display of a cell value

RLY

New Member
Joined
May 25, 2010
Messages
44
Can I use code to prevent values in a row of cells from displaying? I do not want to physically hide the row or cells, I just want them to "appear" blank or clear (as if I used white font on a white background).

Thanks, Robert
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

BillP

Board Regular
Joined
May 16, 2007
Messages
61
You could use Conditional Formatting to do that (say, hide all instances of 0 by coloring it to match the background). To hide all numbers or a range of numbers, just make the conditional formatting cover the whole range.

One caveat: If someone highlights the cells (say, with a mouse), the data will show up--dim, but perfectly clear. Two caveat: If someone prints the spreadsheet with print settings set to Black and White, those numbers will print out the same as any other number (Page Setup, Sheet tab, Black and white).
 

RLY

New Member
Joined
May 25, 2010
Messages
44

ADVERTISEMENT

There are certain rows containing numeric values (calc results) that I want to hide 100% of the time (can't get rid of them because they're needed for other calcs). I was hoping for something other than conditional formatting to prevent the row from being highlighted & viewed...
How do I set a "custom format"?

thx, Robert
 

pgc01

MrExcel MVP
Joined
Apr 25, 2006
Messages
19,887
How do I set a "custom format"?

- Select the cells
- Right-Click, select "Format Cells ..."
- in the Number tab select "Custom"
- in the "Type" textbox enter your custom format, in this case:

;;;
 

pgc01

MrExcel MVP
Joined
Apr 25, 2006
Messages
19,887
P. S.

If your purpose is not aesthetic and you want to prevent the user to see the values in the cells, a formatting solution will not do, as you can still select the cell and read the value in the formula bar.
 
Last edited:
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,522
Messages
5,837,838
Members
430,517
Latest member
chessypack86

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top