What Is Conditional Formatting In Pivot Table In Google Sheets?
Conditional Formatting in Pivot Table in Google Sheets highlights the required data in the generated Pivot Table and is a very useful feature when projecting reports or important data.
- The Conditional Formatting in Google Sheets is a feature that helps users highlight desired cells or rows based on the rule set or the entered formula.
- The Pivot table is a data table generated using an existing dataset with automatic data filters for easy display of desired data.
For example, we will generate a Pivot Table for the given data, as shown below.

Let us apply Conditional formatting by defining some rules, here, if the value is less than 2, then we will get the output shown below.

๐ฅDownload the ready-to-use Excel template to practice this tutorial yourself.
Conditional Formatting in Pivot Table in Google Sheets_Written&Edited_SheebaTable of contents
Key Takeaways
- Conditional Formatting in Pivot Table in Google Sheets helps us set single or multiple rules to project the desired data in a generated Pivot table.
- Ensure to refresh the Pivot Table when data modification is done because the Conditional Formatting may not work as it is set for a fixed dataset.
- We have another alternate way to apply the โConditional formattingโ as follows:
First, select the dataset ๐กช right-click on the selected dataset ๐กช scroll to the end of the list and click the โView more cell actionsโ right arrow ๐กช select the โConditional formattingโ option, as shown below.

Easy Steps To Apply Conditional Formatting In Pivot Table In Google Sheets
The steps to understand How to Format Pivot Tables in Google Sheets are as follows:
- First, we must ensure to have the raw data and its generated Pivot table.
- Next, select the Pivot table data with the headings, but excluding the totals, select the โFormatโ tab and click the โConditional formattingโ option, as shown below.

- The โConditional format rulesโ pane appears on the right side. Here, click the โAdd another ruleโ option, as shown below.

- We will see โSingle Colorโ and โColor scaleโ tabs. Here, click the โSingle colorโ tab to view multiple options to choose for the required conditions or rules, as shown below.

- Finally, once we choose the required conditions, click the โDoneโ option. Then, we will have the Google Sheets Pivot Table Conditional Formatting output.
Examples
We will consider a couple of examples to understand Conditional Formatting Pivot Tables in Google Sheets.
Example #1
The data below shows the respective sales of three employees for the three consecutive days.

The steps to apply Conditional Formatting are as follows:
Step 1: First, let us generate a Pivot table. So, choose the cells A1:D10 ๐กช select the โInsertโ tab ๐กช click the โPivot tableโ option, as shown below.

Step 2: A โCreate pivot tableโ window appears. Here, choose the โNew sheetโ option and click the โCreateโ button, as shown below.

Step 3: The Pivot Table gets generated in the new worksheet without any data, as shown below. However, the โPivot table editorโ pane opens at the right side of the window.

Step 4: Let us add the data as follows:
- Click on the โRowsโ options โAddโ button and select the โDateโ values.
- Click on the โColumnsโ options โAddโ button, select the โNameโ values and uncheck the โShow totalsโ option.
- Click on the โValuesโ options โAddโ button and select the โSalesโ values, as shown below.

The added values are shown in the below images.


The final Pivot table will be as shown below.

Step 5: Let us now apply โConditional formattingโ, as follows:
Choose the data range A2:D6, select the โFormatโ tab ๐กช click the โConditional formattingโ option. When the โConditional format ruleโ pane opens on the right, click the โAdd another ruleโ option, as shown below.

Step 6: Now, select the โSingle colorโ tab and under the โFormat rulesโ section,
- First, click the โformat ifโฆโ drop-down, select the โgreater thanโ option and enter 75000 in the โValueโ field that appears as soon as we select one of the options from the drop-down.
- Next, in the โFormatting styleโ options select the color โYellowโ from the โFill colorโ option.
- Finally, click the โDoneโ button, as shown below.

The final output is shown below, where the totals greater than 75000 are highlighted in yellow color.

Example #2
We will consider the results of five students and apply multiple Conditional Formatting rules in the Pivot Table, as shown in the below data.
You can download this Conditional Formatting in Pivot Table Google Sheets template here โ Conditional Formatting in Pivot Table Google Sheets template.

