+ Reply to Thread
Results 1 to 4 of 4

Help with displaying values corresponding to top 5 records from a table

  1. #1
    Registered User
    Join Date
    11-13-2013
    Location
    UK
    MS-Off Ver
    Office 2011 for Mac
    Posts
    3

    Help with displaying values corresponding to top 5 records from a table

    Hi there, I am looking to do something whereby if these are my values:

    A B
    red 0
    blue 5
    yellow 4
    orange 2
    green 1
    purple 1
    black 0
    pink 4

    I want to have display somewhere else the results like this:

    1. blue
    2. yellow
    3. pink
    4. orange
    5. green

    I'm not sure how to do this though, please help?

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Help with displaying values corresponding to top 5 records from a table

    welcome to the forum, slushman. assuming data in A1:B8, try this array formula in D1:
    =IFERROR(INDEX($A$1:$A$8,MATCH(LARGE($B$1:$B$8-ROW($B$1:$B$8)/1000,ROWS(D$1:D1)),$B$1:$B$8-ROW($B$1:$B$8)/1000,0)),"")

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    11-13-2013
    Location
    UK
    MS-Off Ver
    Office 2011 for Mac
    Posts
    3

    Re: Help with displaying values corresponding to top 5 records from a table

    Hi

    Thank You for the reply, I have tried this, though my original data is on a much larger range and I'm trying to generate the results on another Excel tab other than the one the data is on.

    The results I am trying to display are on a tab called Feedback and the raw data is on a tab called Scores, the data range is - numerical values AD10:AD57 and the categories I want to display are on B10:B57, so I have written the formula as follows:

    =IFERROR(INDEX(Scores!$B$10:$B$57,MATCH(LARGE(Scores!$AD$10:$AD$57-ROW(Scores!$AD$10:$AD$57)/1000,ROWS(B$44:b44)),Scores!$AD$10:$AD$57-ROW(Scores!$AD$10:$AD$57)/1000,0)),"")

    This has worked for the top value, how do I amend this to display the second most popular, 3rd, 4th and so on?

  4. #4
    Registered User
    Join Date
    11-13-2013
    Location
    UK
    MS-Off Ver
    Office 2011 for Mac
    Posts
    3

    Re: Help with displaying values corresponding to top 5 records from a table

    Thanks for your help I've figured the rest out

+ 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. Pivot table, to get number of records with values (>0)
    By andy.k in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-03-2013, 03:18 AM
  2. Replies: 4
    Last Post: 10-05-2012, 03:06 PM
  3. Displaying more "Values" in pivot table
    By amirs318 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-28-2008, 06:44 PM
  4. Replies: 0
    Last Post: 03-10-2006, 12:23 PM

Tags for this Thread

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