Returning multiple results from a lookup
I'm trying to result multiple results to a single lookup. Right now, if I want to lookup data from a column, it's fairly easy using VLOOKUP as long as all the data in the column is unique. If any of the data repeats, it only returns the first result. I'm looking to have it return all the results. Here's an example:
In the above example, the formula at the top would only return the first result (i.e. for red it would return one, for blue it would return four, etc.). Instead I'd like it to return what is shown in the List table, where all the results that match the lookup are returned. I saw one old post that seemed to say it could do this, but I didn't really understand what he was suggesting, and I'm hoping many years later there is a simpler solution, or if not, that someone could explain how to do it a bit better. Thank you.