Fix Excel Pivot Table Inserting Blank Rows After Every Item
Question details
The user is experiencing an issue where blank rows are inserted after every single item in a Pivot Table instead of just after specific subtotal groups.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Formatting a Pivot Table to improve readability by adding blank separation lines after major group categories.
- Observed behavior
- Blank rows appear after every individual item because the innermost field or the wrong row field was active when the blank-row command was applied.
Ensure your Pivot Table contains multiple grouped row fields (like Category and Sub-category) and determine exactly which higher-level group needs the blank separation line.
Select the Correct Row Field Before Inserting Blank Lines
The most effective way to place blank rows only after subtotal groups is to ensure the correct parent field is actively selected before applying the layout change.
Excel relies on your current selection within the Pivot Table to determine where the layout changes should apply. If an inner item is selected, a blank line is placed after every single inner item.
Click on a cell inside the Pivot Table that contains the higher-level category or account field you want to separate with blank lines.
Navigate to the 'Design' tab located under the PivotTable Tools section on the top ribbon.
Click on 'Blank Rows' in the Layout group, then choose 'Insert Blank Line After Each Item'.

Remove Existing Unwanted Blank Rows First
If your Pivot Table is already cluttered with unwanted blank rows, you should clear the existing layout settings before applying the correct ones.
Create and Format Pivot Tables Seamlessly with WPS Office
WPS Spreadsheet provides robust, highly compatible Pivot Table features that make organizing and formatting complex datasets simple. You can effortlessly manage subtotals, item groupings, and blank rows to create professional reports.
- 1. Open your dataset in WPS Spreadsheet: Launch WPS Office and open your workbook containing the raw data.
- 2. Insert a Pivot Table: Go to the Insert tab, select 'PivotTable', and drag your desired fields into the Rows and Values areas.
- 3. Select the grouping field: Click directly on the parent category field inside the newly generated Pivot Table.
- 4. Apply blank row formatting: Navigate to the PivotTable Options/Design tab, locate the layout settings, and insert a blank line after each item to organize your groups.

Frequently Asked Questions
Why is the 'Blank Rows' option grayed out in my Pivot Table?
This typically occurs if you have multiple items selected at once, if the Pivot Table is in a classic layout without subtotals enabled, or if it is connected to a specific external OLAP data source that restricts layout modifications.
Can I insert a blank row after the Grand Total in a Pivot Table?
The built-in 'Insert Blank Line After Each Item' feature only applies to row items and subtotals. To add space after the Grand Total, you will need to manually insert empty rows outside the pivot table's boundary.
How do I color or highlight the blank rows inserted in a Pivot Table?
You can achieve this by choosing a custom Pivot Table Style that includes specific formatting for blank rows, or by using Conditional Formatting with a formula designed to detect empty cells within your Pivot Table range.