The steps to apply multiple Conditional formatting rules are as follows:
Step 1: First, let us generate a Pivot table.
- Choose the cells A1:B6 ๐กช select the โInsertโ tab ๐กช click the โPivot tableโ option.
- A โCreate pivot tableโ window appears. Here, choose the โNew sheetโ option and click the โCreateโ button, as shown below.

Step 2: The Pivot Table gets generated in the new worksheet without any data, as shown below. However, the โPivot table editorโ pane opens at the right side of the window.

Step 3: Let us add the data as follows:
- Click on the โRowsโ options โAddโ button and select the โNamesโ values.
- Click on the โValuesโ options โAddโ button and select the โPercentageโ values, as shown below.

The final Pivot table will be as shown below.

Step 4: Let us now apply โConditional formattingโ as follows:
Choose the data range A1:B6, select the โFormatโ tab ๐กช click the โConditional formattingโ option. When the โConditional format ruleโ pane opens on the right, click the โAdd another ruleโ option, as shown below.

Step 5: Now, select the โSingle colorโ tab and under the โFormat rulesโ section,
- First, click the โformat ifโฆโ drop-down, select the โis betweenโ option and enter 65% and 70% in the fields that appears as soon as we select one of the options from the drop-down.
- Next, in the โFormatting styleโ options select the color โYellowโ from the โFill colorโ option.
- Finally, click the โDoneโ button, as shown below.

We get the output shown below.

Step 6: Let us set another rule. Therefore, click the โAdd another ruleโ in the โConditional format rulesโ pane just below the first set rule. Then, select the โSingle colorโ tab and under the โFormat rulesโ section,
- First, click the โformat ifโฆโ drop-down, select the โis betweenโ option and enter 75% and 80% in the fields that appears as soon as we select one of the options from the drop-down.
- Next, in the โFormatting styleโ options select the color โmagentaโ from the โFill colorโ option.
- Finally, click the โDoneโ button, as shown below.

The final output is shown below, where the values in-between 65% and 70% are marked in yellow, in-between 75% and 80% are marked in magenta, as shown below.

Rules For Conditional Formatting In Pivot Table
There are various rules for Conditional Formatting as follows:
- Format Cells based on their values.
- Format cells that only contain specific data.
- Format only the high and low ranked values.
- Format only values that are greater than or less than the average.
- Use a formula to determine which cells to format.
Important Things To Note
- Ensure to click the โDoneโ option after every rule set, otherwise, all the changes or atleast a few changes will not be saved.
- Even though we select a cell range and apply Conditional Formatting, the formatting gets applied to the specific cells that fulfil the criteria.
Frequently Asked Questions (FAQs)
โข Yes, we can generate a Pivot Table in the existing Sheet itself. We must follow the steps shown below.
โข Choose the dataset or a cell range ๐กช select the โInsertโ tab ๐กช click the โPivot tableโ option.
โข A โCreate pivot tableโ window appears. Choose the โExisting sheetโ option,ย
โข Once we choose the โExisting sheetโ option, a field to enter the destination location or cell to generate the Pivot Table appears. Select a cell close to the dataset and click the โCreateโ button, as shown below.
We can create a Pivot Table using the following path,
First, choose the dataset ๐กช select the โInsertโ tab ๐กช click the โPivot tableโ option, as shown below.
The Conditional Formatting in Pivot Table may not work for the following reasons, namely:
a. The dataset of the generated Pivot Table has been modified or updated and is not refreshed to display the updated data.
b. We have not set the conditional formatting rules or the set rules are deleted.
c. Also, since Google Sheets are online, it might not work due to network issues.
Download Template
๐ฅDownload the ready-to-use Excel template to practice this tutorial yourself.
Conditional Formatting in Pivot Table in Google Sheets_Written&Edited_SheebaRecommended Articles
Guide to What is Conditional Formatting in Pivot Table in Google Sheets. We learn to apply formatting with stepwise examples and its rules. You can learn more from the following articles โ

Leave a Reply