+ Reply to Thread
Results 1 to 3 of 3

Retreive Top 5 Results If

  1. #1
    Forum Contributor
    Join Date
    12-03-2009
    Location
    Providence RI
    MS-Off Ver
    Excel 2007, Excel 2010
    Posts
    260

    Retreive Top 5 Results If

    Hello. I have some data (who doesn't) and I need to pull the top 5 rows for specific criteria.For example I may have 100 different rows of data with matching fields in column A. I want to, for example, take the top 5 (basically ranked) rows of data if column A = XYZ and the rank is based on numbers in another column. Then I want to do the same for ZYX next for column A. The values in A are predetermined and only specified values are even looked at. The rank column I just used to show their rank but doesnt exist and I don't know how to do rankif so I kind of just did that by hand partly.

    Hope this makes sense... I attached an example file.
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Retreive Top 5 Results If

    Here's one way..

    Add helper in Data,at H2:

    Please Login or Register  to view this content.
    copied down

    in I2:

    Please Login or Register  to view this content.
    in A2 of Result sheet:

    Please Login or Register  to view this content.
    copied down as far as you need... adjust ranges to suit.

    in F2 of Result sheet:
    Please Login or Register  to view this content.
    confirmed with CTRL+SHIFT+ENTER and copied down

    in B2:
    Please Login or Register  to view this content.

    confirmed with CTRL+SHIFT+ENTER and copied down and across to column E
    Attached Files Attached Files
    Last edited by NBVC; 11-09-2011 at 05:13 PM.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Retreive Top 5 Results If

    One of my formulas above was slightly off (column F)... please look at the new attachment above instead..

+ 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