+ Reply to Thread
Results 1 to 7 of 7

Identifying most common word in a list

  1. #1
    Registered User
    Join Date
    09-01-2012
    Location
    Texas, USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Identifying most common word in a list

    Hi, I am trying to write a formula (in Col C & D) which can be used to select the most commonly/highly used word in Col B for each unique value in col A.

    Column A Column B Column C Column D
    TOA Apple TOA Apple
    TOA Apple
    TOA Apple
    TOA Banana
    TOA Grapes
    TOB Orange TOB Orange
    TOB Peach
    TOB Orange

    Any help is really appreciated, Thank you!!
    Last edited by Richard Buttrey; 09-01-2012 at 07:16 PM. Reason: Thread title not adequate

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Looking for help to write a formula

    Welcome to the forum,

    Unfortunately your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.



    Poor titles are less likely to get your post answered.

    Since this is your first post I'll change the title for you on this occasion but please note for future posts.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

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

    Re: Identifying most common word in a list

    In D1,

    =INDEX($B$1:$B$8, MODE(IF(($A$1:$A$8 = C6) * ($B$1:$B$8<>""), MATCH($B$1:$B$8, $B$1:$B$8, 0))))

    Paste the formula in the formula bar, press and hold the Ctrl and Shift keys, then press Enter.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    09-01-2012
    Location
    Texas, USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Identifying most common word in a list

    Thanks for your quick response. For some reason It doesn't work, please have a look at the attached screenshot.

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

    Re: Identifying most common word in a list

    It does work; the formula MUST be confirmeed with Ctrl+Shift+Enter, not just Enter.

    Try again, and post a workbook rather than a picture if you still have problems.

  6. #6
    Registered User
    Join Date
    09-01-2012
    Location
    Texas, USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Identifying most common word in a list

    I have tried this again, still it doesn't work... I am attaching the workbook. Thanks.
    Attached Files Attached Files

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Identifying most common word in a list

    As shg says, you haven't confirmed with CTRL+SHIFT+ENTER

    I think the formula needs a tweak anyway, I put this version in D1

    =IF(C1="","",INDEX($B$1:$B$8, MODE(IF(($A$1:$A$8 =C1) * ($B$1:$B$8<>""), MATCH($B$1:$B$8, $B$1:$B$8, 0)))))

    then I selected D1, pressed F2 to select formula then held down CTRL+SHIFT keys while pressing enter. Curly braces like { and } appeared around the formula

    I copied formula down and got results attached
    Attached Files Attached Files
    Audere est facere

+ 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