Hi Everyone! I have the following problem:
I have an excel file where there are two columns (Code and Name). The Code columns holds the code numbers, the Name column holds the names for the codes. There can be more than one name associated to the codes, in this case the code repeats. Here is the example:
Code Name
1111 Ronie
1111 Molly
1111 Fred
1132 Lambert
1178 Gullit
1178 Edwin
... and so on.
This table is on Sheet1. What I would like is a macro which puts the names for the codes in one column and separates them with a comma (this way the code is displayed only once in one row, and it is not repeating itself in case there are more names attached to it).
So the macro (from the table above) should create something like this (on Sheet2):
Code Name
1111 Ronie, Molly, Fred
1132 Lambert
1178 Gullit, Edwin
...and so on.
I also included a sample file with the above example.
The real/original file (which I did not attach because of privacy issues) contains more than 8000 rows and it is a bit more complicated, but if someone could help me with this example than I will be able to make it work on the original file as well! Thank you very much in advance and have a nice weekend!