Reputation: 1070
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.
Upvotes: 0
Views: 235
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))
Upvotes: 1