Partial match when look up value is lengthier than corresponding value in a table or a range

bhangale0905

New Member
Joined
May 10, 2020
Messages
3
Office Version
  1. 2007
Platform
  1. Windows
I have table as below. In first column name of the company and in next column corresponding manager Name.

Company Name
Manager Name
Amcor​
Amol​
Thermax​
Sagar​

The look up value of company name is not exact match in this case. e.g. It is "Thermax Ltd"
The company name from table is a subset of the look up value.
After applying formula, the out put should look like below:

Company Name​
Expected Output
Thermax Ltd​
Sagar​
Amcor Ltd​
Amol​

Request your help folks.

Thanks,
Sagar
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
in all cases if ltd is added then you can use the below formula
=VLOOKUP(LEFT(A2,LEN(A2)-4),$I$2:$J$3,2,FALSE)
example.PNG
 
Upvote 0
Thanks a ton Aaleem for your revert.

I think I need to modify my question.

I have table as follow (which is same as before)

Company Name​
Manager​
Amcor​
Amol​
Thermax​
Sagar​

The lookup value and the expected output to be as below:

Lookup Value​
Expected Output​
Thermax Ltd​
Sagar​
M/S Thermax Ltd​
Sagar​
Thermax Pvt Ltd​
Sagar​

Thanks & Regards
 
Upvote 0
It will be difficult if we do not have fixed pattern, however you can substitute certain text, you can modify my formula to suit your requirement.
=INDEX(A5:B10,MATCH(
TRIM(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(D5,"Pvt",""),"M/s",""),"Ltd",""),"M/S",""),"m/s",""),"Pvt Ltd","")),A5:A10,0),2)


bhangale0905_Partial_Matching.PNG


HTH
 
Upvote 0

Forum statistics

Threads
1,216,157
Messages
6,129,195
Members
449,493
Latest member
JablesFTW

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