Written by Allen Wyatt (last updated August 9, 2023)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365
Excel provides many different ways to hide the content of your workbooks. Perhaps one of the easiest (and most novel) ways is to use the custom formatting feature of the program. Follow these steps:
Figure 1. The Number tab of the Format Cells dialog box.
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 (6122) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. You can find a version of this tip for the older menu interface of Excel here: Easy Value Hiding.
Professional Development Guidance! Four world-class developers offer start-to-finish guidance for building powerful, robust, and secure applications with Excel. The authors show how to consistently make the right design decisions and make the most of Excel's powerful features. Check out Professional Excel Development today!
You may want Excel to format your dates using a pattern it doesn't normally useâ€"such as using periods instead of ...
Discover MoreWant information in a worksheet to be formatted and displayed as rounded to a power of ten? You may be out of luck, ...
Discover MoreWhile the implementation of custom formats in Excel is not terribly robust, you can still achieve some amazing results ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
2023-08-10 10:39:04
J. Woolley
Re. Brian's comment, for more on that subject see https://excelribbon.tips.net/T008969_Progression_Indicator_in_a_Macro.html
2023-08-09 05:30:02
Brian
As excel doesn't provide a facility for a windows type sliding progress bar, if you set a cell to contain the progress of a VBA cycle (perhaps 0 to 100) and then using the technique Allan describes above set the format to "Progress" and finally set the conditional format in that cell to a horizontal data bar. You a good approximation of a progress bar. Here is a screen shot of one I display when running a VBA process to analyse bridge hands:
(see Figure 1 below)
Figure 1.
2019-02-03 04:46:38
Peter Atherton
Further to Denis Costello's comment
'There was a time I could point you to the Excel user's manual available as a help file, but the newer versions of Excel offer this only as online web pages, and by comparison to the old manuals, they really suck.'
I still have XL2007 on my computer and sometimes use that to search for help.
2019-02-02 11:58:52
Dennis Costello
To amplify on Roy's explanation, there are 4 fields in Excel's custom number format, separated by the semicolons. These are, respectively, the format that will be applied to Positive values, Negative values, Zero values, and Text values. The details of what you might put into each of these sections is explained in https://exceljet.net/custom-number-formats - or no doubt an excellent article here that you could find through the Search ExcepTips.
There was a time I could point you to the Excel user's manual available as a help file, but the newer versions of Excel offer this only as online web pages, and by comparison to the old manuals, they really suck.
2018-11-05 10:14:02
Roy
Richard::
In this context, he semi-colon has no meaning to the date format itself.
It is a separator for the four formats described by the material between the semi-colons.
As to "what" is between the semi-colons, it is "nothing"... which is telling Excel to display... "nothing"...
They are just separators with separating the four nothings — four "no formats" and therefore no display whether the result be positive;negative;zero;text.
2018-11-05 05:24:53
Richard
What does a semi-colon mean in this context?
2018-11-03 08:42:42
Deane
I have often wondered why Excel doesn’t list a standard format called ‘Hide’ that did this automatically.
What would be even handier would be an ‘Unhide’ format that would revert to the format that was there before the hide.
2018-11-03 06:01:13
Barry
Another way is to set the text colour to white (or the same colour as the cell fill if it's not white). But this is easily defeated by the User.
Note the value is still visible in the Formula Bar so you can either hide the formula bar (which can easily be turned on by the user) or set the "Hidden" parameter for the cell in question then set a password which is not so easily defeated by the User. This Protection can also be used to stop the User from changing the ";;;" cell formatting or changing the value in the cell as well.
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.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2023 Sharon Parq Associates, Inc.
Comments