+ Reply to Thread
Results 1 to 3 of 3

Formula to find most common used text

Hybrid View

  1. #1
    Registered User
    Join Date
    09-06-2016
    Location
    Brisbane, Australia
    MS-Off Ver
    2010
    Posts
    14

    Formula to find most common used text

    Hi,

    I'm wondering if someone can help me with an excel function I'm trying to work out for the below scenario:

    Column A Column D
    QLD Book shelf
    QLD Book shelf
    NSW Chair
    QLD Pen
    QLD Table

    If I want to know the most common used word in Column D that is associated with 'QLD' in column A, how might I find this out? I know from looking at this basic list the most common used word in Column D for QLD is 'Book shelf' but in real life I'm working with an excel sheet that contains hundreds of lines with different data for QLD.

    Thanks
    Tamara

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2405
    Posts
    13,424

    Re: Formula to find most common used text

    Try array-entering this formula as in D1 below.
    Formula: copy to clipboard
    =INDEX($B$1:$B$20,MIN(IF(MAX(COUNTIFS($A$1:$A$20,"QLD",$B$1:$B$20,$B$1:$B$20))=COUNTIFS($A$1:$A$20,"QLD",$B$1:$B$20,$B$1:$B$20),ROW($A$1:$A$20))))
    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.



    A
    B
    C
    D
    1
    QLD
    Book shelf
    Book shelf
    2
    QLD
    Book shelf
    3
    NSW
    Chair
    4
    QLD
    Pen
    5
    QLD
    Table
    6
    Last edited by FlameRetired; 09-06-2016 at 03:06 AM.
    Dave

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2405
    Posts
    13,424

    Re: Formula to find most common used text

    Although since you have Excel 2010 try this formula instead. It does not have to be array-entered.
    Formula: copy to clipboard
    =INDEX($B$1:$B$20,AGGREGATE(14,6,COUNTIFS($A$1:$A$20,"QLD",$B$1:$B$20,$B$1:$B$20)/($A$1:$A$20="QLD"),1))

+ 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. [SOLVED] Create text file based off of common text in column A with data in columns B-F
    By BG1983 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-14-2016, 12:47 PM
  2. Formula that displays most common text string in column
    By cinque in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-18-2014, 10:06 PM
  3. Return most common text from column cells with formula while ignoring blanks
    By rosco01995 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-29-2014, 03:55 AM
  4. Replies: 3
    Last Post: 03-04-2014, 01:47 PM
  5. Find Common Text Value accross Multiple Pages OR in a large table.
    By dhpeter83 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-11-2013, 03:09 PM
  6. Replies: 0
    Last Post: 09-05-2012, 10:11 AM
  7. Finding the most common (and 2nd, 3rd most common) text
    By sprite_green in forum Excel General
    Replies: 2
    Last Post: 11-23-2006, 11:56 AM

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