+ Reply to Thread
Results 1 to 7 of 7

Dictionary Data: enhance meanings in column D through column A

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

    Dictionary Data: enhance meanings in column D through column A

    Hello every one,

    i have a wordlist (dictionary Data) which contains of four Columns ABCD (about 70 000 entries in Column A):

    A Words, B Transcription, C Grammar, D Meanings of words in A

    Now some entries in Column D contain of reference to other words in Column A. For example:
    ________________________
    before:
    Col.A (words)...........................Col.D (Meanings)
    W1 .................................... M1, M2, M3
    W2 .................................... M4, W1 °°, M0
    W3 .................................... W1 °°
    W4 .................................... W1 °° (M5)
    W5 .................................... W6 °°, M6, M7
    W6 .................................... M8, M9

    (The example is attached as excel file!)
    _________________________

    Now there are sometimes references to column A in column D instead of meanings. For example if one wants to know the meanig of Word "W3" then he/she should refer to "W1" cus both have the same meanings. The specific property of such refrences is that they are followed by "°°". Now i need a macro which looks the refrenced word in column A and put its corresponding meanings from column D and put them infront as new entry after "°°". According to our example the result would be:

    ________________________
    after running the macro:
    Col.A (words)...........................Col.D (Meanings)
    W1 .................................... M1, M2, M3
    W2 .................................... M4, W1 °°{{M1, M2, M3}}, M0
    W3 .................................... W1 °°{{M1, M2, M3}}
    W4 .................................... W1 °° {{M1, M2, M3}}(M5)
    W5 .................................... W6 °°{{M8, M9}}, M6, M7
    W6 .................................... M8, M9

    _________________________

    I have about 70 000 Words in Column A and a macro would save me alot of time. I thank each help and support in advance.
    Attached Files Attached Files
    Last edited by wali; 07-02-2009 at 03:52 PM. Reason: suggestion from Moderator Shg to change the titel

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: If a string in D contains "W?°°" look for that in Column A and paste in D as {{""

    You have two different versions... W7°° and W6 °°

    Will it be random like that? Some have spaces after the word reference and some do not? Can you clean that up to be consistent?

    Also, with 70,000 entries, then we're also talking about W20000 °° too, right?
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

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

    Re: If a string in D contains "W?°°" look for that in Column A and paste in D as {{""

    dear JBeaucaire,
    first of all thank you very much for your answer.

    1- some times there is space and some times not. But i can clean it up so that we have only entries without space
    2- Yes W20000°° and W70000°° is possible

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: If a string in D contains "W?°°" look for that in Column A and paste in D as {{""

    Wali, please revise your title -- it's impossibly specific.
    Entia non sunt multiplicanda sine necessitate

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

    Re: Dictionary Data: enhance meanings in column D through column A

    Hello dear Shg,
    thank you very much for the suggestion to change the titel. What about the new one? I hope that i will learn to be more precise sometime! :-)
    Last edited by wali; 07-01-2009 at 11:12 PM.

  6. #6
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Dictionary Data: enhance meanings in column D through column A

    Wali, I don't think a lack of precision was the problem! Try this, it seems to do what you want:
    Please Login or Register  to view this content.
    EDIT: this assumes your word refs (eg W1) are two characters so if your actual data are different the code will have to be revised.
    EDIT2: this should overcome the above:
    Please Login or Register  to view this content.
    Last edited by StephenR; 07-02-2009 at 08:17 AM.

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

    Re: Dictionary Data: enhance meanings in column D through column A

    Dear StephenR,
    i needed the second version and it works like butter. Thanks thanks and million thanks

+ 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