+ Reply to Thread
Results 1 to 6 of 6

Merging duplicate rows

  1. #1
    Registered User
    Join Date
    05-13-2011
    Location
    Birmingham
    MS-Off Ver
    Excel 2007
    Posts
    78

    Merging duplicate rows

    I have total 90K records with multiple entries against each id below:

    Actual Data

    1 Clara Antitrust / Trade
    1 Clara Commercial
    1 Clara Employment Relations
    1 Clara Accidents
    2 Sara Employment Relations
    2 Sara Accidents
    3 Colin International
    3 Colin Aviation and Aerospace
    4 John Personal Injury


    I want to display one record in each row like:
    1 clara antitrust/Trade, Commercial, Employment relations, Accidents

    Please help!
    Thanks.
    Last edited by nlm; 05-13-2011 at 03:15 AM.

  2. #2
    Forum Contributor
    Join Date
    03-28-2008
    Location
    India, bangalore
    MS-Off Ver
    Excel 2003,2007
    Posts
    216

    Re: Merging duplicate rows

    Hi See if this helps.

    I have attached the file for you.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Merging duplicate rows

    hi, nlm, please check attachment, run code "test". The output is on the new sheet. Hope this helps.

    PS. The code works with sorted data as in your example otherwise it should be modified.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    05-13-2011
    Location
    Birmingham
    MS-Off Ver
    Excel 2007
    Posts
    78

    Re: Merging duplicate rows

    Amazing!!!!!!!! You are Gem....

    Thx a lot for your help.


    Quote Originally Posted by aravindhan_31 View Post
    Hi See if this helps.

    I have attached the file for you.

    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Merging duplicate rows

    if you are happy with the offered solution, please mark the thread as solved under Forum rules: http://www.excelforum.com/forum-rule...rum-rules.html

  6. #6
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Merging duplicate rows

    or:

    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