Vlookup and Match-Need VBA solution

ravik

New Member
Joined
May 18, 2020
Messages
5
Office Version
  1. 2016
Platform
  1. Windows
I am facing a problem with vlookup and i think could not solve using the Excel formula

The column H values to be checked in Column A and if the words in a cell match, then it should collect the adjacent values and display in Column C and D with comma seperated.

The column H values to be matched with multiple words in the cell aganist Column A, all matched words should be populated in column B.


Lookup and match.xlsx
ABCDEFGHIJ
1TitleMatch Values-Based on Coulmn HSub Gr1Sub Gr2Look up valuesSub Gr1Sub Gr2
2Implementing Business Intelligence with SQL Server 2019 Business Intelligence,sql ServerA,BC-11001,C-11009Business IntelligenceAC-11001
3Hands-On Natural Language Processing with Pytorch Natural Language Processing, Py torchB,AC-11002,C-11010Natural Language ProcessingBC-11002
4Natural Language Processing in Practice Natural Language ProcessingBC-11002jetpackAC-11003
5Android Jetpack Architecture Components jetpack,andriodA,CC-11003,C-11013RaspberryBC-11004
6Real-World Projects with Flutter flutter-projectsAC-11008with RCC-11005
7Learn Qlik Sense Development Qlik sense-developmentCC-11004NLPCC-11006
8Raspberry Pi BootcampRaspberryBC-11004Qlik sense,developmentCC-11007
9Quantitative Finance with R with RCC-11005flutter,ProjectsAC-11008
10Natural Language Processing (NLP) in Practice Natural Language Processing,NLPB,CC-11002,C-11006sql serverBC-11009
11Learn Qliksense Fundamentals Qlik senseAC-11014py torchAC-11010
12Learn C and C++ FundamentalsC,c++A,CC-11011,C-11012CAC-11011
13c++CC-11012
14andriodCC-11013
15Qlik senseAC-11014
Sheet1
 
" The words in each cell should match by ignoring spaces and with non case sensitive. Ex: Colum H row 15 "qlik sense" should match Column A row 11 "Qliksense" "
- Yes, Your code already working on this solution

Should A7 "Learn Qlik Sense Development " match with H8 "Qlik sense,development" or H15 "Qlik sense" or both?
- Its my mistake.Sorry my OP is wrong.
- It should reflect Both "Qlik sense-development","Qlik sense"
- The code has to handle fixing "-" in between "Qlik sense and development"


I checked this formula i found its not giving expected output. Please consider unique values while populating it


If Possible Please help me a macro, While draging formula the cell references are not working properly.I am manually copy pasting in each row,

@mikerickson Please help with the above changes to the code
 
Upvote 0

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
You missed something in Mike's earlier reply, which is effectively saying that you want the impossible.
Should "Implementing Business Intelligence with SQL Server 2019" in B2 match with "C" in H12?
By editing the code to do what you want with 'qlik sense', you will be creating additional matches that shouldn't exist becasue 'C' in H12 will be a match for the c in the word Intelligence.

You will need to fix your list in column H as Mike suggested in order to make the function work properly.
 
Upvote 0
About A6 "Real-World Projects with Flutter"

I don't understand how it is to match with "flutter, Projects" since (after removing spaces) "flutterprojects" is not part of the string in A6.
Neither do I understand how "flutter-projects" is supposed to be returned in Column C.
 
Upvote 0
This is a relatively straight forward routine, once the data, both the data in column A and especially the data in the right hand column are clean.
 
Upvote 0

Forum statistics

Threads
1,214,978
Messages
6,122,549
Members
449,089
Latest member
davidcom

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