+ Reply to Thread
Results 1 to 8 of 8

Merge data from cells on 2nd columns in which the cells of 1st column repeat

  1. #1
    Registered User
    Join Date
    01-11-2013
    Location
    lima
    MS-Off Ver
    Excel 2010
    Posts
    4

    Merge data from cells on 2nd columns in which the cells of 1st column repeat

    So my first column has some numbers that repeat, and the second column has the description for each number. I don't have a total number of rows because I have different sheets with different number of rows, but I 'd like to merge the text on the second column in one cell for the numbers that repeat of the first columns. My data looks something like this:
    1 My
    1 Name
    1 is Jake
    2 Today is
    2 Monday
    3 Let's go
    3 to the
    3 beach

    My end result I want to look like
    1 My name is Jake
    2 today is Monday
    3 Let's go to the beach


    I tried doing it in excel, but didn't get what I want. I hears that this is possible doing it with Visaul Basic. ANy help would be appreciated

  2. #2
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Merge data from cells on 2nd columns in which the cells of 1st column repeat

    Hi Jagke.

    Upload a sample file.
    Click *, if my suggestion helps you. Have a good day!!

  3. #3
    Registered User
    Join Date
    01-11-2013
    Location
    lima
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Merge data from cells on 2nd columns in which the cells of 1st column repeat

    The document sample is below
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Merge data from cells on 2nd columns in which the cells of 1st column repeat

    Check this out:

    practice.xlsm

  5. #5
    Registered User
    Join Date
    01-11-2013
    Location
    lima
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Merge data from cells on 2nd columns in which the cells of 1st column repeat

    Thanks a lot. that's basically what I need

  6. #6
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Merge data from cells on 2nd columns in which the cells of 1st column repeat

    Happy to help. Please click the star below. Thanks.

  7. #7
    Registered User
    Join Date
    01-11-2013
    Location
    lima
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Merge data from cells on 2nd columns in which the cells of 1st column repeat

    I have a quick question I've been running the code when I have more than a thousand rows and my computer freezes. Is there something I should change in the code so that it would work for a large number of rows. It only works to around 45 rows but no more.

  8. #8
    Registered User
    Join Date
    01-14-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Merge data from cells on 2nd columns in which the cells of 1st column repeat

    So jraj1106, how would the macro change if the data from column B was transposed into separate cells, instead of concatenated into one cell? Help is much appreciated.

    Thank you
    Last edited by engineerlady; 01-14-2013 at 01:08 PM. Reason: clarify question

+ 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