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

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
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,225,765
Messages
6,186,902
Members
453,384
Latest member
BigShanny

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