"There are three colors in all the documents. Each color means a degree of priority."
"The only option is to find a background color and replace by another color."
So EVERY row that was at one degree of priority will always change en masse to one of the other degrees of priority? For example, EVERY row that was Red will change to Blue?
Your initial description, "I have a big Apple Numbers file," implies there are several rows of each colour.
What you want cannot be done using conditional highlighting. Highlighting rules depend on comparing the content of the cell to be formatted with a specific value, or with the contents of another cell. Colour fill is 'Format'. 'Format' is not 'Content.'
What you want might be doable using an AppleScript. AppleScript is certainly capable of changing the colour fill of a series of cells. It may or may not be capable of detecting the current colour fill of a cell. For the answer to that, you'll need the attention of someone capable of writing an AppleScript.
Some questions:
You've specified three colours, and have named two, red and blue. To make the questions more concrete, let's assume the third colour is the third rgb primary, green.
To date in the conversation you have mentioned (twice) changing red to blue.
Does that mean the colour change always follows this pattern:
red —> blue
blue —> green
green —> red
…etc.
OR
Is this a possible series of colour changes for a set of rows:
red —> blue —> red —> green —> red —> green…
IF the first (the colour change is always in the same 'direction':
Assuming the first change is Red to blue.
After the red to blue change has occurred, the cells that were red are now blue. The cells that were blue are still blue. Do all of these blue cells change to green? (and in the next step, to red?)
If not, how will Numbers (or the AppleScript) know which cells have just been turned blue, and which were blue when this process started?
Regards,
Barry