+ Reply to Thread
Results 1 to 8 of 8

Most used word in certain cells.

  1. #1
    Registered User
    Join Date
    02-18-2009
    Location
    London UK
    MS-Off Ver
    Excel 2003
    Posts
    8

    Most used word in certain cells.

    Hi

    I’m new to this forum and hope someone can help.

    Basically I’m trying to work out a formula, preferably without using Macro or Java, in Excel to work out which football team is most used in certain cells.

    For example if I wrote the following teams down in separate cells, being....

    Inter Milan
    Inter Milan
    Real Madrid
    Arsenal
    Liverpool

    I would like it to know that Inter Milan was the most used team with 2 hits. Although the only problem I have is I don't want the Formula to contain the teams in it. Because then I'm limited to the teams within that formula.

    Hope that makes sense, and thanks for anyone who replies. Regards
    Last edited by VBA Noob; 02-18-2009 at 09:31 AM.

  2. #2
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Most used word in certain cells.

    How about:
    =INDEX(B2:B38,MATCH(MAX(COUNTIF(B2:B38,B2:B38)),COUNTIF(B2:B38,B2:B38),0))

    entered with Ctrl + shift + enter

    replacing B2:B38 with your column of info

    HTH

  3. #3
    Registered User
    Join Date
    02-18-2009
    Location
    London UK
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Most used word in certain cells.

    Hi

    Thanks for your reply. I've tried changing the cells for the correct ones and it comes back with #N/A

    Quote Originally Posted by Cheeky Charlie View Post
    How about:
    =INDEX(B2:B38,MATCH(MAX(COUNTIF(B2:B38,B2:B38)),COUNTIF(B2:B38,B2:B38),0))

    entered with Ctrl + shift + enter

    replacing B2:B38 with your column of info

    HTH

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Most used word in certain cells.

    this also works and as a non array ,apparently should be preferred! but all cells in range must be used not blank ,normally entered
    =INDEX(A1:A10,MODE(MATCH(A1:A10,A1:A10,0)))

    also array(ctr shift enter) in b2 dragged down will give them in order of most
    =INDEX($A$1:$A$10,MODE(IF(COUNTIF(B$1:B1,$A$1:$A$10)=0,MATCH($A$1:$A$10,$A$1:$A$10,0))))
    both these if there is a = distribution return the first found first
    Last edited by martindwilson; 02-18-2009 at 10:15 AM.

  5. #5
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Most used word in certain cells.

    Are you using ctrl+shift+enter to enter the formula?

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Most used word in certain cells.

    cheekcharlies works fine for me too

  7. #7
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Most used word in certain cells.

    With
    A1:A20 containing various text (some blanks allowed)

    This ARRAY FORMULA, committed with CTRL+SHIFT+ENTER (instead of
    just ENTER) returns the most occurring text:

    Please Login or Register  to view this content.
    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  8. #8
    Registered User
    Join Date
    02-18-2009
    Location
    London UK
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Most used word in certain cells.

    Hi.... stupidly i didn't do the ctrl, alt enter as told to. So it was my fault. Thanks guys for all you're help!!!!!

+ 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