Find Values Corresponding to Keys Stored in a Specific Cell

Problem description & analysis

Here is an Excel file Book1.xlsx:

A

B

1

Product

Notice

2

p1

n1

3

p2

n2

4

p3

n3

5

6

p1,p2

We are trying to find the Notice values corresponding to multiple Product values in cell A6. Below is the desired result:

A

B

1

Product

Notice

2

p1

n1

3

p2

n2

4

p3

n3

5

6

p1,p3

n1,n3

Solution & explanation

First, we load add-in ExcelRaq.xll, and then

Select cell B6 and enter the following formula: =esproc("=?1(?2.pos(?3.split@c())).concat@c()",B2:B4,A2:A4,A6) and press Enter to get results.

Q & A Collection

https://stackoverflow.com/questions/63557745/excel-how-to-find-all-rows-matching-elements-from-a-comma-separated-list-without