Pivot Table Issues

Hide Zero or Blank Columns in an Excel PivotTable

Camila MilosovichCamila Milosovich Nov 27, 2026 869 views

Question details

Hide PivotTable categories that have zero results or no data after a slicer selection.

Hide Zero or Blank Columns in an Excel PivotTable
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.
Before you start

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.

Solution 1Recommended

Apply a Value Filter to Hide Zero-Total Categories

Use a Value Filter when columns should disappear if their selected value field totals zero.

1
Open the column field filter

Click the drop-down arrow for the category field in the PivotTable's Column Labels area.

2
Set the value condition

Choose Value Filters > Does Not Equal. Select the relevant value field, enter 0, and click OK.

3
Check the slicer result

Change the slicer selection and check the displayed columns. If needed, right-click the PivotTable and select Refresh.

Apply a Value Filter to Hide Zero-Total Categories
Check how totals are calculated: A category with positive and negative values that add up to zero may also be hidden. The filter evaluates the selected value field, not each individual source row.
Free Microsoft Office alternative

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.

Explore and summarize source data with PivotTables in WPS Spreadsheet.Open and work with Microsoft Excel XLSX files.Use a familiar interface for everyday spreadsheet tasks.Move between Office-compatible documents in one lightweight suite.
QA img-9

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.