Forum Discussion

Arun Chandramouli's avatar
Arun Chandramouli
Brass Contributor
Jan 11, 2022
Solved

Help with Excel Formula to get the intersecting codes

Hi All, Hope you are doing well!.. I am looking to extract the intersecting codes from two columns of data...Please find the data attached ..Can you please help me here... Thanks, Arun
  • SergeiBaklan's avatar
    Jan 11, 2022

    Arun Chandramouli 

    If with formula

    =LET(
       a, FILTERXML( "<t><s>"&SUBSTITUTE(A2,",","</s><s>")&"</s></t>", "//s"),
       b, FILTERXML( "<t><s>"&SUBSTITUTE(B2,",","</s><s>")&"</s></t>", "//s"),
       m, IFNA( XMATCH(a,b), 0 ),
       TEXTJOIN(",", 1, FILTER( a, m) ) )

Resources