+ Reply to Thread
Results 1 to 15 of 15

Trying to find the most common word in a very large list

  1. #1
    Registered User
    Join Date
    07-10-2012
    Location
    Verenigde Staten
    MS-Off Ver
    Excel 2010
    Posts
    11

    Trying to find the most common word in a very large list

    So I have a worksheet with 100+ entries, each of which have from 20-1000 characters, usually <100 words. My goal is to get a list of most common words in these entries and how commonly they are used.

    so far my code looks like this:
    Please Login or Register  to view this content.
    it works okay for a few entries but any more than 8 entries and it breaks. It gives me "Run-time error 1004: application-defined or object-defined error". Any help would be much appreciated.
    Last edited by JBeaucaire; 07-10-2012 at 08:19 AM. Reason: added code tags as per forum rules, don't forget next time. Thanks.

  2. #2
    Forum Contributor
    Join Date
    01-20-2012
    Location
    Amsterdam, The Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    186

    Re: Trying to find the most common word in a very large list

    This should help you along the way:

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,675

    Re: Trying to find the most common word in a very large list

    try
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    07-10-2012
    Location
    Verenigde Staten
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Trying to find the most common word in a very large list

    rkey, there are more than one word in each cell, there are full sentences and such in each cell.

  5. #5
    Registered User
    Join Date
    07-10-2012
    Location
    Verenigde Staten
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Trying to find the most common word in a very large list

    Jindon, that works great for the b2 to b9 region, once I take out the clear contents line but it still gives me the same error when i try to expand to include b10 or more.

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,675

    Re: Trying to find the most common word in a very large list

    Quote Originally Posted by Flying_Dutchman View Post
    Jindon, that works great for the b2 to b9 region, once I take out the clear contents line but it still gives me the same error when i try to expand to include b10 or more.
    I can not replicate the error.

    Can you upload the file with the dummy data?

  7. #7
    Registered User
    Join Date
    07-10-2012
    Location
    Verenigde Staten
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Trying to find the most common word in a very large list

    Sure, though be warned this is in Dutch, though that shouldn't have much effect on the program.
    Attached Files Attached Files
    Last edited by Flying_Dutchman; 07-10-2012 at 10:13 AM.

  8. #8
    Registered User
    Join Date
    07-10-2012
    Location
    Verenigde Staten
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Trying to find the most common word in a very large list

    there's something about cell b10 that throws off both of our programs. If I remove cell b10 it works fine.

  9. #9
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,675

    Re: Trying to find the most common word in a very large list

    The problem is


    ==========

    Excel recognize it as equal sign.

    try
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    07-10-2012
    Location
    Verenigde Staten
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Trying to find the most common word in a very large list

    Hey, that's awesome, it works really well and even expands to a larger sample until it encounters this cell:

    "#001 - Vraag klant: na het ontkalkingsprocedure blijft het lampje branden. - Oplossing/gegeven advies: er staat in fout in de dfu omtrent het ontkalken. - Extra informatie: ik stuur klant per email link toe van de juiste ontkalkingsprocedure. PHILIPS Geachte heer Schönberger, U zou kunnen proberen om het apparaat te ontkalken, zoals op de link te vinden is: https://www.p4c.philips.com/cgi-bin/...1887&faqview=1 Philips staat voor Sense and Simplicity, ik hoop dat mijn antwoord u een oplossing heeft geboden. Mocht u verder nog vragen of opmerkingen hebben, aarzel dan niet om contact met ons op te nemen onde...(more)"

    any ideas?

  11. #11
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,675

    Re: Trying to find the most common word in a very large list

    I don't get any error...
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    07-10-2012
    Location
    Verenigde Staten
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Trying to find the most common word in a very large list

    yeah, because that cell comes from another sample, which works great except for that one cell.

  13. #13
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,675

    Re: Trying to find the most common word in a very large list

    OK

    I pasted it in B2
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    07-10-2012
    Location
    Verenigde Staten
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Trying to find the most common word in a very large list

    hmmm, weird because it was giving me an error before. Well thanks for all the help.

  15. #15
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,675

    Re: Trying to find the most common word in a very large list

    OK,

    If you find any bugs, just post back.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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