Lookup partial match and return value.

anil_l082218

New Member
Joined
Aug 21, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi there, New to Excel & VBA and i want to write a formula to bring Category & Subcategory from Table 2 to Table by partial lookup.
Simple vlookup with approximate match doesnt work and hence need to write something extra which i'm not sure of.
A simple formula or a VBA code is ok with me.
Really appreciate if someone can help on this code please. Many many thanks.
Rgds, Kumar



Sample.xlsx
ABCDEFG
1Table A - Have (Description) - Wanted Partial Lookup done from Table B and get Category & Sub CatgTable B - For Lookup
2DescriptionCategorySubCategoryMerchantCategorySubCategory
3OPAL MYTICKETAuto & TransportPublic TransportOPALAuto & TransportPublic Transport
4BUNNINGS 775000 ServicesGardeningBUNNINGSServicesGardening
5DOMINOS 4029357733Food & DiningDining OutDOMINOSFood & DiningDining Out
6ZAM PTY L Food & DiningDining OutZAMFood & DiningDining Out
7SKYWATER 0288496164UtilitiesWaterSKYWATERUtilitiesWater
8BANK ATM BRANCH 7 ELEVENFood & DiningCoffee / Quickbites
97 ELEVEN LINKSYS PARKFood & DiningCoffee / QuickbitesIN SPORTPersonal SpendingClothes & Shoes
10IN SPORT TEXASPersonal SpendingClothes & ShoesKMARTHousehold ItemsHousehold Items
11KMART DEPARTMENTAL STOREHousehold ItemsHousehold ItemsDOMINOS Food & DiningDining Out
12DOMINOS PIZZA LINKSYS PARKFood & DiningDining OutALDIFood & DiningGroceries
13ALDI STORES LINKSYS PARKFood & DiningGroceriesPIE FACEFood & DiningDining Out
14KRISHNA TRADELINK PT KFCFood & DiningDining Out
15PIE FACE CLARENCE ST Food & DiningDining Out
Sheet1
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Excel Formula:
=LOOKUP(1,000,FIND($H$6:$H$17,$D6),I$6:I$17)
 
Upvote 0
Don't know how to change the last message but you have to delete the comma in 1,000. So it's just 1000
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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