I apologise if this question already exists, I searched for a while but couldn’t find anything.
I have 2 columns in Excel and I need to concatenate the values of 1 column where the values of another are the same. As an example I have this:
A | B
12 | Value 1
10 | Value 2
13 | Value 3
12 | Value 4
10 | Value 5
And I would like to get out:
A | B
12 | Value 1, Value 4
10 | Value 2, Value 5
13 | Value 3
I have thousands of rows and ideally I would like it to create a new worksheet with the results and not destroy the existing sheet. There are also some blank values in column B which I would like it to ignore and not concatenate.
Thanks in advance.
Try this:
Note that you’ll have to include “Microsoft Scripting Runtime” in “Reference” in order to use
Dictionary.Tested with following [Sheet 1]:
Results in following [Sheet 2]: