Remove Duplicate Rows and Concatenate Unique Cell

Gauraw

New member
Joined
Nov 20, 2015
Messages
4
Reaction score
0
Points
0
Hi All,

I am new to VBA programming and I working with a Excel which has a lot many duplicate records. The data in the excel have indefinite records.

The requirement is that I need to remove duplicate rows based multiple columns and concatenate the content of a unique column. I am able to remove duplicate rows through VBA but finding difficulty in concatenating the Unique column.

Sample Input data :-

COUNTRYDIAGCORPPRODUCTFORMMOLECULESALES
USD1C1P1F1M1123
USD1C1P1F1M2123
USD2C2P2F2M11456
USD2C2P2F2M12456
USD2C2P2F2M13456
USD3C3P3F3M2389
USD3C3P3F3M2389

Output :-

COUNTRYDIAGCORPPRODUCTFORMMOLECULESALES
USD1C1P1F1M1+M2123
USD2C2P2F2M11+M12+M13456
USD3C3P3F3M2389

Please note the duplicate row needs to be removed based on the column DIAG,CORP,PRODUCT,FORM,SALES. The concatenation needs to be
done on the basis on MOLECULE Column. (only Unique values)

Please help me in doing the same using VBA.

Thanks in advance.

Regards,
Gauraw
 
Back
Top