Advanced Lookup with Keyword Grouping

Pete2020

Board Regular
Joined
Apr 25, 2020
Messages
68
Office Version
  1. 2016
Platform
  1. Windows
I am reposting this from Ozgrid - Did not got a solution. I abide the forum rules.

Looking for VBA Macro solution or a VB Function

Problem Overview
  • Sheet 2 Column A should Match with Sheet 1 of Column A - Exact Match (Primary Key)
  • Sheet 2 Column B and C at row level should match against each cell of column B in Sheet 1
  • Column B - single cell may have multiple words - All words should exist at cell level match in sheet 1 column B
  • Column C - words should not contain at row level - It can have multiple words
Search rules
  • keywords consider exact space match as mentioned in sheet 2 column B" chat bot" or "Chat bot"
  • Comparison should be at individual Word level and Not within a word. ( Targeting and Retargeting are separate- [How ever Re Targeting is same as targeting]
  • Match should not be case sensitive
  • Match with Plural words for the each Keyword such as “Es” and"s" ( Row 10 and 11 of sheet 1)
  • If None of the Keywords matched it should display as Not found
  • Sheet 1 Comparison should be done at each cell level aganist each row at column A sheet 1
Out Put
  • - All the matched pairs should be populated in Column C and Column D of sheet 1 with comma delimiter
  • - If multiple words within a cell are matched - then should add "-" with matched pairs (Only Column B words and NOT Column C words)
  • - All the adjacent rows From Column D to L of sheet 2 be populated to sheet 1 with "|" delimiter separated (Only Populate Unique Words with ";"delimiter)

Sheet 2 -
Search and Match Sample data.xlsx
ABCDE
1Keyword1-exact Match- Column A of sheet 1Keyword2-Word Match- within the CellKeyword-Do not ContainPrimay CategorySub Category words
2FacebookRetargetingCompleteSocial MediaFacebook Retargeting Course-without complete
3FacebookComplete,BookSocial MediaComplete Book on Facebook
4FacebookChatbot, chat botSocial MediaFacebook Chatbot Training
5FacebookAnalyticSocial MediaFacebook Analytics Course
6FacebookFunnelSocial MediaFacebook Funnel Course
7FacebookMarketingSocial MediaFacebook Marketing Course
8FacebookMarketing,PixelSocial MediaFacebook Pixel Marketing Course
9FacebookGroupSocial MediaFacebook Group Course
10FacebookEcommerceSocial MediaFacebook Ecommerce Course
11FacebookMessengerSocial MediaFacebook Messenger Course
12FacebookStrategiesSocial MediaFacebook Strategies Course
13FacebookAdvertisingultimate,courseSocial MediaFacebook Advertising Course
14FacebookFunnelSocial MediaFacebook Funnels Course
15FacebookAdsBusinessSocial MediaFacebook Ads Course
16FacebookAdvancedSocial MediaFacebook Advanced Course
17FacebookPageSocial MediaFacebook Page Course
18TwitterMarketing,GuideSocial MediaTwitter Course
19TwitterCelebritySocial MediaTwitter Course
20TwitterEndorsementSocial MediaTwitter Course
21TwitterSalesSocial MediaTwitter Course
22TwitterMonetizeSocial MediaTwitter Course
23TwitterQuoraSocial MediaTwitter Course
24TwitterAffiliateMarketingSocial MediaTwitter Course
25TwitterFollowerSocial MediaTwitter Course
26TwitterBrandSocial MediaTwitter Course
27TwitterMinuteSocial MediaTwitter Course
28TwitterUltimateSocial MediaTwitter Course
Sheet2
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Sheet 1 data - The expected Output in Column C, D and E from sheet2 above

Search and Match Sample data.xlsx
ABCDE
1Primary CategorySheet2 -Partial match from - Check with Sheet Column B and C on sheet 2Keyword/Lookup Values- SHEET 2 Colum B and C - At each Cell level more than 2 words matched it should add seperator "-" at column and rest of the word Comma seperatedPrimaryOnce Keyword match, the Column E to L of Sheet 2 to be Populated by "|" Delimiter seperated based on Keyword match - Only Unique Values
2FacebookFacebook Marketing Build Facebook Messenger Chat botschat bot,messenger,MarketingSocial MediaFacebook Chatbot Course|Facebook Messenger Course|Facebook Marketing Course
3FacebookFacebook Page Masterclass: Use It To Grow Your BusinessPageSocial MediaFacebook Page Course
4FacebookThe Facebook Retargeting CourseRetargetingSocial MediaFacebook Retargeting Course-without complete
5FacebookThe Complete Facebook Retargeting CourseNot found
6FacebookFacebook Chatbot Marketing: The Smart Way To Use ManychatChatbot,MarketingSocial MediaFacebook Chatbot Course|Facebook Marketing Course
7FacebookFacebook Pixel Marketing Course: The Smart Way To Use ManychatPixel-marketing, MarketingSocial MediaFacebook Pixel Marketing | Facebook Marketing Course
8FacebookGrowing A Profitable Facebook GroupGroupSocial MediaFacebook Group Course
9FacebookFacebook Marketing: Complete Book on Advanced Targeting StrategiesComplete-book,Advanced,StrategiesSocial MediaComplete Book on Facebook|Facebook Advanced Course|Facebook Strategies Course
10FacebookFacebook Ads For Local Service BusinessesNot foundSocial Media
11FacebookThe Basics Of Facebook AnalyticsAnalyticSocial MediaFacebook Analytics Course
12FacebookEasy To Create Facebook Ad Funnels That ConvertFunnelSocial MediaFacebook Funnels Course
13FacebookThe Ultimate Facebook Advertising CourseNot foundSocial Media
14FacebookFacebook Ads For Ecommerce: Guide To Selling Any ProductEcommerce,AdsSocial MediaFacebook Ecommerce Course|Facebook Ads Course
15FacebookFacebook Algorithms Not found
16TwitterComplete Twitter Marketing For Business Growth And FollowersFollowerSocial MediaTwitter Course
17TwitterTwitter Affiliate Marketing Or Get Sales On AutopilotSalesSocial MediaTwitter Course
18TwitterTwitter Marketing: Gain Huge Following And Monetize TwitterMonetizeSocial MediaTwitter Course
19TwitterCelebrity Twitter: Build Your Twitter With EndorsementsCelebrity,EndorsementsSocial MediaTwitter Course
20Twitter7 Steps To Building Your Brand Using TwitterBrandSocial MediaTwitter Course
21TwitterAffiliate Training Course: Get Sales With Quora And TwitterQuora,AffiliateSocial MediaTwitter Course
22TwitterTwitter Marketing Secrets A Stepbystep Complete GuideGuideSocial MediaTwitter Course
23TwitterRock Social Media In 30 Minutes A Day Twitter, Facebook+MinuteSocial MediaTwitter Course
24TwitterUltimate Twitter Marketing GuideMarketing-Guide,UltimateSocial MediaTwitter Course
Sheet1
 
Upvote 0
I have around 65k records and i am finding difficulty in using advanced formulas.

Is there any VBA solution which can be faster.
 
Upvote 0
If there is any chance of Excel formula either through Vlookup or Match and Index is also fine.
 
Upvote 0

Forum statistics

Threads
1,223,898
Messages
6,175,272
Members
452,628
Latest member
dd2

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