+ Reply to Thread
Results 1 to 6 of 6

Macro that can merge a column of cells into one cell separated by semi colon

  1. #1
    Forum Contributor
    Join Date
    04-30-2013
    Location
    arizona
    MS-Off Ver
    365
    Posts
    147

    Macro that can merge a column of cells into one cell separated by semi colon

    Hello,

    I need a macro that can take all the values of all the cells in a single column (I) and combine them into one cell (J11) separated by a semicolon.
    I also need to macro to work across all worksheets except for "Sheet1", "Sheet2" and "Sheet3".

    I found the following code which works well but it does not seperate by semi colon or work across all sheets.

    Please Login or Register  to view this content.

    Can anyone help me with this?
    Thanks

  2. #2
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Macro that can merge a column of cells into one cell separated by semi colon

    Hi Glide!

    Try This..
    Please Login or Register  to view this content.
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Macro that can merge a column of cells into one cell separated by semi colon

    Please Login or Register  to view this content.
    Column I

  4. #4
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Macro that can merge a column of cells into one cell separated by semi colon

    @ AB33!

    Thanks for the catch..

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    04-30-2013
    Location
    arizona
    MS-Off Ver
    365
    Posts
    147

    Re: Macro that can merge a column of cells into one cell separated by semi colon

    Thank you that works great! However, I did notice that it places a semi colon for each row regardless of whether there was a value in that cell. Do you know how to modify this code so that it only copies values if there is a value in the cell? I am trying to avoid a long list of semicolons. Thanks a ton.

  6. #6
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Macro that can merge a column of cells into one cell separated by semi colon

    Hi Glide

    Try This..

    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