Pivot Table Issues

Fix Excel Pivot Table Inserting Blank Rows After Every Item

Maira MehtabMaira Mehtab Oct 7, 2026 873 views

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.

How to Fix Excel Pivot Table Inserting Blank Rows After Every Item
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.
Before you start

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.

Solution 1Recommended

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.

1
Select the target parent field

Click on a cell inside the Pivot Table that contains the higher-level category or account field you want to separate with blank lines.

2
Open the Design tab

Navigate to the 'Design' tab located under the PivotTable Tools section on the top ribbon.

3
Insert the blank row

Click on 'Blank Rows' in the Layout group, then choose 'Insert Blank Line After Each Item'.

Select the Correct Row Field Before Inserting Blank Lines
Formatting Tip: If you still see incorrect formatting, verify your field arrangement in the PivotTable Fields pane to ensure the selected field is grouped properly as a parent row.
Manage Pivot Tables Effortlessly

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. 1. Open your dataset in WPS Spreadsheet: Launch WPS Office and open your workbook containing the raw data.
  2. 2. Insert a Pivot Table: Go to the Insert tab, select 'PivotTable', and drag your desired fields into the Rows and Values areas.
  3. 3. Select the grouping field: Click directly on the parent category field inside the newly generated Pivot Table.
  4. 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.
Fully compatible with Microsoft Excel (.xlsx) Pivot Tables and data modelsIntuitive Design and Layout tabs for easy blank row insertionLightweight software that processes large data files smoothlyFree to use with comprehensive data analysis and visualization tools
microsoft office alternative - wps office

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.