+ Reply to Thread
Results 1 to 6 of 6

Most frequent text (not number) within a very large matrix not a single row or column

  1. #1
    Registered User
    Join Date
    11-06-2016
    Location
    Denver
    MS-Off Ver
    2010
    Posts
    4

    Most frequent text (not number) within a very large matrix not a single row or column

    I have a bunch of names in rows 36:98, although there are also a lot of blanks and "X" as well which I would like to skip.

    I want to find the top 3 occurring names within that range and how many time each occurs?

    I have searched and searched and cannot figure out a solution. I would like to do this without VBA.

    Thanks in advance for any help!

    Lee

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Most frequent text (not number) within a very large matrix not a single row or column

    Are they all in one column or multiple?

    I recommend uploading a small representative sample of your data along with the desired results (which you can enter manually) based on that data.

    To upload an Excel workbook, follow these steps:
    1) Click on "Go Advanced"
    2) Click on "Manage Attachments"
    3) Click on "Choose File"
    4) Choose your file and click on "Open"
    5) Click on "Upload"
    6) Click on "Close this window"

  3. #3
    Registered User
    Join Date
    11-06-2016
    Location
    Denver
    MS-Off Ver
    2010
    Posts
    4

    Re: Most frequent text (not number) within a very large matrix not a single row or column

    I basically want the most frequent names from $B$39:$IQ$98 ignoring blanks and "X" values
    I could make all of the "X" values blank if it would help.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    11-06-2016
    Location
    Denver
    MS-Off Ver
    2010
    Posts
    4

    Re: Most frequent text (not number) within a very large matrix not a single row or column

    I have since gotten rid of all the columns of x’s so now it’s just the blue columns that exist so I no longer need to ignore the value “X”

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,546

    Re: Most frequent text (not number) within a very large matrix not a single row or column

    This proposal is a two step approach.
    1a. Make a list of distinct names using*:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    *Denotes an array entered formula which needs to be activated by holding the Ctrl and Shift keys while pressing the Enter key. The formula needs to be activated before it is copied.
    1b. Count the occurrences of the names using: =IF(A2="","",SUMPRODUCT(--(INPUT1920!B$39:F$98=A2)))
    2. Make a pivot table that displays the top 3 occurring names.
    Note that in the attached file more than 3 names are shown because 18 names occur twice (18 ties for second most occurrence)
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  6. #6
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: Most frequent text (not number) within a very large matrix not a single row or column

    If you allow to use many of helper cells >_<.

    This file may be fit your requirement.

    Note : Answer from your sample is : AVS - MACKINNON

    Concept of calculation.

    Combind all text together with TEXTJOIN (auto skip blank cell)
    Remove X, from combind text.

    ** I use INDIRECT function in this file , but you may override it by change this formula.
    B3
    Please Login or Register  to view this content.
    To
    Please Login or Register  to view this content.
    Then repeat the following process
    Find 1st word before ,
    C10
    Please Login or Register  to view this content.
    Subsitute found text from combind text
    B11
    Please Login or Register  to view this content.
    The rest is just count and find 1st max count text.


    Regards.
    Attached Files Attached Files
    Last edited by menem; 10-20-2019 at 05:39 AM. Reason: Add code tags

+ 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. Find most frequent word on matrix
    By greatdragon in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-03-2019, 10:00 AM
  2. [SOLVED] How to count the most frequent number in a Column
    By Nickmsi in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-17-2019, 04:40 AM
  3. [SOLVED] Return top 5 most frequent text strings from a column
    By SHUTTEHFACE in forum Excel General
    Replies: 8
    Last Post: 10-08-2014, 04:41 PM
  4. Check most frequent number in 1 column that has 4 digits number
    By Merson78 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 06-07-2014, 10:57 PM
  5. Replies: 3
    Last Post: 03-20-2012, 09:53 PM
  6. Matrix to single column
    By chris.veinot in forum Excel General
    Replies: 4
    Last Post: 07-16-2010, 09:10 AM
  7. Changing a matrix into one large column
    By jeroen2 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-26-2006, 03:57 PM

Tags for this Thread

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