Hi All,
I have come across this same behaviour again today.
The issue seems to occur when one is using an array lookup formula (to another Worksheet) to denote whether the Conditional Formatting should be applied or not.
Let me provide an example to illustrate what I mean...
Here's my source data on Sheet1:
<table style="font-family:Arial,Arial; font-size:10pt; background-color:#ffffff; padding-left:2pt; padding-right:2pt; " border="1" cellpadding="0" cellspacing="0"> <colgroup><col style="font-weight:bold; width:30px; "><col style="width:64px;"><col style="width:64px;"><col style="width:81px;"><col style="width:111px;"></colgroup><tbody><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td>
</td><td>A</td><td>B</td><td>C</td><td>D</td></tr><tr style="height:17px ;"><td style="font-size:8pt; background-color:#cacaca; text-align:center; ">1</td><td>Fruit</td><td>Type</td><td>Place</td><td>Preferred Supplier</td></tr><tr style="height:17px ;"><td style="font-size:8pt; background-color:#cacaca; text-align:center; ">2</td><td>Apple</td><td>Bag</td><td>Shop</td><td>Yes</td></tr><tr style="height:17px ;"><td style="font-size:8pt; background-color:#cacaca; text-align:center; ">3</td><td>Pear</td><td>Bunch</td><td>Supermarket</td><td>No</td></tr><tr style="height:17px ;"><td style="font-size:8pt; background-color:#cacaca; text-align:center; ">4</td><td>Orange</td><td>Loose</td><td>Market</td><td>Yes</td></tr></tbody></table>
And here's my summary data on Sheet2:
<table style="font-family:Arial,Arial; font-size:10pt; background-color:#ffffff; padding-left:2pt; padding-right:2pt; " border="1" cellpadding="0" cellspacing="0"> <colgroup><col style="font-weight:bold; width:30px; "><col style="width:64px;"><col style="width:64px;"><col style="width:83px;"></colgroup><tbody><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td>
</td><td>A</td><td>B</td><td>C</td></tr><tr style="height:17px ;"><td style="font-size:8pt; background-color:#cacaca; text-align:center; ">1</td><td>Fruit</td><td>Type</td><td>Place</td></tr><tr style="height:17px ;"><td style="font-size:8pt; background-color:#cacaca; text-align:center; ">2</td><td>Apple</td><td>Bag</td><td style="background-color:#c2d69a; ">Shop</td></tr><tr style="height:17px ;"><td style="font-size:8pt; background-color:#cacaca; text-align:center; ">3</td><td>Pear</td><td>Bunch</td><td>Supermarket</td></tr><tr style="height:17px ;"><td style="font-size:8pt; background-color:#cacaca; text-align:center; ">4</td><td>Orange</td><td>Loose</td><td style="background-color:#c2d69a; ">Market</td></tr></tbody></table>
I have used the following formula in Conditional Formatting:
Code:
=INDEX(PS,MATCH(1,IF(FRUIT=$A2,IF(TYPE=$B2,IF(PLACE=$C2,1))),0))="Yes"
Which applies a green format if the Preferred Supplier in Sheet1 for the Fruit/Type/Place equals "Yes".
Now, when I apply this, it works as expected. However, if I save the file and then re-open it, the formatting is no longer applied. And the only way I can get Excel to re-apply the formatting is to go back into the
Edit Formatting Rule Window (note that no change is made to the formula), clicking
OK, and then hitting
Apply in the
Conditional Formatting Rules Manager Window.
Is there something I can use to force/trigger the re-application of this Conditional Formatting? Or is my only option to employ some code to re-write it each and every time the Worksheet is opened, which seems like overkill?
Cheers,
Matty