+ Reply to Thread
Results 1 to 2 of 2

find most commonly occuring string values with a single formula

  1. #1
    Registered User
    Join Date
    02-20-2013
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    5

    find most commonly occuring string values with a single formula

    Hi all, just joined the forum,

    I have a formula that calculates the most common value from a long column of string values.

    =INDEX('The List'!C$2:C$4999,MATCH(MAX(COUNTIF('The List'!C$2:C$4999,'The List'!C$2:C$4999)),COUNTIF('The List'!C$2:C$4999,'The List'!C$2:C$4999),0))

    In the adjacent cell I have a simple COUNTIF formula that adds up the number of these like this:

    =COUNTIF('The List'!C:C,B16)

    - so far, so good, the result is:

    (most common value) | 670

    But, what I'd like to be able to report is a top five, e.g


    (most common value) | 670
    (second most common value) | 554
    (third most common value) | 501

    etc.


    Ideally I'd like to do this with a single formula for each calculation rather than have a bunch of cells used to do the calculations, as this needs to be adaptable by other users who will have even less understanding of Excel than I do!

    Thanks

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,939

    Re: find most commonly occuring string values with a single formula

    Use LARGE function instead of MAX

+ 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