How to Hide Zero Values in Excel Pivot Table (3 Easy Methods)

Here’s a GIF overview of hiding zeroes or blank values from a pivot table.

Hide zero values in pivot table


Hide Zero Values in Pivot Table in Excel: 3 Easiest Ways

Here’s a dataset of a store’s stock, showing the quantities and prices of some products and their production and expiration dates. Note that some prices and quantities are empty. Let’s make a Pivot Table from the dataset.

Dataset for Hiding Zero Values in Pivot Table in Excel

  • Select the dataset.
  • Click on Insert, choose Pivot Table, and select From Table/Range.

Inserting Pivot Table from Dataset

  • A window named Pivot Table from table or range window will open. In the Table/Range field, you can automatically see the selected range.
  • Tick New Worksheet and press OK.

Selecting Range for Forming Pivot Table

  • Excel will create the Pivot Table in a new worksheet.
  • Click on the table, and in the right side of the sheet, select these 3 options: Products, Quantity, and Price (Per Unit).

Selecting Items for Pivot Table

  • Our Pivot Table is ready.
  • Let’s hide the zero values.

Method 1 – Creating a Filter Field to Hide Zero Values in a Pivot Table

Steps:

  • Click on the pivot table that you created from the dataset.
  • On the right side, you will see PivotTable Fields.

Inserting Quantity in Filters Option

  • From the pivot table fields, drag the Quantity into the Filter field.

Placing Price in Filters Option

  • Drag the Quantity into the Filter field.

Create Filter Field of Pivot Tables and Hide Zero Values

  • You will see two Filter options above the pivot table.

Result After Creating Filter Field

  • Click on the dropdown on Quantity.
  • Check Select Multiple Items.

Selecting Multiple Items on Quantity

  • Uncheck the zero.
  • Click on OK.

Deselecting Zero Value in Quantity

  • There are no zero values in the Quantity column of the pivot table.

Result After Hiding Zero Values in Sum of Quantity Column

  • Repeat the process for the Price(Per Unit) column.
  • You can see that there are no zero values in the pivot table.

Result After Hiding Zero Values in Sum of Price Column


Method2 – Using the Filter Function on a Pivot Table

Steps:

  • Go to the Pivot Table.
  • Select any element from the Row Labels. We have selected Butter.

Picking Any Cell in Pivot Table

  • Right-click on your mouse and select Filter, then choose Value Filter.

Picking Filter Function to Filter Values

  • Select a column. We are choosing the Sum of Quantity column.
  • Select does not equal to from the dropdown menu.
  • Type 0 (Zero) in the following empty field.
  • Click on OK.

Placing Condition in Value Filter Option

  • There are no zero values in the Quantity column.

Result After Using Filter Function to Hide Zero Values in Single Column in Pivot Table

  • Repeat the process for the Price column if you want.

Inserting Another Condition for Hiding Zero of Another Column

  • If you do, the table will look like the following figure.

Result After Using Filter Function to Hide Zero Values in Single Column in Pivot Table


Method 3 – Hide Zero Values from a Pivot Table Using the Format Cells Command in Excel

Steps:

  • Select the entire table.

Selecting Range of Pivot Table

  • Press Ctrl + 1 on your keyboard to open the Format Cells dialog box.
  • Go to the Custom panel.
  • Clear General from the Type field.
  • Paste the following code in the field and press OK:
0;-0;;@

Typing Custom Cell Formula at Format Cells Command to hide zero values in pivot table

  • There are no zero values in the pivot tables.

Result After Utilizing Format Cells Command to Hide Zero Values in Pivot Table


Things to Remember

  • The second method will hide zero values from a particular column, not from the whole pivot table.
  • The third method will hide zero values, not the cells or rows.

Practice Section 

We have provided a Practice section on the right side of each sheet.

Practise Workbook to hide zero values in pivot table


Download the Practice Workbook


Related Articles


<< Go Back to Blank in Pivot Table | Pivot Table Formatting | Pivot Table in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
A.N.M. Mohaimen Shanto
A.N.M. Mohaimen Shanto

A.N.M. Mohaimen Shanto, a B.Sc. in Computer Science and Engineering from Daffodil International University, boasts two years of experience as a Project Manager at Exceldemy. He authored 90+ articles and led teams as a Team Leader, meticulously reviewing over a thousand articles. Currently, he focuses on enhancing article quality. His passion lies in Excel VBA, Data Science, and SEO, where he enjoys simplifying complex ideas to facilitate learning and growth. His journey mirrors Exceldemy's dedication to excellence and... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo