How To Check If RANGE OF TEXTSTRINGS Contains ANY of the SEVERAL TEXT KEYWORDS In Excel?

mtahreemalam

New Member
Joined
Nov 18, 2019
Messages
28
Hello,
I have a range of TEXT STRINGS in column A, and a list of WORDS in column B. I want to highlight all cells which in column A that contain or match ANY WORD from the text string in column A.
 

Attachments

  • 1575657539403.png
    1575657539403.png
    20.1 KB · Views: 14

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Since you are trying to match "WORDS" I think the previous suggestions will fail since they will match any substring rather than whole words.

Hi @mtahreemalam, With the characteristic mentioned by Peter, then my formula would look like this:

=SUM(--ISNUMBER(SEARCH(" "&$B$1:$B$400&" "," "&A2&" ")))
 
Upvote 0
Thankyou for all and Peter. That was exactly the problem i was facing!
You're welcome. Glad to help.

BTW, I just noticed that something happened to my CF formula when posting with XL2BB. ?
The formula should have posted as:

=LOOKUP(9.99E+307,SEARCH(" "&$B$2:$B$196&" "," "&A2&" "))

.. or an even simpler CF formula would be

=COUNT(SEARCH(" "&$B$2:$B$196&" "," "&A2&" "))
 
Upvote 0

Forum statistics

Threads
1,214,629
Messages
6,120,630
Members
448,973
Latest member
ChristineC

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