How to Hide Blank Rows and Columns in an Excel PivotTable
Question details
Find a way to hide unused rows and columns in a filtered Excel PivotTable while preserving manually calculated totals for multiple users.

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

Hide unused worksheet rows or columns outside the PivotTable
Use worksheet hiding when the unwanted space is outside the PivotTable rather than a blank PivotTable item.
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.

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.




