Power Query (if text contains items from a list and return the item)

castilian07

New Member
Joined
Dec 19, 2017
Messages
7
Hi everyone, I am looking the following situation. I have used M Text.Contain formula on simple if then formulas in power pivot. In regular excel I successfully used an array formula for this situation but wanted to go a step further and solve it in power pivot. This is just a short list as the actual list is 30 projects plus more projects will be added over time.
Power Query
Table 1
Table 2
Column 1
Table 2
Column 2
I want to search Table 1 for the variable in the first column in table 2 and return the value. My main goal is to return the value in Column 2 to categorize the projects to their full names.
Tool Service ShelShelShell ProjectsExample: Search "Shel" in table 1 and return Shel. Example: Search "Shel" and return Shell Projects in Table 2.
Labor Service ExxExxExxon Projects
Hammer Tool ChevChevChevron Projects
Casings Chev
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,223,113
Messages
6,170,171
Members
452,306
Latest member
Shaz11

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