I want to create a conditional column in Excel Power Query that look up a list of companies and return a value like "Yes" if the company column in that given row corresponds with one of the companies in the list.
It should look something like this:
+----------+---------------------+-------+
| Company | List | Match |
+----------+---------------------+-------+
| Apple | Facebook, Instagram | No |
| Facebook | Facebook, Instagram | Yes |
+----------+---------------------+-------+
Constraint: I cannot create additional rows since the excel sheet will be used for importing information to a system, and therefore needs to be structured in a given way.
I have tried using the built in conditional column functionality in Power Query, but it can only look at a specific column, and not several. And it sees the companies list column as a big string like "Facebook, Instagram" and not separate values. Also, the company list is very long, so it would be very inefficient to create if-statements for each company.
Any help will be appreciated!