+ Reply to Thread
Results 1 to 4 of 4

Ignoring common word

  1. #1
    Registered User
    Join Date
    10-31-2007
    Posts
    5

    Ignoring common word

    i have a word document . i have to use excel to open the document and then print the frequency of each word in the document . But the problem is we do not have to print the freqency of some common words like 'if', 'that' ','the' etc. These words on the ignore list will be entered by the user in another sheet or maybe an input box. Let say that the maximum words on ignore list is 20 . then how do we print the frequency of each word in the word document leaving the words on the ignore list,ie common words like 'if', 'that' ','the' are not reflected on the excel sheet? What is the command needed?

    thanx

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    It kind of depends on how you build your word list.

    A way, I guess, would be to read each word from the Word doc, and do an insertion sort into the list of words read so far, and if already present, bump its histogram. If you had a list of common words as a named range, then you could test against this list (using Match or Find) before inserting the new word.

  3. #3
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    I've assumed that your list of common words is on sheet2!A:A and you are currently on any other sheet in the workbook.

    Please Login or Register  to view this content.

    rylo

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    A scripting dictionary is a very nice approach, rylo.

+ 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