SOLVED

How to use VLOOKUP to return a textstring based on a value as a part of a textstring in another cell

%3CLINGO-SUB%20id%3D%22lingo-sub-1819642%22%20slang%3D%22en-US%22%3EHow%20to%20use%20VLOOKUP%20to%20return%20a%20textstring%20based%20on%20a%20value%20as%20a%20part%20of%20a%20textstring%20in%20another%20cell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1819642%22%20slang%3D%22en-US%22%3E%3CP%3EHey%2C%20sorry%20if%20the%20title%20is%20unclear%2C%20but%20what%20I'm%20looking%20for%20actually%20seems%20pretty%20simple%20(to%20me%2C%20at%20least).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20attached%20a%20screenshot%20of%20my%20workbook%20below.%20Essentially%2C%20I%20have%20the%20title%20of%20the%20product%20in%20F4%2C%20and%20I%20need%20to%20automatically%20populate%20the%20keyword%20textstring%20(currently%20it's%20%23N%2FA%20because%20the%20formula%20I'm%20using%20is%20incorrect).%20I've%20create%20a%20table%20in%20LA%3ALB%20with%20the%20textstring%20that's%20supposed%20to%20be%20returned%20in%20LB%20based%20on%20the%20partial%20match%20value%20in%20LA.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETo%20make%20a%20little%20more%20sense%2C%20In%20I4%2C%20I%20want%20to%20return%20%3CSTRONG%3Eautomotive-headlight-assemblies%3C%2FSTRONG%3E%20based%20on%20the%20word%20%3CSTRONG%3Eheadlight%3C%2FSTRONG%3E%20in%20F4.%20I've%20looked%20all%20over%20the%20internet%2C%20but%20can't%20seem%20to%20find%20a%20VLOOKUP%20to%20handle%20this.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1819642%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EBI%20%26amp%3B%20Data%20Analysis%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1820024%22%20slang%3D%22de-DE%22%3ESubject%3A%20How%20to%20use%20VLOOKUP%20to%20return%20a%20textstring%20based%20on%20a%20value%20as%20a%20part%20of%20a%20textstring%20in%20ano%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1820024%22%20slang%3D%22de-DE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F846429%22%20target%3D%22_blank%22%3E%40erikhalverson%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWith%20your%20permission%2C%20if%20I%20can%20recommend.%20It%20can%20help%20us%20all%20if%20you%20upload%20an%20Excel%20file%20(without%20sensitive%20data)%2C%20no%20picture.%20Even%20if%20it%20is%20said%20that%20a%20picture%20can%20say%20a%20thousand%20words%2C%20it%20is%20certainly%20not%20in%20the%20case%20of%20Excel%2C%20on%20the%20contrary%20in%20some%20cases.%20This%20would%20also%20be%20a%20blessing%20for%20all%20of%20us%2C%20as%20we%20can%20understand%20the%20problem%20much%20better%2C%20a%20win-win%20situation%20for%20everyone.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20understanding%20and%20patience%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENikolino%3C%2FP%3E%3CP%3EI%20know%20I%20don't%20know%20anything%20(Socrates)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1820092%22%20slang%3D%22en-US%22%3EBetreff%3A%20How%20to%20use%20VLOOKUP%20to%20return%20a%20textstring%20based%20on%20a%20value%20as%20a%20part%20of%20a%20textstring%20in%20ano%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1820092%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F722750%22%20target%3D%22_blank%22%3E%40Nikolino%3C%2FA%3E%26nbsp%3BHey%2C%20I've%20attached%20a%20sample%20of%20the%20workbook%20below.%20I%20just%20want%20B2%20to%20take%20the%20keywords%20in%20Column%20C%2C%20look%20for%20them%20in%20A2%2C%20and%20then%20populate%20B2%20based%20on%20the%20matching%20value%20in%20Column%20D.%20(So%20if%20A2%20says%20%22headlight%22%20I%20want%20B2%20to%20autofill%20with%20%22automotive-headlight-assemblies%22%2C%20because%20that's%20what%20I%20have%20matching%20up%20in%20the%20table%20C%3AD.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hey, sorry if the title is unclear, but what I'm looking for actually seems pretty simple (to me, at least).

 

I've attached a screenshot of my workbook below. Essentially, I have the title of the product in F4, and I need to automatically populate the keyword textstring (currently it's #N/A because the formula I'm using is incorrect). I've create a table in LA:LB with the textstring that's supposed to be returned in LB based on the partial match value in LA.

 

To make a little more sense, In I4, I want to return automotive-headlight-assemblies based on the word headlight in F4. I've looked all over the internet, but can't seem to find a VLOOKUP to handle this.

5 Replies
Highlighted

@erikhalverson 

With your permission, if I can recommend. It can help us all if you upload an Excel file (without sensitive data), no picture. Even if it is said that a picture can say a thousand words, it is certainly not in the case of Excel, on the contrary in some cases. This would also be a blessing for all of us, as we can understand the problem much better, a win-win situation for everyone.

 

Thank you for your understanding and patience

 

 

Nikolino

I know I don't know anything (Socrates)

Highlighted

@Nikolino Hey, I've attached a sample of the workbook below. I just want B2 to take the keywords in Column C, look for them in A2, and then populate B2 based on the matching value in Column D. (So if A2 says "headlight" I want B2 to autofill with "automotive-headlight-assemblies", because that's what I have matching up in the table C:D.

Highlighted
Best Response confirmed by erikhalverson (New Contributor)
Solution

@erikhalverson 

=LOOKUP(2,1/SEARCH($C$2:$C$87,A2),$D$2:$D$87)

 

Highlighted

@Detlef Lewin That worked!!!! Thank you so much!!!

 

Additional question - how the heck did you even know that? Did you just know the right formula off-hand, or do you have a good way of looking it up?

Highlighted

@erikhalverson 

It's a standard solution. You will find it all over the place.