Formula or VBA for lookup

baigm

Board Regular
Joined
Sep 27, 2009
Messages
57
Hi All,

I have a unique situation. i need to find names of 100 from another sheet of 10000+
the issue is the name is not exactly matching in the sheets. (either first name or last name will match) - i tried concatenate but not working.

I need either a formula or a VBA script - when run i should get the similar names in a different column.
below is the sample
Please help

Regards
Baigm

Sheet one namesSheet 2 Names
ABCD LLC LIMITEDABCD LIMITED
**Mr*XYZ*Limited*XYZ
Mr. KKS XYXY KKS
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
You could try using a nested Substitute formula. Though this can get very confusing, depending on how many variable you want to add, it's a functional and fairly simple formula.

Excel Formula:
=TRIM(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(UPPER(A2),"LLC",""),"*",""),"MR",""),".",""))
 
Upvote 0
Hi Sprigelz - thanks but this after this also when i tried lookup its not working. and i dont have LLC or Mr only, i have other extra words as well.
 
Upvote 0
VBA would likely be your best bet in this situation, but you would need to put together a full list of the words/abbreviations that you wanted to trim from the range.
 
Upvote 0

Forum statistics

Threads
1,214,978
Messages
6,122,547
Members
449,089
Latest member
davidcom

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