Any help would be hugely appreciated!
If I have the following rows of data in Excel (5 examples below), whereby data is coded as 1 or 2, does anyone know an Excel formula that can identify/highlight the rows that contain a mixture of 1's and 2's?
I am only interested in sequences that have a mixture of 1's and 2's.
For example;
1, 2, 2, 2, 2, 1, 2, 2, 2 (this sequence has a mixture)
1, 1, 1, 1, 1, 1, 1, 1, 1. (this sequence does not have a mixture)
1, 2, 2, 2, 1, 1, 2, 2, 1. (this sequence has a mixture)
2, 2, 2, 2, 2, 2, 2, 2, 2. (this sequence does not have a mixture)
1, 1, 2, 2, 1, 1 , 2, 1, 1. (this sequence has a mixture)
Currently I use the following formula to highlight/identify the non-mixed sequences with only 1's or 2's;
=IF(ISERROR(FIND("222222222",TEXTJOIN("",TRUE,A1:A9))),FALSE,TRUE)
=IF(ISERROR(FIND("111111111",TEXTJOIN("",TRUE,A1:A9))),FALSE,TRUE)
But now I am in search of a formula that can bring up the mixture sequences.



