Forum Discussion

LMercury's avatar
LMercury
Copper Contributor
Apr 19, 2024

How can I use Pivot Table References for Conditional Formatting?

Hello!

 

I have a pivot table where the following columns are repeated for several states, so the easiest way to create the conditional formatting would be one that works for the entire pivot table, even as states are selected and deselected and as both the columns and rows grow and shrink.  I want the "On Hand + On Order" values to be highlighted when they are less than the "Remaining To Ship" value in the same row.  Is it possible to use table references to these columns?  If not, is there a clever / elegant way to write a single Conditional Formatting formula that would cover the entire pivot table as the table expands and contracts (both rows and columns)?

 

 

    • LMercury's avatar
      LMercury
      Copper Contributor
      Thanks, Oliver. I'm hesitant to download an unknown file; would you mind copying in your conditional formatting rule as text in a response so I can get the general idea and help inform the decision to download your file or not?
      • OliverScheurich's avatar
        OliverScheurich
        Gold Contributor

        Hi LMercury,

        this is the rule for conditional formatting.

        =(H2>180000)*(I2>12000000)

        And here's a screenshot of the file. I assume that without seeing the screenshot the rule wouldn't be helpful.

         

Resources