Find any text from a cell in another one

hnt007

Board Regular
Joined
Dec 18, 2021
Messages
98
Office Version
  1. 365
Platform
  1. MacOS
Hello and thanks for helping me out!

I have 2 cells:

- C2: Trumpet Piano Gtr Bass Violin Sax
- C3: Track description including trumpet piano Gtr bass violin

I'm looking for a formula to put, let's say, in C4, that will let me know if any of the words in C2 appears in C3, no matter the capitalizations. The tricky part is that I could have ANY instruments listed in C2, and it could be just 1 instruments listed, 2, 3, etc
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Hi

Mappe5
CDE
2Trumpet Piano Gtr Bass Violin Sax
3Track description including trumpet piano Gtr bass violin
4
5TrumpetTrackWAHR
6Pianodescription
7Gtrincluding
8Basstrumpet
9Violinpiano
10SaxGtr
11bass
12violin
Tabelle1
Cell Formulas
RangeFormula
C5:C10C5=FILTERXML("<y><z>"&SUBSTITUTE(C2," ","</z><z>")&"</z></y>","//z")
D5:D12D5=FILTERXML("<y><z>"&SUBSTITUTE(C3," ","</z><z>")&"</z></y>","//z")
E5E5=SUM(COUNTIFS(D5#,C5#))>0
Dynamic array formulas.
 
Upvote 0
T
Hi

Mappe5
CDE
2Trumpet Piano Gtr Bass Violin Sax
3Track description including trumpet piano Gtr bass violin
4
5TrumpetTrackWAHR
6Pianodescription
7Gtrincluding
8Basstrumpet
9Violinpiano
10SaxGtr
11bass
12violin
Tabelle1
Cell Formulas
RangeFormula
C5:C10C5=FILTERXML("<y><z>"&SUBSTITUTE(C2," ","</z><z>")&"</z></y>","//z")
D5:D12D5=FILTERXML("<y><z>"&SUBSTITUTE(C3," ","</z><z>")&"</z></y>","//z")
E5E5=SUM(COUNTIFS(D5#,C5#))>0
Dynamic array formulas.
Thank you for taking the time to help me out. but I'm on macOS and don't have this function FILTERXML
 
Upvote 0

Forum statistics

Threads
1,214,976
Messages
6,122,541
Members
449,089
Latest member
davidcom

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