check cell on presence of text from range

nielsb

New Member
Joined
Jan 23, 2015
Messages
7
Hi there,
my question posted before is still unresolved.

I need a simple formula (no VBA) which checks (e.g. by means of TRUE/FALSE) whether it contains any text from a given range. Preferably it should neglect blank cells therein.

Illustration is given in below example. A formula in C1 should return TRUE as 'train' in column A forms part of 'trainstation' (B1).

bananatrainstationTRUE
orange
train
apple
school

<tbody>
</tbody>

Anybody an idea how to do this?

Regards Niels
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Maybe not exactly the same....but I think with a large dataset VBA would be better



Excel 2007
ABC
1bananatrain stationFALSE
2orangeFALSE
3trainTRUE
4appleFALSE
5schoolFALSE
Sheet1
Cell Formulas
RangeFormula
C1=COUNTIF($A$1:$A$5,"*"&B1&"*")>0
C2=COUNTIF($B$1:$B$5,"*"&A2&"*")>0
C3=COUNTIF($B$1:$B$5,"*"&A3&"*")>0
C4=COUNTIF($B$1:$B$5,"*"&A4&"*")>0
C5=COUNTIF($B$1:$B$5,"*"&A5&"*")>0
 
Last edited:
Upvote 0

Forum statistics

Threads
1,203,760
Messages
6,057,202
Members
444,913
Latest member
ILGSE

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