Celeb Glow
general | March 07, 2026

In a pivot table, how to apply conditional formatting by label instead of by group

In a pivot table you can apply a conditional formatting to a group of value rather than to a cell or to the whole field thank to the "Applies to" option of the "Edit rule" window. My objective here is to make the fill colour change at thresholds that are different for each item rows.

What I would like to do is to reduce the scope of the conditional formatting one more time, to drill down to the label itself.

In the mock-up pivot table below, I would like to apply C.F. to all Class foo rows rather than to the Class field. If the test is Cell value greater than 1, only [Type 1].[Class Foo]|[Category A] and [Type 2].[Class Foo]|[Category B] should change format.

Pivot talbe QuotasColumn labels_________________
Row labelsCategory ACategory B
Type 11311
__Class Foo31
__Class Bar44
__Class FooBar33
__Class BarFoo33
Type 2811
__Class Foo15
__Class Bar65
__Class FooBar11

For now, I make this work with an AND() function and mixed references but I would like to use icon sets in the future.

The solution can use Power tools but not VBA. Any idea is welcomed, thank you.

1 Answer

You select the item you want to apply the formatting to, then create the rule.

With your pivot table, if you hover over the left-edge of a row header, you'll see a black arrow. By left-clicking you can select just that class.

enter image description here

Once the class is selected, you create the rule as normal. First:

enter image description here

Then:

enter image description here

As you can see, if you move the classes around, the formatting remains attached to the class.

enter image description here

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy