Partial match sheet1 in sheet2 get columnB

satish78

Board Regular
Joined
Aug 31, 2014
Messages
218
Hi Friends,

I am trying to do partial match but its not pulling correct abbreviations.

Attached sample file.
Used this formula but did not pull right one.
[TABLE="width: 64"]
<colgroup><col width="64"></colgroup><tbody>[TR]
[TD="width: 64, align: left"]
#=VLOOKUP(F1&"*",Sheet2!A:B,2)
[/TD]
[/TR]
</tbody>[/TABLE]


https://spaces.hightail.com/space/M8AAa4mCKO
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Try,

In G1, copied down :

=LOOKUP(1,-SEARCH(Sheet2!A$1:A$8,F1),Sheet2!B$1:B$8)

Regards
Bosco
 
Upvote 0
Here you go..

Just copy and paste it to sheet1

Code:
=IFERROR(VLOOKUP(TRIM(MID($F1,SEARCH(",",$F1,1)+1,LEN($F1)-SEARCH(",",$F1,1)+1)),Sheet2!$A:$B,2,0),VLOOKUP(TRIM(MID($F1,1,LEN($F1)-SEARCH(",",$F1,1))),Sheet2!$A:$B,2,0))
 
Upvote 0

Forum statistics

Threads
1,223,162
Messages
6,170,431
Members
452,326
Latest member
johnshaji

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