+ Reply to Thread
Results 1 to 7 of 7

CONCATENATE data to Sheet 2 Column

  1. #1
    Registered User
    Join Date
    07-23-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    34

    CONCATENATE data to Sheet 2 Column

    Hi,

    I have a workbook with multiple rows of data which contain multiple account numbers in each column.

    Example; Sheet 1

    Acct. #
    A1 - 32456, 34763, 27365
    A2 - 77456, 77893, 67345
    etc. down.

    I would like to create a Macro to CONCATENATE data in to Sheet 2 in the folowing;

    Acct. #
    A1 - 32456
    A2 - 34763
    A3 - 27365
    A4 - 77456
    A5 - 77893
    A6 - 67345

    etc. down.

    Is this possible?

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Sheet 1 Macro to CONCATENATE data to Sheet 2 Column

    CONCATENATION is the process of taking separate data and putting it TOGETHER into once string, sometimes separated by a delimiter of some kind...like a comma. So you want to DE-concatenate.

    You're example is greatly simplified. Are you sure you don't want to post up a simple workbook with some actual examples of the data including what you really want to see in BEFORE/AFTER columns. The account numbers are really to be tossed and renumbered from the beginning? You sure? Since we're going to write a macro, you could opt for a more specific format in the account numbers if you wish. Best to decide that now as we do it the first time.

    So mockup a sample workbook showing the real data and your desired results (before/after), point out where the results came from if not obvious in your sample data.

    Then click GO ADVANCED and use the paperclip icon to post up your workbook.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    07-23-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Sheet 1 Macro to CONCATENATE data to Sheet 2 Column

    Thanks for the follow up.

    Attached is a sample worksheet. Comments inserted on both tabs to show original data and were it needs to be moved.

  4. #4
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: CONCATENATE data to Sheet 2 Column

    Hi aarbuckle

    try...

    Please Login or Register  to view this content.
    Last edited by pike; 07-26-2009 at 05:34 AM. Reason: tags
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  5. #5
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: CONCATENATE data to Sheet 2 Column

    Hi aarbuckle

    You can reply in the post no need to message me.

    Please try the attachment
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    07-23-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: CONCATENATE data to Sheet 2 Column

    Hello Pike,

    Per your attachment, once I click the button it completly shades columns A - D. I can not uncover them to see if the Macro works. Not sure what is happening. Could you please take a look at it a nd let me know what I am doing wrong?

  7. #7
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: CONCATENATE data to Sheet 2 Column

    Hi aarbuckle
    I'm not to sure what you mean ?
    can you attachthe problem??

+ 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