finding a text of 2 words in wrapped content in cell from another sheet

satish78

Board Regular
Joined
Aug 31, 2014
Messages
218
Trying to find text of 2 words like city and state "dallas, TX" from sheet2 in sheet1 ColumnA(anywhere in wrapped text)

example of text in Sheet1 columnA

Robert is living in dallas, TX with his aunt.

I tried vlookup but it only search exact text in cell not somewhere in wrapped cell content/text.

Hope someone understand this query.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
This sort of matching can be somewhat tricky/unreliable - see example below.

However, to answer your question, you could try using wildcards like this
=VLOOKUP("*dallas, TX*", ...

However, as well as (possibly) finding "Robert is living in dallas, TX with his aunt." it may instead find "Tina is living in Lake Dallas, TX with her uncle.", which of course is the wrong city.
 
Upvote 0
Here I have range of "city, state"(I1:I75954) then, how can I use Wildcards in this case.
I'm not sure how this relates to post 1?
Why not give 5-10 rows of varied dummy sample data and the expected results from that sample data?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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