Vlookup with "inversed" wildcard

excelbeo

New Member
Joined
Aug 18, 2020
Messages
7
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
So I think I generally understand how the "*" wildcard with vlookup works, but I need an "inverse" wildcard.

Below is an example of my challenges:

excel wildcards.png


I have a list of Responses (column B) (over 2000 responses) that vary significantly but I need to recode it based on the "sample table" For example, any time a person mentions "college" it is coded as "School - College/University/Vocational;" anytime a person mentions "Work" or "Internship" in their response, it is coded as "Through Work"

In a vlookup, my lookup_value is A2 ("technical college") and my table array is E1:F8, my col index is 2.


Any suggestions to get the those responses with the word "college" any where in the response to be coded as "School - College/University/Vocation?"

Thank you!
 
For our purposes, we are going to select one option.
Do you mean one of the solution options provided in this thread?
.. or do you mean only one of the options in an example like my cell B11, instead of all 3?
 
Upvote 0

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Do you mean one of the solution options provided in this thread?
.. or do you mean only one of the options in an example like my cell B11, instead of all 3?

Sorry for the lack of clarity in my response. I meant that the recode value (column B) can only have one (1) selection or value. So, unfortunately, I cannot use your B11 example. But I really appreciate your suggestion and that option.
 
Upvote 0
I meant that the recode value (column B) can only have one (1) selection or value.
Thanks for the clarification.
In that case, you could use this even shorter version.

excelbeo 2020-08-19 1.xlsm
ABCDEF
1ResponseRecodeKeywordSample Table
2Technical CollegeSchool/College/University/Vocational
3CollegeSchool/College/University/VocationalUniversitySchool/College/University/Vocational
4Can't spell Collage-BossThrough work
5UniversitySchool/College/University/VocationalWorkThrough work
6Thrown out of CollegeSchool/College/University/Vocational
7FriendsThrough friendInternshipThrough work
8My workplaceThrough workFriendThrough friend
9Hired by BossThrough workThrough Family
10Saw advert-Childhood
11CollegeSchool/College/University/Vocational
12Can't spell Collage-JobThrough work
13Hired by BossThrough work
14FriendsThrough friendCollegeSchool/College/University/Vocational
15My workplaceThrough work
16FriendsThrough friend
Sheet2
Cell Formulas
RangeFormula
B2:B16B2=INDEX(FILTER(F$2:F$20,IFERROR(SEARCH(E$2:E$20,"|"&A2),0)>1,"-"),1)
 
Upvote 0

Forum statistics

Threads
1,215,523
Messages
6,125,320
Members
449,218
Latest member
Excel Master

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