EDUCBA Logo

EDUCBA

MENUMENU
  • Explore
    • EDUCBA Pro
    • PRO Bundles
    • All Courses
    • All Specializations
  • Blog
  • Enterprise
  • Free Courses
  • All Courses
  • All Specializations
  • Log in
  • Sign Up
Home Excel Excel Resources Excel Tools Excel Conditional Formatting in Pivot Table
 

Excel Conditional Formatting in Pivot Table

Madhuri Thakur
Article byMadhuri Thakur

Updated June 2, 2023

Conditional Formatting in Pivot Table

 

 

Conditional Formatting in Excel Pivot Table (Table of Contents)

Watch our Demo Courses and Videos

Valuation, Hadoop, Excel, Mobile Apps, Web Development & many more.

  • Conditional Formatting in the Pivot Table
  • How to Apply Conditional Formatting in Excel Pivot Table?

Conditional Formatting in the Pivot Table

To apply Conditional Formatting in any pivot table, first, select the pivot, and then from the Home menu tab, select any of the conditional formatting options. If you want to format the data with Above Average values under Top/Bottom Rules, choose the option. After that, from the corner of the cell, we will have the Formatting Option icon; from there, select the formatting rule for All the cells there in the pivot showing the value as per the defined or selected condition.

How to Apply Conditional Formatting in Excel Pivot Table?

If you want to highlight a particular cell value in the report, use conditional formatting in the excel pivot table. Let’s take an example to understand this process.

You can download this Conditional Formatting in Pivot Table Excel Template here – Conditional Formatting in Pivot Table Excel Template

Example #1

We have given below data of a Retail Store (2 months data).

Example 1

Follow the below steps to create a Pivot Table:

  • Click on any cell in the data. Go to the INSERT tab.
  • Click on the Pivot Table under the Tables section and create a pivot table. Refer to the below screenshot.

Pivot Table

  • A dialog box appears. Click OK.

Dialog box

  • We get the below result.

Conditional Formatting in Pivot Table Example 1-4

  • Drag Product field to Rows section, Sales to value section, whereas the Month field to Column section.

Conditional Formatting in Pivot Table Example 1-5

Now we have the Pivot report for month-wise sale. We want to highlight the products whose sale is less than 1500.

For applying conditional formatting in this pivot table, follow the below steps:

  • Select the cells range for which you want to apply conditional formatting in excel. We have selected the range B5:C14 here.
  • Go to the HOME tab > Click on Conditional Formatting option under Styles > Click on Highlight Cells Rules option > Click on Less Than option.

Conditional Formatting in Pivot Table Example 1-6.mp4

  • It will open a Less Than dialog box.
  • Enter 1500 under the Format Cells field and choose a color as “Yellow Fill with Dark Yellow Text”. Refer to the below screenshot.

Conditional Formatting in Pivot Table Example 1-7

  • And then click on OK.

Conditional Formatting in Pivot Table Example 1-8

  • The Pivot Report will look like this.

Pivot Report

This will highlight all the Cell values which are less than Rs 1500.

But there is a loophole with the condition formatting here. Whenever we make any changes in the Excel Pivot data, then conditional formatting will not be applied to the correct cells, and it might not include the whole new data.

The reason being is when we select a particular cell range for applying conditional formatting in excel. Here we have selected the fixed cell range B5:C14; hence, it would not be applied to the new range when we update the Pivot table.

A solution to overcome the problem:

For overcoming this problem, follow the below steps after applying conditional formatting in the Excel pivot table:

  • Click on any cell in the pivot table > Go to the HOME tab > Click on Conditional Formatting option under Styles option > Click on Manage Rules option.

Conditional Formatting in Pivot Table Example 1-10

  • It will open a Rules Manager dialog box. Click on the Edit Rule tab, as shown in the below screenshot.

Click on Edit Rule

  • It will open the Editing Rule formatting window. Refer to the below screenshot.

Editing Rule formatting window

As we can see in the above screenshot, Under Apply Rule To section, there are three options available:

  1. Selected Cells: This option is not applicable when you make any changes in the Pivot data, like add or delete the data.
  2. All cells showing “Sum of Sale” values: This option might include extra fields like Grand Totals etc. ,fields which we might not want to include in our reports.
  3. All cells showing “Sum of Sale” values for “Product” and “Month”: This option restricts with the data and does formatting with cells where our required cells appear. It excludes the extra cells like Grand Totals etc. This option is the best option for formatting.
  • Click on the 3rd option All Cells showing “Sum of Sale” values for “product” and “Month” as shown in the below screenshot ,and then click on OK.

Conditional Formatting in Pivot Table Example 1-13

  • The below screen will appear.

Conditional Formatting in Pivot Table Example 1-14

  • Click on Apply and then click OK.

Conditional Formatting in Pivot Table Example 1-15

It will apply the formatting in all the cells with the updated record in the dataset.

Things to Remember 

  • If you want to apply a new condition or change the formatting color, you can change these options under the Edit Rule Formatting window.
  • This is the best option to present the data to the management and target the specific data which you want to highlight in your reports.

Recommended Articles

This has been a guide to Conditional Formatting in the Pivot Table. Here we discuss how to apply conditional formatting in an excel pivot table along with practical examples and a downloadable excel template. You can also go through our other suggested articles –

  1. Excel COLUMN to Number
  2. Pivot Table Count Unique
  3. VBA Format
  4. Excel Conditional Formatting for Dates
Primary Sidebar
Footer
Follow us!
  • EDUCBA FacebookEDUCBA TwitterEDUCBA LinkedINEDUCBA Instagram
  • EDUCBA YoutubeEDUCBA CourseraEDUCBA Udemy
APPS
EDUCBA Android AppEDUCBA iOS App
Blog
  • Blog
  • Free Tutorials
  • About us
  • Contact us
  • Log in
Courses
  • Enterprise Solutions
  • Free Courses
  • Explore Programs
  • All Courses
  • All in One Bundles
  • Sign up
Email
  • [email protected]

ISO 10004:2018 & ISO 9001:2015 Certified

© 2025 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more

EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

By continuing above step, you agree to our Terms of Use and Privacy Policy.
*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

Download Conditional Formatting in Pivot Table Excel Template

EDUCBA Login

Forgot Password?

EDUCBA

Download Conditional Formatting in Pivot Table Excel Template

EDUCBA

डाउनलोड Conditional Formatting in Pivot Table Excel Template

🚀 Limited Time Offer! - 🎁 ENROLL NOW