Pivot Table Issues

Apply Different Conditional Formatting Rules to Excel PivotTable Priority Sections

Rana GarciaRana Garcia Nov 12, 2026 869 views

Question details

Apply separate conditional formatting thresholds to PivotTable values based on whether the row belongs to the High Priority or Normal Priority section.

Apply Different Conditional Formatting Rules to Excel PivotTable Priority Sections
Product
Microsoft Excel PivotTable
Device & OS
not provided
Scenario
The PivotTable contains priority sections where High Priority values below 7 and Normal Priority values below 6 need different highlights.
Observed behavior
A single conditional formatting rule cannot distinguish the priority-specific thresholds, and subtotal values should not be highlighted.
Before you start

Identify the column containing the Priority label and the column containing the PivotTable value to evaluate. If priority names are blank on repeated rows, set the PivotTable layout to repeat item labels before creating the rules.

Solution 1Recommended

Create separate formula rules for High and Normal Priority values

Use this method when each priority section needs its own threshold and subtotal rows must remain unformatted.

Apply both rules to the PivotTable value cells, replacing the sample column letters and row number with the columns used in your PivotTable. The nonblank test excludes subtotal rows from the formatting result.

1
Display repeated priority labels

Select the PivotTable, then go to PivotTable Design > Report Layout > Show in Tabular Form. Choose Repeat All Item Labels so each data row displays its High or Normal Priority label.

2
Select the value cells

Select the cells that show the PivotTable measure, such as the Average of Quality values in column J. Do not include unrelated worksheet cells.

3
Add the High Priority rule

Go to Home > Conditional Formatting > New Rule > Use a formula to determine which cells to format. Enter =AND($G3="high",$I3<>"",$J3<7), choose the highlight format, and set Applies to to the selected PivotTable value range.

4
Add the Normal Priority rule

Create another formula rule from Home > Conditional Formatting > New Rule > Use a formula to determine which cells to format. Enter =AND($G3="normal",$I3<>"",$J3<6), choose the required format, and apply it to the same value range.

5
Confirm rule references

Open Home > Conditional Formatting > Manage Rules and verify that column G refers to Priority, column I is the nonblank detail-field check, and column J is the value being tested. Adjust these references to match your PivotTable.

Create separate formula rules for High and Normal Priority values
Why the nonblank condition is included: The $I3<>"" condition prevents subtotal rows, which may contain values but do not represent an individual priority detail row, from receiving the highlight.
Conditional formatting in WPS Spreadsheet

Highlight PivotTable values by priority in WPS Spreadsheet

WPS Spreadsheet lets you build PivotTables and use formula-based conditional formatting to highlight values under different thresholds for High and Normal Priority sections. Use repeated item labels and separate rules to keep the criteria clear and exclude subtotal rows when needed.

  1. 1. Set up the PivotTable layout: Click the PivotTable and use the PivotTable design or layout options to display rows in tabular form and repeat the Priority labels.
  2. 2. Select the PivotTable measure: Select the value cells that contain the measure you want to check, such as Average of Quality.
  3. 3. Create the High Priority formula rule: Choose Home > Conditional Formatting > New Rule > Use a formula, then enter a High Priority rule such as =AND($G3="high",$I3<>"",$J3<7).
  4. 4. Create the Normal Priority formula rule: Add a second formula rule with =AND($G3="normal",$I3<>"",$J3<6) and choose its formatting style.
Create formula-based rules for different PivotTable priority sections.Highlight High Priority values below 7 and Normal Priority values below 6.Use Excel-compatible .xlsx files for PivotTable reports and formatting rules.Work with a familiar spreadsheet interface and lightweight Office tools.
microsoft office alternative - wps office

Frequently Asked Questions

Why are subtotal rows being highlighted in my PivotTable?

Subtotal rows can meet the numeric threshold even though they are not detail rows. Add a nonblank detail-field condition, such as $I3<>"", to the conditional formatting formula to exclude them.

Do I need to repeat item labels before applying PivotTable conditional formatting?

Repeating item labels is recommended when the formula reads the Priority label from a row cell. Use PivotTable Design > Report Layout > Show in Tabular Form, then choose Repeat All Item Labels.

How do I apply different thresholds to High and Normal Priority rows?

Create two formula-based rules from Home > Conditional Formatting > New Rule. One rule tests the High label and the below-7 threshold; the other tests the Normal label and the below-6 threshold.

Can I use different columns than G, I, and J in the formulas?

Yes. Replace $G3 with the Priority label column, $I3 with a detail column used to identify non-subtotal rows, and $J3 with the PivotTable value column.