Concatenate Macro

behnm

New Member
Joined
Aug 30, 2006
Messages
4
Everyday I receive lists of information that contain the following column headers: Section, Serial #, Part #, and Date. I want to create a macro that will concatenate the values in the serial # column according to values in the section column (ie. All serial number values that are section A will be concatenated with a comma between the serial number values and the same will be done with serial numbers of section b, c, and so on). When concatenating, the serial number values need to be separated by a comma. The input information and the amount of entries change from day to day, but the column headings are the same. Any thoughts?
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
If I understood the question correctly. you have to concatenate three columns with "," in between.

=CONCATENATE(A4,",",B4,",",C4)

Try this one. Hope this helps.
 
Upvote 0

Forum statistics

Threads
1,215,734
Messages
6,126,542
Members
449,316
Latest member
sravya

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top