+ Reply to Thread
Results 1 to 2 of 2

Find specific Text/Value with most Occurences in a Sentence inside a single Cell

  1. #1
    Registered User
    Join Date
    04-11-2013
    Location
    RC
    MS-Off Ver
    Excel 2007
    Posts
    10

    Find specific Text/Value with most Occurences in a Sentence inside a single Cell

    Hi,

    So there are formulas out there that enable us to find "how many of a certain text occurs within a range or even a single cell":

    An array:

    {=SUM(LEN(<range>)-LEN(SUBSTITUTE(<range>,"actual text or cell containing text","")))/LEN("actual text or cell containing text")}

    Is there a formula however, that enables us to find "what text occurs most frequently within a range or single cell"?

    Example:

    Find the string with the most occurences in this range:

    Column A (Ranges A1:A4):

    People love Disneyland because they love their characters.
    My kid loves playing in Tommorowland.
    Love is patient, love is kind.
    Mickey and Minne have found true love.


    Using the array formula above, I can tell the # of times the word "love" is used in the range of cells.

    {=SUM(LEN(A1:A4)-LEN(SUBSTITUTE(A1:A4,"love","")))/LEN("love")}

    (Unfortunately, the formula above doesn't recognize the text "love" if it's not an exact match i.e. uppercase ("Love") or ("love." or "loves") so it only returns 3 instead of 6; but that's another story - unless of course someone here may know how to get around this ).

    My question is, is there a formula that would be able to give me an output that tells me that "love" is the most used text/value in this range of cells?

    Any info would be real helpful, thank you.
    Last edited by WITJ; 06-04-2013 at 02:13 PM.

  2. #2
    Registered User
    Join Date
    05-23-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    36

    Re: Find specific Text/Value with most Occurences in a Sentence inside a single Cell

    convert the strings to upper before searching, and then search for "LOVE"

    As for the main question I'm not sure

+ 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