+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Selected columns to comma separated cell

  1. #1
    Registered User
    Join Date
    12-20-2009
    Location
    Helsingborg, Sweden
    MS-Off Ver
    Excel 2007
    Posts
    9

    Selected columns to comma separated cell

    Hello,

    I need a macro that takes the selected cells values in a column and makes a single cell with comma separated values

    example

    45
    48
    50
    55
    60

    Should look like this:
    45, 48, 50, 55, 60

    If anyone can help me i would be very happy!

    /m

  2. #2
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Selected columns to comma separated cell

    Please Login or Register  to view this content.
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

  3. #3
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Selected columns to comma separated cell

    Or

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    12-20-2009
    Location
    Helsingborg, Sweden
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Selected columns to comma separated cell

    Thanks both of you for really quick answer.

    Is there a way to get the result of the script in the top cell of the selected range?

    EDIT: the vba script does not seem to work like intended. I select cells, but it generates values from other places in the sheet
    Last edited by mossman; 12-20-2009 at 10:37 AM.

  5. #5
    Forum Contributor
    Join Date
    12-02-2009
    Location
    Akron, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    208

    Re: Selected columns to comma separated cell

    Somelike this would do it. Not sure about where the data may reside initially. That would help determine where to position the rows and columns.

    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)

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