Extract similar words from selected sentences

  • Hi, jindon


    with your code from http://www.ozgrid.com/forum/showthread.php?t=197406 I need exact oposite, I made it with small change of your code and I need to exclude some words like "to, and. it, is....ect)


    same example :


    I am happy and sad
    I am extremely happy
    I am happy
    I am very happy
    I am very very happy


    In all sentences are word happy.
    and in column B need:
    happy
    (not if exist: I, am, are, to, is, it...)


    and if are more words then put all in column B


    Not consider same word, room and rooms. Need only exact word.


    Can you help me?
    Thank you.

  • Re: Extract similar words from selected sentences


    UDF


    Use in cell like


    =GetSimiler(A1:A10,M1:M20)
    where 1 st argument(A1:A10) is the data range and 2 nd argument(M1:M20) is the Exclude word list.

  • Re: Extract similar words from selected sentences


    Thanks so much for code, but the sentences of column have many words that are found in all sentences.
    VBA code, it only lists one word.
    If you can help me that would be great.


    Thank you.

  • Re: Extract similar words from selected sentences


    B2:


    =IFERROR(GetSimilar($A$2:$A$7,$I$2:$I$9,ROW(A1)),"")
    and copy down

  • Re: Extract similar words from selected sentences


    Excellent. Excellent. Superb.
    jindon you are the best of the best.
    Thank you very much.


    I hard tested your UDF, and never missed a word

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!