Vlookup on phrase in large block of text

toddlerzz

Board Regular
Joined
Oct 21, 2007
Messages
53
I am trying to do a vlookup on a phrase from a block of text to return a value.

For example, on Sheet 1, in column A I have work boots

Then on Sheet 2 in column A it one cell it says blue jeans work boots hard hats spikes all in the same cell with the number 12 then in column B

I need a formula that would look for the data in sheet A1, in this case work boots through all of the data in column A on sheet 2 and then return the value in column B when it finds it.

Thanks.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
I am trying to do a vlookup on a phrase from a block of text to return a value.

For example, on Sheet 1, in column A I have work boots

Then on Sheet 2 in column A it one cell it says blue jeans work boots hard hats spikes all in the same cell with the number 12 then in column B

I need a formula that would look for the data in sheet A1, in this case work boots through all of the data in column A on sheet 2 and then return the value in column B when it finds it.

Thanks.
Try this...

=VLOOKUP("*"&A1&"*",Sheet2!A2:B10,2,0)

Adjust the ranges to suit.
 
Upvote 0

Forum statistics

Threads
1,224,567
Messages
6,179,571
Members
452,927
Latest member
whitfieldcraig

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