Open In App

How to Hide Zero Values in Pivot Table in Excel?

Last Updated: 14 May, 2024

C

Summarize
Comments
Improve
Suggest changes
Like Article
Like
Share
Report
News Follow

One of Microsoft Excel’s most important features is the pivot table. You might be aware of this if you have worked with it. It provides us with a thorough view and insight into the dataset. You can do a lot with it. The pivot table might include zero values.

In this lesson, you will learn how to hide zero values in the pivot table using relevant examples and visuals. Hide the rows in a pivot table that have zero values. After concealing the zero-value rows, your pivot table will seem neater and the data will be suppressed.

How-to-Hide-Zero-Values-in-Pivot-Table-in-Excel

How to Hide Zero Values in Pivot Table in Excel?

Implementation

Let’s take a dataset as an example to understand How to Hide Zero Values in a Pivot Table in Excel. This is the dataset that we are going to use in this scenario.

dataset

The Excel table has some zero values, as you can see. First, you must transform an excel table into a pivot table. You may need to hide them at times to have a clear view of the pivot table.

Methods for Hiding Zero-Values

There are three different methods for hiding zero values in an Excel pivot table.

How to Create a Filter Field to Hide Rows with Zero Values

Please follow the procedures below to prevent the zero-value rows from being displayed in the pivot table:

Step 1: Choosing Pivot Table from the Dataset

First, choose the pivot table you built from the dataset. The pivot table fields pane will now appear on the right side.

Pivot table fields

Step 2: Fill the Filters Field

Now drag the score and medal count field from the pivot tables field to the filters field.

dragging score and medal count fields

Step 3: Filter Choices will Appear

Following that, two filter choices will appear above the pivot table.

filter-choices

Step 4: Click OK after Selecting Mulitple Items

Then, in the score field, click the drop-down arrow and select the Select Multiple Items boxes, then uncheck the value 0 and then click on OK.

score field

Step 5: Result

As you can see, there are no zero values in the pivot table’s score column. Repeat the process for the Medal count column. Our pivot table will then look like this:

for medal count column

Finally, the pivot table shows that there are no zero values. So we were successful in using the pivot table’s filter field technique.

How to Hide Pivot Table Zero Values Using Excel’s Format Cells Command

Step 1: Select the table

First you need to select the entire table then press Ctrl+1.

selecting table

Step 2: Select Custom Category in Number Section

Now the format cell dialog box appears. Here select on the custom category.

format-cell-dialog-box

Step 3: Enter in the type field and then Click OK

After that clear the general text from the type field and write ‘0;-0;;@’ in the text field and then click OK.

filling text field

Step 4: Result

As you can see, there are no zero values in the pivot table.

no zero values in pivot table

Finally, the pivot table shows that there are no zero values. So we were successful in using the format cells command.

How to Hide Zero Value Rows in Pivot Tables by Using Filter Function

Step 1: Choose value filters for the desired Element

To begin, choose any element from the Row Labels. Then right-click on your mouse and then, from the menu, choose Filter and then choose Value filters.

choosing value filters

Step 2: Select Sum of Score in Value Filter box

Then the Value filter dialog box appears. Now first select the column from the drop-down, here we are selecting the sum of the score.

value filter dialogue box

Step 3: Select “does not equal” and “0” and then Click OK

Now in the second field select does not equal from the drop-down and then in the third field write 0. Click OK.

filling second and third field

Step 4: Result

As you can see, the pivot table’s score column has no zero values. Repeat the procedure for the Medal count column. Then our pivot table will look like this:

no zero values in pivot table

Finally, the pivot table shows that there are no zero values. So we were successful in using the filter function.

Summary

In conclusion, learning how to hide zero values in Excel pivot tables makes your data look cleaner and more professional. We’ve covered several easy methods, like adjusting settings, using filters, and applying custom formulas. With these tools, you can improve how you present your data in Excel. Practice these techniques to manage and display your data more effectively in your pivot tables.

How to Hide Zero Values in Pivot Table in Excel – FAQs

How to hide 0 values in PivotTable?

To hide zero values in an Excel PivotTable:

  • Rightclick in the PivotTable
  • Select “Value Filters
  • Choose “Does Not Equal” and then enter “0“.

This will filter out all zero values.

How do I remove zeros from a PivotTable average?

To remove zeros from a PivotTable average in Excel, use a calculated field.

  • Right-click the PivotTable, select “Calculated Field
  • Create a formula like ” =IF(Value=0, NULL, Value) ” to exclude zeros from the average calculation.


C

News
Improve
Discuss
Do you want to advertise with us?Click here to know more

How to Create Pivot Chart from Pivot Table in Excel using Java?

A Pivot Chart is used to analyze data of a table with very little effort (and no formulas) and it gives you the big picture of your raw data. It allows you to analyze data using various types of graphs and layouts. It is considered to be the best chart during a business presentation that involves huge data. To add a pivot chart to an Excel worksheet, you need to use the "WorksheetChartsCollection.add" method.  Before Creating a Pivot Chart, one first needs to go through how to Create Pivot Table in Excel using Java. Now let's discuss the steps to create a pivot chart in an Excel file in Java using Free Spire.XLS for Java API. How to Create a Pivot Table in Excel using JavaStep 1: Load the Excel fileWorkbook workbook = new Workbook() String workbookName = "Geeks_For_Geeks.xlsx"; workbook.loadFromFile(workbookName); Step 2: Get the first worksheetWorksheet sheet = workbook.getWorksheets().get(0); Step 3: Get the first pivot table in the worksheetIPivotTable pivotTable = sheet.getPivotTables().get(0); Step 4: Add a clustered column chart based on the pivot table to the second worksheetChart chart = workbook.getWorksheets().get(1).getCharts().add(ExcelChartType.ColumnClustered, pivotTa
Read More

How to Hide Zero Values in Excel

article_img
Microsoft Excel enables us to format, organize and calculate data in a spreadsheet. It's a great tool for preparing datasets and it makes those datasets easier for users and analysts to analyze the data. Sometimes these datasets contain zero values that are not required to be seen. Excel provides an easy way to hide those zero values without affecting the data and the datasets. Whenever we have a large dataset, many of the data values in the dataset may be zero and as per requirement, we may need to hide those zero values and leave the cells empty. Let's learn how we can Hide Zero Values In Excel. Hiding Zero Values in ExcelLet's assume we have the following dataset, showing the sales of different courses in different cities. Fig 1 - DatasetWe can see that our dataset contains zero(0) elements that we need to remove. This can be easily done by removing each 0 entry one by one for such a small dataset. But If we have a massive dataset with thousands of entries it became very difficult to remove elements manually. How to Automatically Hide Zero Values In CellsIn this method, we will use the options provided by Excel to hide zero values in the cells. This method hides the zero value w
Read More

How to Create Pivot Table in Excel using Java?

A pivot table is needed to quickly analyze data of a table with very little effort (and no formulas) and sometimes not everyone has time to look at the data in the table and see what’s going on and use it to build good-looking reports for large data sets in an Excel worksheet. Let's discuss a step-by-step proper explanation to create a pivot table in an Excel file in Java using Free Spire.XLS for Java API. Requirements to Create Pivot Table in Excel using JavaFirstly, we need to add necessary dependencies to the Maven project including the Free Spire.XLS project before starting to write the code. How to Install Spire.XLS for JavaBy adding the following code to your project's pom.xml file, you can quickly import the JAR file into your program if you use Maven. XML <repositories> <repository> <id>com.e-iceblue</id> <name>e-iceblue</name> <url>http://repo.e-iceblue.com/nexus/content/groups/public/</url> </repository> </repositories> <dependencies> <dependency> <groupId>javax.xml.bind</groupId> <artifactId>jaxb-api</artifactId> <version>2.3.1</version> </dependency> <dep
Read More

How to Flatten Data in Excel Pivot Table?

article_img
Flattening a pivot table in Excel can make data analysis and extraction much easier. In order to make the format more usable, it's possible to "flatten" the pivot table in Excel. To do this, click anyplace on the turn table to actuate the PivotTable Tools menu. Click Design, then Report Layout, and then, at that point, Show in Tabular Form. This will isolate the line names and make it simpler to investigate information.What Does Flattening Mean in Excel?Flattening a pivot table in Excel refers to transforming the data from a pivot table format, which can be complex and hierarchical, into a simple tabular format. This process separates row labels and creates a structure that is easier to work with for further analysis or export to data warehouses.Flatten is a table function that takes a VARIANT, OBJECT, or ARRAY column and produces a lateral view (for example an inline view that contains a relationship alluding to different tables that go before it in the FROM clause). FLATTEN can convert semi-structured data to a relational representation.Benefits of Flattening Data in ExcelImproved Data Analysis: Flattened data is easier to analyze, as all relevant information is available in a ta
Read More

How to Add and Use an Excel Pivot Table Calculated Field?

article_img
Excel pivot tables are one of its most helpful features. They are utilized to summarize or aggregate large quantities of data. The data can be summarized using the average, the count, or other statistical approaches. It summarizes a large amount of data into a few rows and columns. They make it simple to explore the data from various views and angles and are excellent for data exploration. When you create a Pivot table, you often need to add more data and calculations to your analysis. If you require a new data point that can be obtained by leveraging existing data points in the Pivot Table, you don't need to go back and add it to the source data. Instead, you can utilize a Pivot Table Calculated Field to accomplish this. Pivot Table Calculated Field The "Pivot Table calculated field" option allows you to insert more data or calculations in the pivot table. For our reports, we frequently need to include our own unique calculations that can relate to other fields in the data collection. Benefits of using a Pivot Table Calculated FieldIt is scalable since it will automatically account for any new data added to your Pivot Table. You can utilize a Calculate Field in your Pivot Table ju
Read More

How to Troubleshoot and Fix Excel Pivot Table Errors?

