How to determine if a cell's text is part of another cell's text?

teachman

Active Member
Joined
Aug 31, 2011
Messages
321
Hello,

I have two columns. Column A contains a chunk of text and column B contains a smaller chunk of text. I need to know if the text string in Column B is part of the text string in Column A.

Column A Column B Column C
The swift red fox jumped over the lazy brown dog. lazy Yes
The raven laughed at the sight raven laughed Yes
Laughing echo was heard in the canyon valley No

I'm hoping there is a way to compare Column B to Column A and if the compare is TRUE (column B text string was found in Column A text string) then the result (Yes or No) is put in Column C.

Any ideas?

Thanks,

George Teachman
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Try this formula in C1:
Code:
=IF(ISNUMBER(SEARCH(B1,A1)),"Yes","No")
 
Upvote 0

Forum statistics

Threads
1,223,898
Messages
6,175,272
Members
452,628
Latest member
dd2

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