Hiding zero (0) values in Excel can be especially helpful for de-cluttering your workbooks and in most cases, make them easier to read. In this guide, we’re going to show you how to hide zeros in Excel worksheets, following three different methods.
How to Hide Zeros in Excel from an Entire Sheet
This option is one of the easiest ways to hide the zero (0) values on an entire sheet. All you need to do is disable it from the corresponding checkbox in Excel Options. Here is how you can find this option:
- Click File in the Ribbon
- Click on Options to activate the Excel Options dialog
- Activate the Advanced tab from the left pane
- Scroll down to the section Display options for this worksheet:
- Select the worksheet where you want to hide the zero values
- Disable the Show a zero in cells that have zero value checkbox
- Click OK to save your settings
That's all! Remember that this option applies only selected sheet. If you want to hide the zero values from the entire workbook, you need to disable this option for all worksheets.
Using Number Formatting
The next method involves using custom number formatting. So, you can set cell-specific rules rather than in the entire worksheet. Aside from Excel's built-in number format options like Currency, Date or Percentage, you can set your own custom number formatting. Let's see how you can apply a custom format.
- Select the cells you want to hide if their values are zero.
- Press Ctrl + 1 key combination to open the Format Cells dialog
- Make sure the Number tab is active
- Select Custom from the list
- Enter 0;-0;;@ in the Type field
- Click OK to apply your settings
An important note in here: The custom format replaces any existing number formatting. For example, if you set a field set to Currency, the cell will display $1,500.00 for the value of 1500. If you set 0;-0;;@ as the number formatting, the cell will display 1500 as 1500, without Currency formatting. To overcome this issue, you need to set currency formatting manually. For example, the following code both displays numbers as Currency and hides zeros:
For more information about custom number formats, please see: Number Formatting in Excel – All You Need to Know
Using Conditional Formatting
Conditional Formatting can be used to hide zeros in Excel with the use of cell based rules. Conditional Formatting feature applies pre-defined formatting options to the cells or ranges when a specific condition is met. The condition in our case would be whether a cell value is equal to zero.
- Start by selecting the cells you want to apply hiding the zeros rule
- Activate the Home tab in the Ribbon
- Click Conditional Formatting
- Click New Rule to open the conditional formatting dialog
- Select the Format only cells that contain option in Select a Rule Type box
- Change the selection in the second dropdown from between to equal to
- Enter 0 (zero) to the input on the right
- Click the Format button to open the Format Cells dialog
- Set font color to the color that matches the worksheet background
- Click OK button to apply the conditional formatting.
Your conditional formatting dialog should look like this: