I use vlookup often to return a single value based on a single lookup. But I have a case where I have multiple values in a cell separated by commas, and need to return a lookup of corresponding values, also comma separated.
My lookup cells would look like this:
| Color | Key |
|---|---|
| Red | 1 |
| Blue | 2 |
| Yellow | 3 |
| Green | 4 |
Here is what I need in the output (the Keys (joined) column)
| Color(s) | Keys (joined) |
|---|---|
| Red, Yellow | 1, 3 |
| Blue | 2 |
| Blue, Green | 2, 4 |
| Yellow, Blue, Red | 3,2,1 |
I have found a few online references that got close, but not exactly what I need:
https://trumpexcel.com/multiple-lookup-values-single-cell-excel/
Thank you!