VLOOKUP the word contained in text

Nick70

Active Member
Joined
Aug 20, 2013
Messages
304
Office Version
  1. 365
Platform
  1. Windows
Hi,

I need a VLOOKUP which will give me a result if the text in a column is found in another column even if this text is contained inside a word.

So if I have:

A...... B...... C
apple apple apple
pear pear pear
strawberry strawberry strawberry
cherries cherries cherries
bananas bananas bananas

and I want to check if items in column B are found in column A then I would do a VLOOKUP formula in column C equal to =VLOOKUP(B1,$A$1:$A$5,1,FALSE), =VLOOKUP(B2,$A$1:$A$5,1,FALSE) etc.

But if I have:

A.....B.......C
apple apple apple
whitepear pear #N/A
strawberry strawberry strawberry
redcherries cherries #N/A
bananas bananas bananas

I will get #N/As where the text is different (although contained within word so pear is contained in whitepear but I still get #N/A).

How can I amend my VLOOKUP formula in column C so that if text is contained in word then I get a result (ie. not #N/A) see example below?

A...... B......C
apple apple apple
whitepear pear pear
strawberry strawberry strawberry
redcherries cherries cherries
bananas bananas bananas

Thanks,
Nic
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Just try to use wild character i.e. use something like =VLOOKUP("*"&B1&"*",$A$1:$A$5,1,FALSE) This can help you.
 
Upvote 0

Forum statistics

Threads
1,215,837
Messages
6,127,185
Members
449,368
Latest member
JayHo

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