Hide Zero or Blank Columns in an Excel PivotTable
Question details
Hide PivotTable categories that have zero results or no data after a slicer selection.

- Product
- Microsoft Excel PivotTable
- Device & OS
- not provided
- Scenario
- A PivotTable displays categories as columns and is filtered with slicers.
- Observed behavior
- Some category columns remain visible even though they show zero results or no data.
Identify the field that supplies the PivotTable columns and the value field whose total should determine whether a category is displayed. Apply the slicer selection you want to check before configuring the PivotTable.
Apply a Value Filter to Hide Zero-Total Categories
Use a Value Filter when columns should disappear if their selected value field totals zero.
Click the drop-down arrow for the category field in the PivotTable's Column Labels area.
Choose Value Filters > Does Not Equal. Select the relevant value field, enter 0, and click OK.
Change the slicer selection and check the displayed columns. If needed, right-click the PivotTable and select Refresh.

Turn Off Display of Items With No Data
Use this setting when categories with no matching data remain visible as blank columns.
Unpivot Category Columns in Power Query
Use Power Query to reshape source data when separate category columns make the PivotTable difficult to filter.
Work With PivotTable Data in WPS Spreadsheet
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and support for Microsoft Excel formats, making it easier to move your workbook into WPS Spreadsheet. It does not change settings in Microsoft Excel.

Frequently Asked Questions
Why are zero-value columns still visible after I hide items with no data?
A zero result can still be valid data. Open the column field drop-down and use Value Filters > Does Not Equal with a value of 0 to filter zero totals.
Will the zero filter also hide negative values?
A Does Not Equal 0 filter retains negative totals. A Greater Than 0 filter would exclude them.
Where can I stop Excel from showing categories with no data?
Right-click a category label, choose Field Settings, and clear Show items with no data on the Layout & Print tab.
When should I unpivot my source data?
Consider unpivoting when categories are stored in separate source columns. In Power Query Editor, select those columns and choose Transform > Unpivot Columns to create category and value fields for the PivotTable.




