zabuzaa,
Welcome to the forum!
It looks like you want to concatenate just the unique values from column B that have the same color in column A. Unfortunately, there is no native function in Excel that can do this because CONCATENATE doesn't work with arrays.
That being said, you can use VBA to accomplish what you're looking for. Attached is an example file based on the criteria you described. In cell E2 and copied down is this formula:
ConcatUniqueIf is a UDF (User Defined Function) that has the following code:
To view the code, just press Alt+F11 to bring up the VBE (Visual Basic Editor) and double-click on Module1.
Bookmarks