How to Hide Zero Values in Excel

In Excel, users can hide the zero values in the data set and make the cells look blank if they do not want to display the zero values in their data set.

 And they can do it within the selected cells range only or in the entire worksheet as Excel has multiple ways to hide the zero values.

In this tutorial, we have explained to you the multiple ways to hide the zero values

Steps to Hide Zeros in the Worksheet Using Excel Options

Excel has a built-in feature that can be used to hide all the zero values automatically within the entire worksheet using the below steps.

  1. First, open the workbook and then go to the File tab.
    1-file-tab
  2. After that, click on Options.
    2-excel-options
  3. Now, click on “Advanced” from the left pane and then scroll down to the “Display options for this worksheet”.
  4. From here, click on the drop-down icon and select the worksheet in which you want to hide all the zero values.
  5. In the end, uncheck the “Show a zero in cells that have zero value” and click Ok.
    3-display-options-for-this-worksheet
  6. Once you click OK, all the zero values in the worksheet will get hidden and those cells will look blank.
    4-hidden-zero-values

 

Now whenever you will enter the zero value anywhere in this selected worksheet, Excel will hide that zero value.

Hide Zero Values in the Selected Cells Using Format Cells

  1. First, select the cells or the data range from where you want to hide the zero values.
  2. After that right click with the mouse and click on the “Format Cells” option and you will get the “Format Cells” dialog box opened.
    5-format-cells
  3. Now, under the “Number” tab click on the “Custom” option and then enter the custom type as  0;-0;;@ and click OK.
    6-custom-type-field
  4. Once you click OK, all the zero values within the selected range will get hidden.
    7-hide-zero-values

The above-used custom formatting string “0;-0;;@” consists of four parts.

The first 0 is for positive numbers to display the positive values as is, the 2nd part -0 is for negative numbers to display the negative values as is, the 3rd part 0 is missing which is to hide the zero values, and the 4th part @ is to display the text as is: <Positive Numbers>;<Negative Numbers>;<Zeros>;<Text>

Hide Zeros in the Selected Cells Using Conditional Formatting

  1. First, select the cells or the data range from where you want to hide the zero values and go to the “Home” tab and then click on the “Conditional Formatting” icon.
  2. After that click on the “Highlight Cells Rules” option and then on the “Equal To” option.
    8-conditional-formatting-equal-to
  3. Now, within the “Equal To” dialog box in the left side field, enter (0) zero and then click on the drop-down on the right side and choose “Custom Format”.
    9-equal-to-dialog-box
  4. From here, you will get the “Format Cells” dialog box opened, and under the “Font” tab choose the white color and click OK.
    10-format-cells-dialog-box
  5. Once you click OK, the font color of the cells that contains zero value will become white, which will make the cells look empty or blank.
    11-zero-values-hidden

Hiding zero (0) values only mean hiding the value in the cells not removing them, so after hiding the value, cells contain value even if they look blank.