+ Reply to Thread
Results 1 to 4 of 4

Merge duplicate rows and their columns

  1. #1
    Forum Contributor
    Join Date
    11-12-2007
    Location
    Germany
    MS-Off Ver
    2007
    Posts
    472

    Merge duplicate rows and their columns

    Hello,

    i need to merge duplicates of a very large wordlist. The list looks now like:


    col.A...........B......C......D..............................E................................................F....................................G..H..I..J...K
    love ..........luv.....n......Liebe (die)...........Geliebter (der).......................Liebling (das)
    love ..........luv.....v......lieben....................mögen..................................*** haben...........................etwas möchten
    loving....luving...adj....schöne Frau (umgspr.)

    Now I need a formula or a macro which should merge upper list from many columns to only two columns and put tags "<m1><m2><m...>" infront of duplicate entries and close them with "</m1></m2></m3>". It should look like:


    Col.A..............Col. B

    love................<m1>[luv]{n.} Liebe (die); Geliebter (der); Liebling (das)</m1><m2>[luv]{v.} lieben; mögen; *** haben; etwas möchten</m2>
    loving..............[luving]{adj.} lieben; mögen; *** haben; etwas möchten

    Thank you very much for each help in advance
    Last edited by wali; 03-17-2011 at 06:36 AM.

  2. #2
    Forum Contributor
    Join Date
    11-12-2007
    Location
    Germany
    MS-Off Ver
    2007
    Posts
    472

    Re: Merge duplicate rows and their columns

    Anyone who can help?

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Merge duplicate rows and their columns

    Try this
    Please Login or Register  to view this content.

    Your imported data seems a bit inconsistant compared to your expected result, I have cleaned the data in the code, hopefully that will work for your needs

    I have left some proving formula in the attached workbook for you to see the anomalies, it is not required to reach a solution and can be deleted.
    .
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  4. #4
    Forum Contributor
    Join Date
    11-12-2007
    Location
    Germany
    MS-Off Ver
    2007
    Posts
    472

    Re: Merge duplicate rows and their columns

    Wooooooooooooooooooooooooow!
    it works like a charm! thaaaaaaaaaaaank you very much Marcol. You saved my life or lets say many many weeks of it at least!! :-) thank you a million times. God bless you

+ 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