+ Reply to Thread
Results 1 to 8 of 8

merge wordlist without duplicates

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

    merge wordlist without duplicates

    Hello every one,

    I have a worksheet containing of column A and B. I want to remove the duplicate words and merge their meanings without having duplicates in merged meanings.

    For example

    Col. A(meanings)...............Column.B(words)
    m1..................................w1
    m2..................................w1
    m2..................................w1
    m3..................................w2
    m4;m1.............................w1

    I want to remove the duplicate words in Column B and merge their meanings.
    The new wordlist should be then in Col. D and the merged meanings in Col.E:


    Result should be:
    Col. D...........................Col. E
    w1...............................m1;m2;m4
    w2...............................m3

    I have a code for this problem but unfotunately it allows duplicates in E. I will be very thankful if some could help me out with that. I want the code not to allow duplicates in column E.

    Please Login or Register  to view this content.
    Thank you very much in advance for each assistance.
    Attached Files Attached Files
    Last edited by wali; 12-30-2009 at 03:26 AM.

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

    Re: merge wordlist without duplicates

    Hi wali
    This jindon classic may help
    Please Login or Register  to view this content.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

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

    Re: merge wordlist without duplicates

    Hi Pike,
    thank you very much for your help. But unfortunately its still allowing duplicates.

    The code Jindon had written is as fast as the hell. I have even used it for 0.8 Million words and it took a few minutes to process them. The only thing is that this code should not allow duplicates in column E which it doese now.

    I miss Jindon sooooooo much. He has'nt been here for a long time. :-(

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

    Re: merge wordlist without duplicates

    change all the , to ;
    Please Login or Register  to view this content.

  5. #5
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: merge wordlist without duplicates

    Why would a column E duplicate be a problem?

    Wouldn't you expect the two words "color" and "hue" to have the same meanings?
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

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

    Re: merge wordlist without duplicates

    Pike,
    sorry but i dont understand where to make the changes.
    Please Login or Register  to view this content.
    This is identical with old one. Or do you mean something else?


    Dear mikerickson,

    It looks now like follow:

    Col. D.................Col.E
    w1......................m1;m2;m2;m4;m1
    w2......................m3


    now in Col E. m1 and m2 is twice there. One time would be enough. I am verking with very large strings and if one string has many duplicates it breaks down the memory cus the content of one cell gets extrem large.

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

    Re: merge wordlist without duplicates

    you can try
    Please Login or Register  to view this content.

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

    Re: merge wordlist without duplicates

    Thanks a million time pike!! I wish you a nice new year!!

+ 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