+ Reply to Thread
Results 1 to 4 of 4

How do i convert a vertical column of numbers to horizontal row of comma separated values?

  1. #1
    Registered User
    Join Date
    09-25-2014
    Location
    Seattle
    MS-Off Ver
    2010
    Posts
    1

    Question How do i convert a vertical column of numbers to horizontal row of comma separated values?

    Hello All,

    if I have a vertical column of numbers such as column A going up to 5000 in Column A of Sheet 1
    how can I convert column A to a comma separated list of numbers and insert starting at Column B?

    I have the following code so far:

    Please Login or Register  to view this content.
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10

    and looking to do this: '1','2','3','4',...

    Thanks for your help.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,312

    Re: How do i convert a vertical column of numbers to horizontal row of comma separated val

    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: How do i convert a vertical column of numbers to horizontal row of comma separated val

    Hello kingpoop,

    Here is macro to take the values in "A1:A10" and create a comma separated list in "B1".
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,312

    Re: How do i convert a vertical column of numbers to horizontal row of comma separated val

    I like your use of Join, though to meet the OP's needs:

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 05-29-2014, 12:27 PM
  2. Programatically Convert comma separated 'Text to Column'
    By super_duper_guy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-01-2012, 08:04 PM
  3. Comma separated list with vertical lookup
    By tamxc4 in forum Excel General
    Replies: 0
    Last Post: 04-13-2012, 11:05 AM
  4. Convert Horizontal data into a 'Cummulative' (one-column) Vertical List
    By Gabino21 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-15-2012, 11:28 PM
  5. Excel 2007 : One column to txt comma separated values
    By Runnit4 in forum Excel General
    Replies: 1
    Last Post: 02-15-2011, 05:44 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1