VLOOKUP the word contained in text

Nick70

Active Member
Joined
Aug 20, 2013
Messages
306
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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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