Search strings and return the found

Panchistiko

New Member
Joined
Oct 22, 2009
Messages
37
Hi, team...
How can I find these simple names within the full names and return the result?

In Sheet1 I have this in A.
DisplayName
Ross Eustace Geller
Rachel Green
Joey Francis Tribbiani Jr.
Monica E Geller
Chandler Muriel Bing Bing
Phoebe Buffay

<tbody>
</tbody>

<tbody>
</tbody>

In another sheet I have this in Y:
FULL NAME
CHANDLER MURIEL BING BING
RACHEL KAREN GREEN SECOND
JOSEPH JOEY FRANCIS TRIBBIANI JR
PHOEBE NOMIDDLE BUFFAY NOSECOND
ROSS EUSTACE GELLER ANYSECOND
MONICA MIDDLEE GELLER BING

<tbody>
</tbody>


I need to search the names in Sheet1 A within Sheet2 Y.
For example, A2 matches Y6, and A7 matches Y5.
If this happens, put Y value in Sheet1 B.

How can I do this?
 
Last edited:

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Sheet1
AB
1NameFull Name
2Ross Eustace GellerROSS EUSTACE GELLER ANYSECOND
3Rachel GreenRACHEL KAREN GREEN SECOND
4Joey Francis Tribbiani Jr.JOSEPH JOEY FRANCIS TRIBBIANI JR
5Monica E GellerMONICA MIDDLEE GELLER BING
6Chandler Muriel Bing BingCHANDLER MURIEL BING BING
7Phoebe BuffayPHOEBE NOMIDDLE BUFFAY NOSECOND

<tbody>
</tbody>

CELLFORMULA
B2=VLOOKUP("*" & SUBSTITUTE(SUBSTITUTE(A2,".","")," ","*") & "*",sheet2!Y:Y,1,0)

<tbody>
</tbody>
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,693
Messages
6,126,240
Members
449,304
Latest member
hagia_sofia

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