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.

Table 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
This article must help understand Conditional Formatting in Pivot Table in Google Sheets with its formulas and examples. You can download the template here to use it instantly.
Recommended 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