Formula to search any part of a string

*shudder*

Well-known Member
Joined
Aug 20, 2009
Messages
510
Office Version
  1. 2016
Platform
  1. Windows
Hi Guys,

I have tried searching however I cannot find anything suitable to resolve my issue.

In column A I have text strings, I would like a formula in an adjacent column that will search any part of the string for "eng", if it is present I would like to have "Yes" appear, if not "No".

Thanks in advance.
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Another way...
Excel Workbook
AB
1abcNo
2bdeNo
3jENGYes
4kkpNo
5hgengpppYes
Sheet1
Excel 2007
Cell Formulas
RangeFormula
B1=IF(ISERROR(SEARCH("*eng*",A1,1)),"No","Yes")
 
Upvote 0
Thanks Stuart for your response. Glad you took the time to see and understand that point. Too often people come here for a quick answer, and that's all they want. They are not interested in learning anything. More and more, I'm beginning to ignore them.
Jim
 
Upvote 0
I preferred your suggestion as I can understand the syntax by using ISERROR where you get a #VALUE result from just using the 'search' element of the formula.

I know where your coming from, I do try to help people on here on occasion when my limited knowledge can offer a solution and you have helped me many times in the past. I have also bought several books and do try to resolve/understand the how's & why's.

Thanks again for your suggestions which always provide a resolution (both with formula's and VBA).

Stuart
 
Upvote 0

Forum statistics

Threads
1,224,594
Messages
6,179,795
Members
452,943
Latest member
Newbie4296

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