+ Reply to Thread
Results 1 to 8 of 8

remove duplicates (paternel; paternel {m.}; ancestral => paternel {m.}; ancestral)

  1. #1
    Forum Contributor
    Join Date
    12-12-2007
    Location
    Germany
    MS-Off Ver
    MS Office 2007 on Windows 10 (German Version)
    Posts
    105

    remove duplicates (paternel; paternel {m.}; ancestral => paternel {m.}; ancestral)

    Hi,

    i have dictionary data which contains duplicates. The seperators are "," or ";" and numbers with dot like "1. ", " 2. "...
    Here is an example of how my data looks like:

    Column D.
    famille paternelle; famille paternelle {f.}
    paternel; paternel {m.}; ancestral
    début, commencement {m.}, commencement
    primaire {adj. et n.}; primaire {m.}; initial; élémentaire; primaire
    inquiet; perplexe; soucieux; inquiet {adj. et n.}

    Now sometimes there is the same word two or more times there. I need to delete those duplicates which are not followed by "{...}". I would like to copy the whole content of Column D to F and then let the duplicates remove by a macro in F. The result should then look like as follows:

    Column F
    famille paternelle {f.}
    paternel {m.}; ancestral
    début, commencement {m.}
    primaire {adj. et n.}; primaire {m.}; initial; élémentaire
    perplexe; soucieux; inquiet {adj. et n.}


    I will be very thankful for each kind of help.

    P.S. I am attaching an example file with few rows but the original one contains over 40000 rows.
    Attached Files Attached Files
    Last edited by julia81; 09-12-2012 at 01:28 AM.

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: remove duplicates (paternel; paternel {m.}; ancestral => paternel {m.}; ancestral)

    For row 4 début, commencement {m.}, commencement, won't that be semicolon instead of comma? If the answer yes, it can probably be done via VBA.

  3. #3
    Forum Contributor
    Join Date
    12-12-2007
    Location
    Germany
    MS-Off Ver
    MS Office 2007 on Windows 10 (German Version)
    Posts
    105

    Re: remove duplicates (paternel; paternel {m.}; ancestral => paternel {m.}; ancestral)

    Hi JieJenn,
    the seperator is sometimes "," and sometimes ";". Semicolon is used for those meanings which really differ from each other and comma is used for synonyms of the same meaning.

  4. #4
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: remove duplicates (paternel; paternel {m.}; ancestral => paternel {m.}; ancestral)

    Can't figure a solution. I hope someone else can come up with something. I would like to see how to solve the problem as well.

  5. #5
    Forum Contributor
    Join Date
    12-12-2007
    Location
    Germany
    MS-Off Ver
    MS Office 2007 on Windows 10 (German Version)
    Posts
    105

    Re: remove duplicates (paternel; paternel {m.}; ancestral => paternel {m.}; ancestral)

    Can anyone help?

  6. #6
    Forum Contributor
    Join Date
    12-12-2007
    Location
    Germany
    MS-Off Ver
    MS Office 2007 on Windows 10 (German Version)
    Posts
    105

    Re: remove duplicates (paternel; paternel {m.}; ancestral => paternel {m.}; ancestral)

    I can live with it even if I could get code which works with one seperator!

  7. #7
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: remove duplicates (paternel; paternel {m.}; ancestral => paternel {m.}; ancestral)

    Hi Julia. Try this option. This works if there are no symbols "1.", "2." ... in the original string.
    Can you show more options of writing the text with numbers?
    Please Login or Register  to view this content.
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    12-12-2007
    Location
    Germany
    MS-Off Ver
    MS Office 2007 on Windows 10 (German Version)
    Posts
    105

    Re: remove duplicates (paternel; paternel {m.}; ancestral => paternel {m.}; ancestral)

    Hi nilem,

    thank you very much. It worked for me very well.
    To solve the problem with number, I replaced "1." to "1.;" and " 2." to "; 2.;".... Then i ran your code and after the duplicates were deleted, I reversed the replacement of numbers.
    Thanks alot. It was a great help.

+ 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