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

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
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).
 
Upvote 0
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
 
Upvote 0
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:

;;;
 
Upvote 0
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:
Upvote 0

Forum statistics

Threads
1,214,605
Messages
6,120,473
Members
448,967
Latest member
visheshkotha

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
Back
Top