Pivot Table Issues

How to Hide Blank Rows and Columns in an Excel PivotTable

Steven ParkerSteven Parker Nov 27, 2026 870 views

Question details

Find a way to hide unused rows and columns in a filtered Excel PivotTable while preserving manually calculated totals for multiple users.

How to Hide Blank Rows and Columns in an Excel PivotTable
Product
Microsoft Excel PivotTable
Device & OS
not provided
Scenario
A filtered PivotTable is shared with multiple users, and the workbook contains manually calculated totals.
Observed behavior
The user wants blank or unused PivotTable rows and columns hidden without disrupting the calculated totals.
Before you start

Identify which blanks come from PivotTable fields and which are worksheet rows or columns outside the PivotTable. Check where the manual total formulas are located and note their references before changing the layout or refreshing the PivotTable.

Solution 1Recommended

Filter blank items and adjust the PivotTable layout

Use built-in PivotTable settings to hide blank field items, suppress items with no data, and remove inserted blank lines.

1
Filter blank field items

Open the drop-down for a PivotTable row or column field, clear the checkbox for (blank), and select OK. Repeat for other fields that show unwanted blank items.

2
Suppress items with no data

Right-click a field label, select Field Settings, and open Layout & Print. If Show items with no data is selected and available, clear it and select OK. Repeat for relevant fields.

3
Remove inserted blank lines

Click the PivotTable, then select Design > Blank Rows > Remove Blank Line After Each Item. This removes layout spacing, not blank source-data records.

4
Check totals after refreshing

Select PivotTable Analyze > Refresh, then inspect the manually calculated totals and their formula references. Confirm that the PivotTable has not expanded into cells containing those formulas.

Filter blank items and adjust the PivotTable layout
Check the shared layout: Filtering and refreshing can change the size of a PivotTable. Allow space for it to expand, and test the workbook with the filters other users need. Field options can vary by Excel version and data source.
Free Microsoft Office alternative

Work with spreadsheet reports in WPS Office

WPS Office is a free, lightweight Office alternative with a familiar interface and support for Excel file formats, making it easy to open and continue working with existing spreadsheets. Check PivotTable layouts and formulas after migration, since features may behave differently from Excel.

Open and edit Microsoft Excel XLS and XLSX filesWork with spreadsheet reports and PivotTables in a familiar interfaceUse a free, lightweight alternative for everyday office tasksMove existing spreadsheets into WPS Office without starting over
microsoft office alternative - wps office

Frequently Asked Questions

How do I remove the word (blank) from a PivotTable?

Open the affected row or column field's filter drop-down, clear (blank), and select OK. Repeat for any other field containing unwanted blank items.

Why are empty items still displayed in my PivotTable?

A field may be set to show items with no data. Right-click its label, select Field Settings > Layout & Print, and clear Show items with no data if the option is available.

Will filtering a PivotTable preserve my manual totals?

Filtering does not guarantee that totals outside the PivotTable remain correctly positioned or referenced. After applying filters or selecting PivotTable Analyze > Refresh, check the formulas and leave room for the PivotTable to expand.

Can a macro hide unused rows for everyone using the workbook?

A macro can be designed for a specific workbook, but users must be able to run macros under their organization's security settings. Provide a sample workbook and clear output requirements to develop and test a reliable solution.