Columns to CSV or concatenation problem - easy to solve?

Big V

New Member
Joined
Dec 22, 2003
Messages
20
HI guys

A simple question - how can I easily convert a column of approx 100 numbers into a CSV string without having to manually enter a concatenation formula like =CONCATENATE(F1,", ",F2,", ",F3 etc ad on unitl F100.)

Can someone short cut this for me in anyway

Data in cells A1 to A100 and just need to be sparated by a comma and space
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

PaddyD

MrExcel MVP
Joined
May 1, 2002
Messages
14,234
Re: Columns to CSV or concatenation problem - easy to solve

see the example:
Book2
ABCD
1NumberString
21234561,2,3,4,5,6
31231,2,3
41234561,2,3,4,5,6
5121,2
612345674891,2,3,4,5,6,7,4,8,9
Sheet1


the formula is:

=MCONCAT(MID(A2,INTVECTOR(LEN(A2),1),1),",")

which needs to be array entered using control + shift + enter. mconcat & intvector are functions from the morefunc addin (see the recommended links etc post @ the top of the board for the link).
 

PaddyD

MrExcel MVP
Joined
May 1, 2002
Messages
14,234
re-reading - got your requirement totally wrong! still using morefunc addin:

=MCONCAT(A1:D1,",")

will produce a comma sep string - although why not just save the file as csv?
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,152,322
Messages
5,769,452
Members
425,548
Latest member
macjagger17

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
Top