Hi Mark,
Thanks for your effort here in finding a solution. The area has increased slightly. Column B contains the set which ranges from B4-B349 now. Column M contains the sub-set and ranges from M4-M40. I made the adjustments in your formula to what I think they should be and placed it in Column Q: beginning at Q4. I am getting "0" in Q4-Q40. B34 and B35 I know are missing "x" and "tl" from the subset. Here is the adjusted formula- =IFERROR(INDEX(B$4:B$349,MATCH(0,INDEX(COUNTIF(M$4:M$40,B$4:B$349)+COUNTIF(Q$4:Q5,B$4:B$349)+(B$4:B$349=""),),0)),""). But it is not revealing the omitted codes after running the formula.
Try this in
Q4 and copy down:
=IFERROR(INDEX(B$4:B$349,MATCH(0,INDEX(COUNTIF(M$4:M$40,B$4:B$349)+COUNTIF(Q$3:Q3,B$4:B$349)+(B$4:B$349=""),),0)),"")
[TABLE="class: grid, width: 370"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]
A[/TD]
[TD="align: center"]
B[/TD]
[TD="align: center"]
C[/TD]
[TD="align: center"]
D[/TD]
[TD="align: center"]
L[/TD]
[TD="align: center"]
M[/TD]
[TD="align: center"]
N[/TD]
[TD="align: center"]
O[/TD]
[TD="align: center"]
P[/TD]
[TD="align: center"]
Q[/TD]
[TD="align: center"]
R[/TD]
[/TR]
[TR]
[TD="align: center"]
1[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]
2[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]
3[/TD]
[TD="align: center"][/TD]
[TD="align: center"]
List1[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]
List2[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]
Not in List2[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]
4[/TD]
[TD="align: center"][/TD]
[TD="align: center"]
A[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]
B[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]
A[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]
5[/TD]
[TD="align: center"][/TD]
[TD="align: center"]
B[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]
C[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]
CR[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]
6[/TD]
[TD="align: center"][/TD]
[TD="align: center"]
C[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]
P[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]
CRN[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]
7[/TD]
[TD="align: center"][/TD]
[TD="align: center"]
CR[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]
ZZ[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]
Q[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]
8[/TD]
[TD="align: center"][/TD]
[TD="align: center"]
CRN[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]
CDEF[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]
9[/TD]
[TD="align: center"][/TD]
[TD="align: center"]
P[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]
10[/TD]
[TD="align: center"][/TD]
[TD="align: center"]
Q[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]
11[/TD]
[TD="align: center"][/TD]
[TD="align: center"]
ZZ[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]
12[/TD]
[TD="align: center"][/TD]
[TD="align: center"]
CDEF[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]
13[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]
***[/TD]
[TD="align: center"]
**[/TD]
[TD="align: center"]
*****[/TD]
[TD="align: center"]
**[/TD]
[TD="align: center"]
**[/TD]
[TD="align: center"]
**[/TD]
[TD="align: center"]
*******[/TD]
[TD="align: center"]
**[/TD]
[TD="align: center"]
**[/TD]
[TD="align: center"]
**[/TD]
[TD="align: center"]
***********[/TD]
[TD="align: center"]
**[/TD]
[/TR]
</tbody>[/TABLE]
Markmzz