Reputation: 1341
I have a table that contains "Lookup" and "Result" columns. My goal is find a formula that can return all the values from the "Result" column which lookup contains a specific string, and store these values into a cell. Below is the example:
Is there a way to solve this?
I have tried using Index Match and Vlookup, but both can only return the first matched value from the "Result" column.
Upvotes: 1
Views: 212
Reputation: 34180
So it would be this if you do have Excel 2016 / Office 365
=TEXTJOIN(",",TRUE,IF($A$2:$A$10=D2,$B$2:$B$10,""))
entered as an array formula using CtrlShiftEnter
Upvotes: 1