Hardware Man
New Member
- Joined
- Apr 10, 2013
- Messages
- 40
I have a problem I simply can't get my head around.
In column A I have some text data which contains the "collections" that a typical product belongs to. Usually there is just a single collection, but some products have more than one. When there are multiple collections, they are separated with ///.
Columns B and C are easy. They simply contain the products color and brand name, respectively.
What I need is a formula in column D that will combine the contents of the other 3 columns, and put a dash between the elements. When there is just a single "collection" name, it's easy. I just concatenate the 3 fields together and put a dash between each one, so a typical result might read:
CollectionA-Red-CompanyABC
But if there are X collections, I'd need to create X results in column D and separate them with a comma. So a typical result if there were 2 collections for a product would be:
CollectionA-Red-CompanyABC,CollectionB-Red-CompanyABC
Obviously, when there are more "collection names" the final answer gets longer. Can someone here help me come up with a formula that will handle this?
In column A I have some text data which contains the "collections" that a typical product belongs to. Usually there is just a single collection, but some products have more than one. When there are multiple collections, they are separated with ///.
Columns B and C are easy. They simply contain the products color and brand name, respectively.
What I need is a formula in column D that will combine the contents of the other 3 columns, and put a dash between the elements. When there is just a single "collection" name, it's easy. I just concatenate the 3 fields together and put a dash between each one, so a typical result might read:
CollectionA-Red-CompanyABC
But if there are X collections, I'd need to create X results in column D and separate them with a comma. So a typical result if there were 2 collections for a product would be:
CollectionA-Red-CompanyABC,CollectionB-Red-CompanyABC
Obviously, when there are more "collection names" the final answer gets longer. Can someone here help me come up with a formula that will handle this?