WG-
WG-

Reputation: 1070

Excel how to create reference and list the names?

So I have a small table with three columns.

My question is, what should be formula for the fourth column to achieve the result below automatically? When the first three columns are given.

enter image description here

Upvotes: 0

Views: 235

Answers (1)

Harun24hr
Harun24hr

Reputation: 36880

If you have Excel365 then could achieve in this way. For older version VBA macro would be best approach.

=TEXTJOIN(", ",TRUE,XLOOKUP(FILTERXML("<t><s>"&SUBSTITUTE(B2,", ","</s><s>")&"</s></t>","//s"),$A$2:$A$4,$C$2:$C$4))

enter image description here

Upvotes: 1

Related Questions