Hi, hoping someone can help me with what seems like a fairly complex formula.
I am trying to check whether given values are 'allowed' according to a list of predefined values, using conditional formatting.
My first issue was to check whether items in one column appear in another column. This was fairly straightforward and I used:
=ISERROR(MATCH(G2,$J$2:$J$5,0))
where G2 is the value to check, and J2:J5 is the list of predefined values. This is working fine.
Now what I want to do, is check value H2 in a multi-column/row table. The row it should check in can be found with value G2, but it could appear in any column of the table.
So far, I've got:
=ISERROR(INDEX(K2:U5,MATCH(G2,J2:J5,0),MATCH(H2,K2:U5,0)))
Where K2:U5 is the table that H2 could appear in
J2:J5 is the column that G2 could appear in. But this just gives me an error.
In plan English I want it to look at value G2, find out what row that's in in column J (say row x), and then look to see whether value H2 appears in any of the columns of row x in the specified table.
The image below shows where it should be highlighted
Capture.PNG
Very confused, really hope someone can help me!
Thanks,
Jess
Bookmarks