- On the Tools menu, click Options, and then click the View tab.
- Do one of the following:
-
To display zero (0) values in cells, select the Zero values check box.
-
To display zero values as blank cells, clear the check box.
-
Use a number format to hide zero values in selected cells
Caution This topic applies a format to hide zero values in selected cells. If the value in one of these cells changes to a nonzero value, the format of the value will be similar to the General number format.
- Select the cells that contain the zeros (0's) you want to hide.
- On the Format menu, click Cells, and then click the Number tab.
- In the Category list, click Custom.
- In the Type box, type 0;-0;;@
Notes
- The hidden values appear only in the formula bar
— or in the cell if you edit within the cell — and are not printed. - To display hidden values again, select the cells, click the Cells command on the Format menu, and then click the Number tab. In the Category list, click General to apply the default number format. To redisplay a date or a time, select the appropriate date or time format on the Number tab.
Use a conditional format to hide zero values returned by a formula
-
Select the cell that contains the zero value.
-
On the Format menu, click Conditional Formatting.
-
In the box on the left, click Cell Value Is.
-
In the second box from the left, click equal to.
-
In the box on the right, type 0.
-
Click Format, and then click the Font tab.
-
In the Color box, select white.
Use a formula to display zeros as a blanks, or dashes
Use the IF function to do this task.
Worksheet example
The example may be easier to understand if you copy it to a blank worksheet.
- Create a blank workbook or worksheet.
- Select the example in the Help topic. Do not select the row or column headers.
Selecting an example from Help
- Press CTRL+C.
- In the worksheet, select cell A1, and press CTRL+V.
- To switch between viewing the results and viewing the formulas that return the results, press CTRL+` (grave accent), or on the Tools menu, point to Formula Auditing, and then click Formula Auditing Mode.
|
|
Function details
Hide zero values in a PivotTable report
- Click the report.
- On the PivotTable toolbar, click PivotTable, and then click Table Options.
- Do one or more of the following:
Change error display Select the For error values, show check box under Format options. In the box, type the value you want to display instead of errors. To display errors as blank cells, delete any characters in the box.
Change empty cell display Select the For empty cells, show check box. In the box, type the value you want to display in empty cells. To display blank cells, delete any characters in the box. To display zeros, clear the check box.