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

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Forum statistics

Threads
1,223,908
Messages
6,175,304
Members
452,633
Latest member
DougMo

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