I have a list of data and I want to be able to toggle between highlighting one subset to highlighting another subset. Is there a way to toggle between highlighting subset A to highlighting subset B?
A2
. Select Data > Data Validation > Data Validation
and under Allow:
choose List
and under Source:
input 1;2
.C2:H11
. Select Home > Conditional Formatting > New Rule
and select Use a formula to determine which cells to format
and in the text box below add the following formula:=OR(AND($A$2=1,ISNUMBER(MATCH(C2,$J$2:$J$6,0))),AND($A$2=2,ISNUMBER(MATCH(C2,$K$2:$K$6,0))))
and select OK
and OK
.
1
in cell A2
the numbers from the J
column are highlighted, and if you select 2
, the numbers from the K
column are highlighted.