+ Reply to Thread
Results 1 to 7 of 7

Finding the Greatest Number

  1. #1
    Registered User
    Join Date
    12-20-2010
    Location
    Cambridge, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    89

    Finding the Greatest Number

    Hello!
    I know you guys 'n gals are smart as whips!
    I'm trying to get a formula to extract the top 5 highest numbers in a column.

    In A1 to A9000 there are names and in B1 to B9000 are the numbers of times these names show up off of a different work sheet.

    I need a formula in C1 to pick out the top five numbers from the B column and display them in C2,C3,C4,C5 and C6 along with the name, if possible.

    These numbers range from 0 - 1000.

    Any help would be greatly appreciated!
    Attached Files Attached Files
    Last edited by HHR; 12-30-2010 at 11:10 AM.

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

    Re: Finding the Greatest Number

    For your example you could use this formula in D2 copied down

    =LARGE(B$2:B$12,ROWS(D$2:D2))

    and then in C2

    =INDEX(A$2:A$12,SMALL(IF(B$2:B$12=D2,ROW(B$2:B$12)-ROW(B$2)+1),COUNTIF(D$2:D2,D2)))

    confirmed with CTRL+SHIFT+ENTER and copied down

    That will cope with ties
    Audere est facere

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Finding the Greatest Number

    For future ref. you could also use a "Top n" based Pivot Table but that would require a Refresh as and when the source data updated (or use of VBA)
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    12-20-2010
    Location
    Cambridge, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    89

    Re: Finding the Greatest Number

    It worked well for the D column but not C

    Please see attached.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-20-2010
    Location
    Cambridge, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    89

    Re: Finding the Greatest Number

    DonkeyOte - Pivot tables work great, when you're Excel-literate! Thanks for the input! Appreciated!

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Finding the Greatest Number

    you havent entered it as an array as instructed
    see link in my signature "how to enter array formula"
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  7. #7
    Registered User
    Join Date
    12-20-2010
    Location
    Cambridge, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    89

    Re: Finding the Greatest Number

    Quote Originally Posted by martindwilson View Post
    you havent entered it as an array as instructed
    see link in my signature "how to enter array formula"

    It worked!!!!!

    YIPPEE!!!

    Thank you!! 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