Formula to lookup values from a list and return matched value

chappers

New Member
Joined
Nov 2, 2016
Messages
8
I need a formula to match words contained in a phrase (B) to values in a list (A1:A5) and copy the matched values into a cell (C) e.g:

[TABLE="width: 500"]
<tbody>[TR]
[TD]List[/TD]
[TD]Phrase[/TD]
[TD]Matched words[/TD]
[/TR]
[TR]
[TD]break[/TD]
[TD]hot tub forest break[/TD]
[TD]break, forest[/TD]
[/TR]
[TR]
[TD]cabin[/TD]
[TD]log cabin[/TD]
[TD]cabin[/TD]
[/TR]
[TR]
[TD]cottage[/TD]
[TD]cottage break[/TD]
[TD]cottage, break[/TD]
[/TR]
[TR]
[TD]forest[/TD]
[TD]forest hot tub holiday[/TD]
[TD]forest[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
if you want the results separated by a comma then use TEXTJOIN if you have it otherwise the solution would have to be VBA.
I have seen a formula to concatenate results with a comma but it was extremely complicated and looked like it related specifically to the problem in question.
 
Upvote 0
[deleted]

edit: I c someone was faster and moved this thread ;)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,254
Members
452,623
Latest member
Techenthusiast

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