+ Reply to Thread
Results 1 to 5 of 5

Bring Back Most Frequently Used Word in a Column

  1. #1
    Registered User
    Join Date
    10-10-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    69

    Bring Back Most Frequently Used Word in a Column

    Hi there,

    I have sentences in column A that contain many words separated by spaces. What I want is a table that tells me what the most frequently used word was in that column followed by the second most frequently used word and so on.

    I have this array formula:

    {=INDEX(A1:A1000,MODE(MATCH(A1:A1000,A1:A1000,0)))}

    that does it for the whole cell value but I want to count words, and there might be multiple words in each cell. Thank you for your help it is much appreciated

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Bring Back Most Frequently Used Word in a Column

    first you need to this ( i don't know how it is in english
    ss.jpg

  3. #3
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Bring Back Most Frequently Used Word in a Column

    Hi.

    You'd first need to confirm a definitive list of all punctuation that may be present within any of the strings in that column.

    This is because, in order to give correct results, any solution must use an appropriate delimiter: we would not, for example, want "human" to be included in a count for "man" simply because it contains the string "man". As such, the usual way to approach this task is to search for the string " man " (i.e. with a space at either end), which would guarantee that such cases as above are ruled out.

    Of course, punctuation presents a potential obstacle to this set-up. Searching for " man " would fail to count cases such as "The man's hat", "Is that a man?", "Woman (to the man)" or "Man! What a day!", for example.

    If you could provide that definitive list then we can account for such possibilities. Of course, we could first devise a set-up in which all possible punctuation marks are first eliminated, though obviously this would be a touch overkill, and make any potential solution far more complex (not to mention resource-heavy) than necessary.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  4. #4
    Registered User
    Join Date
    10-10-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    69

    Re: Bring Back Most Frequently Used Word in a Column

    Hi XOR LX,

    Thanks for your response. The task is a bit simpler than some of the potential obstacles you suggested. All the words are separated by spaces. The words are common keywords of sorts so there is no need to take away punctuation or anything fancy like that e.g. it will always be dog not dogs or dog! etc.

    Thanks,

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Bring Back Most Frequently Used Word in a Column

    There's a workbook at https://app.box.com/s/fkowtna5k76pp804tiqe that will do this:

    Row\Col
    A
    B
    C
    1
    Unique
    Output List
    Total
    2
    406
    987
    3
    #
    Word
    Freq
    4
    1
    to
    25
    5
    2
    in
    24
    6
    3
    reply
    21
    7
    4
    a
    20
    8
    5
    this
    18
    9
    6
    is
    16
    10
    7
    the
    15
    11
    8
    Excel
    14
    12
    9
    back
    13
    13
    10
    forum
    13
    14
    11
    bring
    12
    15
    12
    column
    12
    16
    13
    post
    12
    17
    14
    Quote
    12
    18
    15
    are
    11
    19
    16
    that
    11
    20
    17
    thread
    11
    21
    18
    by
    10
    22
    19
    for
    10
    23
    20
    with
    9
    24
    21
    word
    9
    25
    22
    you
    9
    26
    23
    frequently
    8
    27
    24
    message
    8
    28
    25
    most
    8
    29
    26
    Off
    8
    30
    27
    Quick
    8
    31
    28
    used
    8
    32
    29
    and
    7
    33
    30
    man
    7
    34
    31
    of
    7
    35
    32
    replies
    7
    36
    33
    i
    6
    37
    34
    or
    6
    38
    35
    Add
    5
    39
    36
    all
    5


    That's a portion of the histogram of the words on this page (before I posted). I did Ctrl+A, Ctrl+C, and pressed the Input button on the sheet, and that's it.
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Array Formula Lookup - Bring back Lowest Date + Bring Back Cell Location
    By Matt1998 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-04-2014, 12:08 PM
  2. [SOLVED] Stop Vlookup bringing back 0's or #REF! and bring back blanks instead
    By Carling73 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-30-2013, 04:43 PM
  3. [SOLVED] Bring back a name in one column based on criteria in 2 other columns
    By BillDoor in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-22-2013, 08:07 AM
  4. Replies: 0
    Last Post: 01-29-2013, 01:46 PM
  5. Replies: 3
    Last Post: 12-18-2012, 07:19 PM

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