I have a large dataset where I want to combine the values of multiple rows in one column where there are duplicates in another column. See my Example below:
CURRENT DATA
Product Type | |
---|---|
Product 1 | [email protected] |
Product 2 | [email protected] |
Product 3 | [email protected] |
Product 4 | [email protected] |
Product 1 | [email protected] |
Product 2 | [email protected] |
REQUIRED DATA
Product Type | |
---|---|
Product 1, Product 2, Product 3, Product 4 | [email protected] |
Product 1, Product 2 | [email protected] |
The values in the column "Product Type" are combined and separated by commas wherever the Emails are duplicates in the "Email" column.
Unique()
, then for column product type it would be something like:Arraytotext(filter())
. good luck.