How to Remove Blank Rows in an Excel Pivot Table – 4 Methods

Consider this sample dataset in a pivot table with blank cells.

How-to-Remove-Blank-Rows-in-Excel-Pivot-Table


Method 1 –  Use the Pivot Table Options to Remove Blank Rows 

Step 1:

  • Right-click the pivot table.
  • Select “PivotTable Options”.

Use Pivot Table Option to Remove Blank Rows

Step 2:

  • Choose “Layout & Format”.
  •  In “For empty cells show”enter “0”.
  • Click OK.

Use Pivot Table Option to Remove Blank Rows

  • All blank cells will display “0”.

Use Pivot Table Option to Remove Blank Rows

 


Method 2 – Applying Conditional Formatting to Remove Blank Rows in an Excel Pivot Table

Step 1:

  • Select a range or group of cells.
  • Go to Home and select “Conditional Formatting”. Choose “New Rule”.

Apply Conditional Formatting to Remove Blank Rows in Excel Pivot Table

Step 2:

  • In New Formatting Rule, click “Format only cells that contain”.
  • In “Format only cells with:“, choose “equal to” and “(blank)”.
  • Click “Format”.

Apply Conditional Formatting to Remove Blank Rows in Excel Pivot Table

Step 3:

  • In the “Format Cells” dialog box will, choose “Number” and change the category to “Custom”.
  • Enter “;;;”. This will format all zero or blank cells as blank.
  • Click OK.

Step 4:

  • Go to “Fill” and choose a color.
  • Click OK.

Apply Conditional Formatting to Remove Blank Rows in Excel Pivot Table

  • Blank is filled with color.


Method 3 – Utilizing the Filter Feature to Remove Blank Rows in an Excel Pivot Table

Steps :

  • In a pivot table column header click on the arrow.

  • Untick the blank row option.
  • Click OK.

  • The blank rows will be removed.

 


Method 4 – Applying the  Find & Replace Option to Remove Blank Rows in an Excel Pivot Table

Steps :

  • Select the worksheet.
  • Press Ctrl + H to see the “Find and Replace” dialog box.
  • In “Replace with”, choose “Other”.
  • Click “Replace All”.

  • In the confirmation window,click OK.

Apply Find & Replace Option to Remove Blank Rows in Excel Pivot Table

  • Click “Close” to see the results.

  • Blank cells were removed.

 


Download Practice Workbook

Download this practice workbook to exercise.


Related Articles


<< Go Back to Blank in Pivot Table | Pivot Table Formatting | Pivot Table in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Wasim Akram
Wasim Akram

Wasim Akram holds a BSc degree in Industrial and Production Engineering from Ahsanullah University of Science and Technology. Over the past 2 years, he has been actively contributing to the ExcelDemy project, where he has authored more than 150 articles. Now, he is working as an Excel VBA and Content Developer. He likes learning new things about Microsoft Office, especially Excel VBA, Power Query, Data Analysis, and Excel Statistics. He is also very interested in machine learning and... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo