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

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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