+ Reply to Thread
Results 1 to 3 of 3

Finding the most common (and 2nd, 3rd most common) text

  1. #1
    Registered User
    Join Date
    11-23-2006
    Posts
    1

    Finding the most common (and 2nd, 3rd most common) text

    I have a row of text data. e.g.

    Apple Pear Apple Cheese Banana Apple Apple Cheese

    I'd like to be able to calculate the most common data occurrence ("Apple"),
    2nd most common ("Cheese") and 3rd, etc.

    Having done this, I'd then like to count the number of occurences. I do this at the moment, but with a manually identified "leaderboard".

    Thanks in advance.

    SG

  2. #2
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    Hi SG

    Have you considered using a Pivot Table? Pivot Tables were designed just for this sort of problem :-D

  3. #3
    Valued Forum Contributor
    Join Date
    07-11-2004
    Posts
    851
    assume your row of text is in cells a1:z1

    create a column of the unique text somewhere - say a3:a10
    you could do this by copyimg the row of text to a column somewhere (paste special, transpose) and then filter, advanced, unique records

    in b3(adjacent to first entry in column of unique text)

    =sumproduct((b3=a$1:z$1)*1) and copy this down next to your unique

    in cell c3 = rank(b3,b$3:b$10) (adjust row 10 for length of your column of text
    not a professional, just trying to assist.....

+ 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