Check if cell text contains value in specified range of values

asfasf

New Member
Joined
Sep 20, 2018
Messages
15
Office Version
  1. 365
Platform
  1. Windows
Hi guys, I've been struggling with this for a few hours, not certain if I'm dumb or not lol.

Assume I have a cell with text. I need to check if any of the values within a specified range are inside that cell.
Ideally return that value within the range.

Example:

Cell content = "I have this text string inside"

Range of values:
this
inside
test
word

I have 23k rows I need to check, and manually selecting the values (total of 90) could lead to errors.

How can I achieve the goal?

Thank you
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

steve the fish

Well-known Member
Joined
Oct 20, 2009
Messages
8,644
Office Version
  1. 365
Platform
  1. Windows
This will return either an error is no words are found, the word itself if one is found or the first word found if multiple words are found. 'WordsToFind' is a named range of your words to search for.

=INDEX(WordsToFind,MATCH(TRUE,ISNUMBER(SEARCH(WordsToFind,A1)),0))
 
Solution

asfasf

New Member
Joined
Sep 20, 2018
Messages
15
Office Version
  1. 365
Platform
  1. Windows
Thanks, however I ask for your help, since I'm having some trouble putting things into work. As you can see, A1 contains "Macinhata do Vouga", but isn't found in B1.
Can you help me?

See the image below. In formula bar INDEX=ÍNDICE | MATCH=CORRESP | TRUE=VERDADEIRO | ISNUMBER=É.NUM | SEARCH=PROCURAR

error.jpg
 

asfasf

New Member
Joined
Sep 20, 2018
Messages
15
Office Version
  1. 365
Platform
  1. Windows
Please ignore, I forgot to enter as an array....

I'm amazed of what you can do with Excel :)

Thank you very much for your help!!
 

Forum statistics

Threads
1,144,622
Messages
5,725,338
Members
422,618
Latest member
Shull1

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
Top