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 -
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
- 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
- - 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 | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | Keyword1-exact Match- Column A of sheet 1 | Keyword2-Word Match- within the Cell | Keyword-Do not Contain | Primay Category | Sub Category words | ||
2 | Retargeting | Complete | Social Media | Facebook Retargeting Course-without complete | |||
3 | Complete,Book | Social Media | Complete Book on Facebook | ||||
4 | Chatbot, chat bot | Social Media | Facebook Chatbot Training | ||||
5 | Analytic | Social Media | Facebook Analytics Course | ||||
6 | Funnel | Social Media | Facebook Funnel Course | ||||
7 | Marketing | Social Media | Facebook Marketing Course | ||||
8 | Marketing,Pixel | Social Media | Facebook Pixel Marketing Course | ||||
9 | Group | Social Media | Facebook Group Course | ||||
10 | Ecommerce | Social Media | Facebook Ecommerce Course | ||||
11 | Messenger | Social Media | Facebook Messenger Course | ||||
12 | Strategies | Social Media | Facebook Strategies Course | ||||
13 | Advertising | ultimate,course | Social Media | Facebook Advertising Course | |||
14 | Funnel | Social Media | Facebook Funnels Course | ||||
15 | Ads | Business | Social Media | Facebook Ads Course | |||
16 | Advanced | Social Media | Facebook Advanced Course | ||||
17 | Page | Social Media | Facebook Page Course | ||||
18 | Marketing,Guide | Social Media | Twitter Course | ||||
19 | Celebrity | Social Media | Twitter Course | ||||
20 | Endorsement | Social Media | Twitter Course | ||||
21 | Sales | Social Media | Twitter Course | ||||
22 | Monetize | Social Media | Twitter Course | ||||
23 | Quora | Social Media | Twitter Course | ||||
24 | Affiliate | Marketing | Social Media | Twitter Course | |||
25 | Follower | Social Media | Twitter Course | ||||
26 | Brand | Social Media | Twitter Course | ||||
27 | Minute | Social Media | Twitter Course | ||||
28 | Ultimate | Social Media | Twitter Course | ||||
Sheet2 |