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

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
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))
 
Upvote 0
Solution
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
 
Upvote 0
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!!
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,964
Members
452,371
Latest member
Frana

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