Hello,
I am having trouble creating a macro that will take the color information below and consolidate it into one cell having removed duplicate colors. The problem I'm running into is that some cells contain multiple colors. If I use the remove duplicate logic built into excel, it will consider the entire cell, not the colors separated by the semicolon.
i.e. The final product would be a single cell that lists all colors concatenated together separated by a semicolon.
Cells A1:A7
Result in A8: red, light; blue; dark, green; light; maroon, light; yellow, dark; brown, dark; orange, light
Is this possible? I have attempted to put something together but this is a little over my head. I'm definitely stuck.
I am having trouble creating a macro that will take the color information below and consolidate it into one cell having removed duplicate colors. The problem I'm running into is that some cells contain multiple colors. If I use the remove duplicate logic built into excel, it will consider the entire cell, not the colors separated by the semicolon.
i.e. The final product would be a single cell that lists all colors concatenated together separated by a semicolon.
Cells A1:A7
red, light; blue; dark, green; light |
red light; green, light |
maroon light; red light |
yellow, dark; brown, dark |
orange, light |
yellow, dark; brown, dark |
orange, light |
Result in A8: red, light; blue; dark, green; light; maroon, light; yellow, dark; brown, dark; orange, light
Is this possible? I have attempted to put something together but this is a little over my head. I'm definitely stuck.