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

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Try this formula in C1:
Code:
=IF(ISNUMBER(SEARCH(B1,A1)),"Yes","No")
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,215
Members
453,024
Latest member
Wingit77

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