Learn How To Replace Blanks In A Pivot Table With Zeroes With This Microsoft Excel Tutorial
Pin Me

Microsoft Excel: Replace Blanks In A Pivot Table With Zeroes

written by: Mr Excel•edited by: Tricia Goss•updated: 11/17/2011

Problem: Since you had no sales of a particular product in a particular region, Excel leaves those cells in the pivot table blank, as shown in Fig. 869. This seems like a really bad idea. You’ve learned in this book that if your data has blanks instead of zeroes, Excel will assume that a column is a text column. It is really ironic that Microsoft would dare to use a blank cell in the middle of numeric results.

  • slide 1 of 2


    When pivot tables first came out, there was no way to correct this. After much outcry from accountants everywhere, Microsoft gave us two ways to solve the problem.

    Method 1:

    If you discover the problem after the fact in a completed pivot table, follow these steps.

    1) Select one cell in the pivot table in order to display the PivotTable toolbar. From the toolbar, use the PivotTable dropdown and select the Table Options menu item, as shown in Fig. 870.

    2) In the Table Options dialog, on the right side, locate the field called For Empty Cells, Show:, as shown in Fig. 871.

    3) By default, this setting is blank. Type a zero in the textbox and choose OK, as shown in Fig. 872.


    As you see in Fig. 873, blanks in the data section of the pivot table are shown as zeroes.

    Method 2:

    The other method for having zeroes appear is to use the Options button in Step 3 of the PivotTable Wizard, as shown in Fig. 874. This button will open the same Options dialog as shown above.


    Make sure to use the Options dialog to display empty cells as zeroes instead of blanks.

    Commands Discussed:

    Data – Pivot Table

  • slide 2 of 2


    Fig. 869Fig. 870Fig. 871Fig. 872Fig. 873Fig. 874
More To Explore