Converting columns to single strand of text

sayoung471

New Member
Joined
Aug 12, 2008
Messages
30
Anyone know how I can take a list of numbers in a column and turn it into a single continuous string of numbers with a comma between each number?

Any help would be appreciated.
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
To do it without VBA,

Code:
      B ---C--- -------------D-------------
  2   1       1 C2: =B2                    
  3   2 1,2     C3 and down: =C2 & "," & B3
  4   3 1,2,3                              
  5   4 1,2,3,4
 
Upvote 0
It's important to post which version of Excel you are using so we can customize instructions for you .

In Excel 2010:
Depending on how many numbers there are...maybe this way?
With A1:A10 containing the numbers 1 through 10

then...
• B1: =A1&", "
• Copy that formula down through B10
• Select B1:B10
• Home.Copy...Home.Paste.Paste_Values
• Select B1:E10
• Home.Fill.Justify

The end result in cell B1 will be:
1, 2, 3, 4, 5, 6, 7, 8, 9, 10,

Just remove the final comma and you're done.

Is that something you can work with?
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,836
Members
452,947
Latest member
Gerry_F

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