FUzzy matching - names (newbie help please)

kongie

New Member
Joined
Mar 28, 2017
Messages
2
Hi, I'm new to this type of query in Excel:


I have some data where I want to find and extract a list of names from cells in rows where any of the names match. For example the data is like:
Row 1:'Jon Smith 46 years old is but a new brown car'
Row 2:'Jonny smith 46 yrs likes brown cars'
Row 3:'Jon works at a garage repairing cars'
Row 4:'My mate Smithy loves those brown BMWS'


What expression would I need to search each row and then extract any of the following fuzzy matches (contained in a long list) :
Jon smith
Jonny smith
Jon
Smithy
And then return a new column with just those name, i.e. Actually display the names in a column next to column where name trxt was taken from?


The idea is that I extract data that might well be the same person in different phrases.


Thank you in anticipation, I'm new to this but very interested.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Try this
=LOOKUP(2^15,SEARCH({"Jon";"Jon smith";"Jonny smith";"Smithy"},A1),{"Jon";"Jon smith";"Jonny smith";"Smithy"})
 
Upvote 0
Try this
=LOOKUP(2^15,SEARCH({"Jon";"Jon smith";"Jonny smith";"Smithy"},A1),{"Jon";"Jon smith";"Jonny smith";"Smithy"})


Thank you for this, really appreciated.

If you're able to help, is there anyway that it could include every variant so that if the row was:
row: Jon smith loves brown cars but liked to be called smithy. Some friends call him Johnny. He records his name surname first Smith, Jon.

so it returns in the next column: Jon smith, smithy, Johnny, Smith Jon.

if not thank you for your original reply to a newbie.
 
Upvote 0
you are welcome Kongie.

Unfortunately, I have no idea how to get all the text in the same column for multiple match
 
Upvote 0

Forum statistics

Threads
1,223,234
Messages
6,170,891
Members
452,366
Latest member
TePunaBloke

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