article_img
Power Pivot is an Excel add-in, a data modeling technology that helps the user to create data models, establish relationships, and create calculations. However, it is possible to encounter a few errors during the process. here in this article, we will discuss some of the Excel Pivot Table Errors that may occur and how we can fix them. Usually, Excel Pivot works smoothly and efficiently, however, it is inevitable to encounter some errors while working with the software. Here are some of the common errors that users might encounter during working with Excel PowerPivot. "Unable to load the Data Model" Error Sometimes, A simple data change, for example, adding the pivot table data to the Data Model may cause a pivot table refresh error. It’s not that common, however, sometimes users do face such issues. As we can see in the image below: Here, in the image, as we can see above the message is showing that the “PowerPivot is unable to load the Data Model”. Solution: The change from the UPPER case to the PROPER case or other similar changes in the source data headings may be the primary cause of this error resulting in the data model having a second instance of the field. As shown in t
Read More

Pivot Table Slicers in Excel

article_img
Slicers are the visual representation of filters. By using a slicer, we can filter our data in the pivot table by just clicking on the type of data we want. Slicers are found in the Analyze tab of the pivot table tools. We have an option called Insert Slicer and on clicking it, we have to select the column on the basis of which we need to filter our data. What are Pivot Table Slicers?Pivot Table Slicers are Visual controls that help users filter data in a Pivot Table or Pivot Chart. They act as a user interface element. Slicers are useful when you have multiple fields(columns) in the pivot table and want to control the data displayed by selecting specific criteria. How to Insert a Pivot Table Slicer Follow the below steps to insert a Pivot table slicer: Step 1: Create a Pivot tableSelect the data you want to analyze and then create a Pivot table. Step 2: Design the Pivot TableDesign the Pivot table by dragging the relevant fields to the "Rows", "Columns", "Values", or "Filters" area of the PivotTable Fields pane. Step 3: Insert a SlicerWhen your Pivot Table is ready, go to the "Pivot Table Analyze" or "Options" tab in the Excel ribbon. Click on "Insert Slicer", and a dialog box wil
Read More

How to Delete a Pivot Table in Excel?

article_img
A pivot table is a tool in Excel that allows you to quickly summarize data in the spreadsheet. When it comes to deleting a Pivot Table, there are a few different ways you can do this. The method you choose will depend on how you want to delete the Pivot Table. 1.Delete the Pivot Table and the Resulting Data. Steps to delete the Pivot table and the Resulting Data- Select any cell in the Pivot TableSelect the ‘Analyze’ tab. Click on the ‘Select’ option in the Actions group.Choose Entire Pivot tableHit the Delete key.2.Delete the Pivot Table but Keep the Resulting Data. If we want to delete the entire pivot table but retain the resulting data, the procedure is more or less the same Steps to delete the Pivot table but Keep the Resulting Data: Select any cell in the Pivot TableChoose the ‘Analyze’ tab in the ribbon. In the Actions group, choose the ‘Select’ option. Select the Entire Pivot table. Right-click on any cell of the selected Pivot Table.Click on Copy. This will copy the data of the entire Pivot Table. Click the Home tab. Click on the Paste option. In the Paste Values section, click on the first icon. The above steps would delete the Pivot Table but still keep the resulting dat
Read More

I

How to Remove Pivot Table But Keep Data in Excel?

In this article, we will look into how to remove the Pivot Table but want to keep the data intact in Excel. To do so follow the below steps: Step 1: Select the Pivot table. To select the table, go to Analyze tabSelect the menu and choose the Entire Pivot Table. Step 2: Now copy the entire Pivot table data by Ctrl+C. Step 3: Select a cell in the worksheet where you want to paste the data. Step 4: Click Ctrl+V, to paste the data. Step 5: Click on the Ctrl dropdown. Choose the value(v) option from Paste options. Step 6: Now, again select the entire Pivot table. Step 7: Delete it using the Delete key on the keyboard. Step 8: Or you can also choose the Clear All command from the Home tab => Editing section => Clear dropdown. You will find your pivot table will be completely deleted from the worksheet. Thus, we can delete the pivot table without losing pivot table data.
Read More

How to Apply Conditional Formatting in a Pivot Table in Excel

article_img
One of the most useful ways to customize the pivot table formatting is using Conditional Formats. Conditional formatting rules can be applied to Pivot tables just like they can be applied to normal data ranges. So by using conditional formatting, we can highlight the cells with a certain color depending on the cell's value. Conditional FormattingWhat is Pivot Table Conditional Formatting In Excel, you have the power to make your data stand out using conditional formatting. This means you can automatically highlight cells that meet certain criteria. For example, you can easily spotlight cells that have values above the average or those that fall below a specific threshold. Now, when you apply this special formatting to a Pivot table, there is an important step to remember. After you've set up your conditional formatting, make sure to tweak the settings so that even after you refresh the Pivot table, the right cells maintain their distinctive appearance. This ensures that your highlighted information remains accurate and up-to-date as your data evolves. Types of Conditional Formatting in ExcelThere are many conditional formats that we can use on our data. Some of them are given below
Read More
three90RightbarBannerImg