Find common elements between 2 delimited cells.

mrthos

New Member
Joined
Aug 28, 2014
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Thanks in advance for any assistance. I'm looking to list the common elements between 2 delimited cells. Example below in Cells C1 thru C5 return matches between cells A1-A5 and B1-B5. There may be one or more or no exact matches. The cells may contain text or numbers but never a mix. Not sure it that would be a factor.

thank you!

Match example.PNG
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
What version of Excel are you using?
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
Thanks for that, how about
+Fluff 1.xlsm
ABC
1
2Dog, CatSheep, Horse, Dog, DuckDog
3Cat, DogSheep, Horse, Dog, Duck, Goat, CatCat, Dog
410,1210,11,15,1810
510,129,10,11,12,18,2210, 12
698,10,11,12 
7
Main
Cell Formulas
RangeFormula
C2:C6C2=LET(a,FILTERXML("<k><m>"&SUBSTITUTE(A2,",","</m><m>")&"</m></k>","//m"),TEXTJOIN(", ",,FILTER(a,ISNUMBER(SEARCH(a,B2)),"")))
 
Upvote 0
Solution
That seemed to work like a charm! Thank you very much!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,624
Messages
6,120,591
Members
448,973
Latest member
ksonnia

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top