bob said:
... now that i or we have the A1 A2 format down pat is there perhaps
a way to add a second conditional format to A1 but this time go to a
group of cells which has been marked with a "x" in another cell. I am
trying to follow 2 groups of cells this way, something like
=ISNUMBER(MATCH(A2,$A$1:$E$1,0))
+ISNUMBER(MATCH(A2,$A$22:$E$22)) IF H22 = "X"
Here's one way ..
A sample construct is available at:
http://www.savefile.com/files/3175912
Complex Match Formula in Cond Formatting.xls
Putting it as the 2nd** condition (using 2 separate conditions 1 & 2):
(CF range is A2:E2)
Condition 1, Formula is: =ISNUMBER(MATCH(A2,$A$1:$E$1,0))
Format > font tab > red/bold
(above as before, no change)
Click "Add", to add 2nd condition
Condition 2, Formula is:
=SUMPRODUCT(--ISNUMBER(MATCH(A2,OFFSET($H$1,MATCH("X",$H:$H,0)-1,-7,,5),0)))
Format > font tab > blue/bold (say)
OK out
**Equivalent to the structure:
=IF(Cond1,"red/bold",IF(Cond2,"blue/bold",""))
where Cond1 will be evaluated first before Cond2, going from left to right
Note that it's assumed col H will contain only a single "X" at any one time,
to indicate the range, eg: A22:E22 to be used as the MATCH lookup array (2nd
condition)
---
The other way (which returns different results), is if we say, wish to
include the additional check as a single condition (under Condition 1) using
OR:
Putting it as a single condition (under Condition 1) using OR:
(CF range is A2:E2)
Condition1, Formula is:
=OR(ISNUMBER(MATCH(A2,$A$1:$E$1,0)),
SUMPRODUCT(--ISNUMBER(MATCH(A2,
OFFSET($H$1,MATCH("X",$H:$H,0)-1,-7,,5),0)))>0)
Format > font tab > red/bold > OK out