I'm looking to use Excel to look up and return multiple reference values for a given key. VLookup does something very similar to what I need - but only returns a single match.
I assume it'll involve array-returning and handling methods, though I haven't dealt with these before. Some Googling starts to lean on the if([lookuparray]=[value],row[lookuparray]) as part of a solution - though I can't get it to return a single match...
For example, if I have this reference data:
Adam Red Adam Green Adam Blue Bob Red Bob Yellow Bob Green Carl Red
I'm trying to get the multiple return values on the right. (Comma separated, if possible)
Red Adam, Bob, Carl Green Adam, Bob Blue Adam Yellow Bob
(I already have the key value on the left - no need to pull out those values)
Any help as to how to approach handling multiple values in th this context is apprecited. Thanks.