I am trying to set conditional formats based on a table lookup rather than referencing another cell in the same sheet. does anyone know if this is possible?
Example:
Table (defined as an Excel Table on Sheet 2):
Headers> "Column A", "Column B", "Column C"
Row1> 001, "OK", £100
Row2> 002, "NOTOK",£200,
etc
Sheet 1:
A1 = 001 (a valid entry from Column A in the Table)
I want to set a conditional formatting rule in A1 based on a corresponding value in the Table, so I assumed a condition such as the following might work:
=index(Table,match($A1,Table[ColumnA],0),match("Column B",Table[#Headers],0))="OK"
However Excel 2010 reports an error when I try to enter this condition. Is INDEX not a allowable formula in conditional formats? and if not, is there a list of valid functions one can use?
Note, I know that this works if I create a formula in B1 that performs the lookup with Index and then set a conditional format for A1 based on the formula =$B1="OK". So that is not a problem. I just wanted to avoid having to do this.
thanks.
Example:
Table (defined as an Excel Table on Sheet 2):
Headers> "Column A", "Column B", "Column C"
Row1> 001, "OK", £100
Row2> 002, "NOTOK",£200,
etc
Sheet 1:
A1 = 001 (a valid entry from Column A in the Table)
I want to set a conditional formatting rule in A1 based on a corresponding value in the Table, so I assumed a condition such as the following might work:
=index(Table,match($A1,Table[ColumnA],0),match("Column B",Table[#Headers],0))="OK"
However Excel 2010 reports an error when I try to enter this condition. Is INDEX not a allowable formula in conditional formats? and if not, is there a list of valid functions one can use?
Note, I know that this works if I create a formula in B1 that performs the lookup with Index and then set a conditional format for A1 based on the formula =$B1="OK". So that is not a problem. I just wanted to avoid having to do this.
thanks.