Unique word count from free text

  • Long time reader, first time poster :)


    What I am trying to achieve is a word cloud visualisation of customer feedback from survey data that is exported in .csv. I found this to achieve the word cloud: http://chandoo.org/wp/2008/04/…louds-in-excel-using-vba/


    So what I need to get is a count of the various words in the survey data to get that to work.


    What I have is a file with many hundreds of cells with various lengths and numbers of sentences in individual cells. Using text to columns I could get thousands of cells across a worksheet with individual words but I dont know how to get that in to something usable for the above script.


    Thanks for any help
    Steve

  • Re: Unique word count from free text


    Hi stevewhat,
    Nice to meet you.
    Add sheets "TextData" which has free data then.


    Regards, junho

  • Re: Unique word count from free text


    Thanks so much for helping junho! I am a complete n00b with VB so please bare with me :)


    Ive implemented your script but when trying to run it I get this error: Runtime error '13': Type mismatch on this line:
    rCell(1).Resize(dic.Count) = .Transpose(dic.Keys)


    What have I done wrong?

  • Re: Unique word count from free text


    Hi stevewhat,
    Try change

    Code
    rCell(1).Resize(dic.Count) = .Transpose(dic.Keys)


    to

    Code
    rCell(1).Resize(dic.Count).Value = .Transpose(dic.Keys)


    Regards, junho

Participate now!

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