Find a text within range

militambe3171

New Member
Joined
Jun 27, 2015
Messages
11
I want to find a specific text in range, if that text is present in a range then output should be yes else no
[TABLE="width: 727"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]brands[/TD]
[TD]Keywords[/TD]
[TD]output should be[/TD]
[TD] Reason[/TD]
[/TR]
[TR]
[TD]Papermate[/TD]
[TD]Papermate pencil[/TD]
[TD]Yes[/TD]
[TD]coz it contains Papermate (Present in column A)[/TD]
[/TR]
[TR]
[TD]HP[/TD]
[TD]Papermate pen[/TD]
[TD]Yes[/TD]
[TD]coz it contains Papermate (Present in column A)[/TD]
[/TR]
[TR]
[TD]Brother[/TD]
[TD]pencil[/TD]
[TD]NO[/TD]
[TD]Doesn’t contain any text from column A[/TD]
[/TR]
[TR]
[TD]Pental[/TD]
[TD]pen[/TD]
[TD]NO[/TD]
[TD]Doesn’t contain any text from column A[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]highligher[/TD]
[TD]NO[/TD]
[TD]Doesn’t contain any text from column A[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Brother abc[/TD]
[TD]Yes[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Hp printer[/TD]
[TD]yes[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]pepep- HP[/TD]
[TD]yes[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]HP 240 xl[/TD]
[TD]yes[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

this is a sample data, want to do it for large data set
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Try

=IF(ISNA(LOOKUP(2^15,SEARCH($A$2:$A$5,B2))),"No","Yes")

Note, there cannot be any blanks in A2:A5
 
Upvote 0
=ISNUMBER(LOOKUP(9.99999999999999E+307,SEARCH(" "&$A$2:$A$5&" "," "&$B2&" ")))+0

Custom format the formula cell as:

[=0]"No";[=1]"Yes"
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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