Closed Thread
Results 1 to 6 of 6

Word List and Count from a string

  1. #1
    Registered User
    Join Date
    09-28-2008
    Location
    Katy, TX
    Posts
    59

    Word List and Count from a string

    I'm about to go crazy figuring this out and was hoping someone might be able to help with my situation.

    I want to take a string which is a list of words and compile a list of the words listed and how many times each one is listed.

    For Example, for the string "word1, word2 word1, word3 word2"

    I want to get the following calculations:

    word1 = 2
    word2 = 2
    word3 = 1

    Thanks for everyone's help.

    g

  2. #2
    Valued Forum Contributor
    Join Date
    08-26-2008
    Location
    singapore
    Posts
    626
    Try pivot table
    I think it's the easiest way
    I need your support to add reputations if my solution works.


  3. #3
    Forum Contributor snasui's Avatar
    Join Date
    07-15-2007
    Location
    Songkhla, Thailand
    MS-Off Ver
    2010, 365
    Posts
    167
    Supposing A1:A10 is range of strings.
    C1:C3 is Word1, Word2 and Word3 respectively.
    D1
    Please Login or Register  to view this content.
    Copy down.

    Hope this helps.

  4. #4
    Registered User
    Join Date
    09-28-2008
    Location
    Katy, TX
    Posts
    59
    Quote Originally Posted by snasui View Post
    Supposing A1:A10 is range of strings.
    C1:C3 is Word1, Word2 and Word3 respectively.
    D1
    Please Login or Register  to view this content.
    Thanks for everyone's help. This worked great to calculate the number of times the word repeated.

    Now how can I have the word list built dynamically form the string? In other words, I want a list containing each word the appears on the string, but I want it to be listed only once?

    Thanks,

    g

  5. #5
    Registered User
    Join Date
    09-28-2008
    Location
    Katy, TX
    Posts
    59
    How do you make this thread as solved?

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Click the Edit button on your first post in the thread

    Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes

    If more than two days have elapsed since your first post, ask a moderator to mark it.
    Entia non sunt multiplicanda sine necessitate

Closed 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