I have the data in the columns ABCD in one sheet and a pivot based on that data on another. I want to conditional format my pivot table values based on the value of the Color
column in my data sheet using VBA.
What is the Rule that I will need to create here? I recall we can use Name Manager
for this purpose, but I am not sure how to?
Use a VLOOKUP
and create 3 rules with the following formulas:
=VLOOKUP(G$2,$A:$D,4)="red"
=VLOOKUP(G$2,$A:$D,4)="yellow"
=VLOOKUP(G$2,$A:$D,4)="green"
And match each condition with the appropriate colour
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.