+ Reply to Thread
Results 1 to 3 of 3

Compare cells in column 1 and concatenate values in column 2

  1. #1
    Registered User
    Join Date
    07-20-2011
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    3

    Compare cells in column 1 and concatenate values in column 2

    I want to bring data in column 2 in column3 column 4 etc based on Column 1 If A1 not equal A2 Goto A2.
    If A1 equals A2 .Then concatenate B2 to B1 delete 2nd row and Goto next row.
    Now if A2 equals A3.Then concatenate B2 to B1.delete 2nd row Goto next row.
    Do this until A2 not equal A2

    Column 1 Column 2
    ACCOUNT_NAMEINFO_T LAST_CANON
    ACCOUNT_NAMEINFO_T LAST_CANON
    ACCOUNT_NAMEINFO_T OBJ_ID0
    ACCOUNT_NAMEINFO_T OBJ_ID0
    ACCOUNT_NAMEINFO_T REC_ID
    ACCOUNT_NAMEINFO_T REC_ID


    Can someone help me a macro for this.I am new to excel macros.

  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: Compare cells in column 1 and concatenate values in column 2

    I think this question is more properly suited to the Programming forum.

    'COLUMNS TO ROWS
    Here's a macro for merging columns of data to one row matching for column A, it's exactly the thing you've described..There's a sample sheet there where you can test it out.
    _________________
    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-20-2011
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Compare cells in column 1 and concatenate values in column 2

    Quote Originally Posted by JBeaucaire View Post
    I think this question is more properly suited to the Programming forum.

    'COLUMNS TO ROWS
    Here's a macro for merging columns of data to one row matching for column A, it's exactly the thing you've described..There's a sample sheet there where you can test it out.
    Thanks .That was wonderful.It might have taken me a day or two to complete that job manually.
    That code worked like magic.Thanks again
    Last edited by sharmaremuk; 07-20-2011 at 09:46 PM.

+ 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