+ Reply to Thread
Results 1 to 5 of 5

Return number with highest frequency count

  1. #1
    Registered User
    Join Date
    02-12-2011
    Location
    Cork
    MS-Off Ver
    Excel 2010
    Posts
    21

    Return number with highest frequency count

    Hello All

    I have 8 numbers as shown below:

    4.977
    4.988
    4.992
    4.991
    4.990
    4.984
    4.939
    4.963

    These numbers (only) appear in a random nature in a column B of a spread sheet. This column can have up to 3000 rows containing a random subset of the above numbers only. What I wish to return is which one of these numbers appears with the greatest frequency. I hope that makes sense.

    Thanks in advance!
    Last edited by Archibald_SM; 05-09-2011 at 06:16 PM.

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Return number with highest frequency count

    Archibald_SM,

    Confirmed with ctrl+shift+enter:

    =INDEX(B1:B3000,MATCH(MAX(COUNTIF(B1:B3000,B1:B3000)),COUNTIF(B1:B3000,B1:B3000),0),)

    Hope that helps,
    ~tigeravatar
    Last edited by tigeravatar; 05-09-2011 at 05:57 PM.

  3. #3
    Registered User
    Join Date
    02-12-2011
    Location
    Cork
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Return number with highest frequency count

    Thanks for the response!! It doesn't appear to work, just returning #N/A ?? I think I see what your doing but can't understand why its not working.

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Return number with highest frequency count

    Archibald_SM,

    The formula is an array formula so it requires that it be entered with ctrl+shift+enter. To do so:

    Copy the formula provided
    Double-click the cell you want to contain the formula
    Paste the formula
    Press ctrl+shift+enter

    Hope that helps,
    ~tigeravatar

  5. #5
    Registered User
    Join Date
    02-12-2011
    Location
    Cork
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Return number with highest frequency count

    Yep you can tell I'm a novice. Worked perfectly. Thank You!!

+ 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