+ Reply to Thread
Results 1 to 6 of 6

Using LARGE function to get top rankings, but problem with duplicates

  1. #1
    Registered User
    Join Date
    12-17-2008
    Location
    West Virgina
    MS-Off Ver
    Office 365 (2016)
    Posts
    21

    Using LARGE function to get top rankings, but problem with duplicates

    Attached is a sample of my data. I have a list of about 30 names with a ranking number of sorts (we input data to determine rankings based on attendance).

    I'm using a combination of the LARGE function as well as the MATCH / INDEX to report the name (which is to the LEFT of the ranking number). The LARGE function is working as expected, except when there are duplicates it will report only the first name twice. In this sample, you can see two people happen to have a rank of 33 but only the first name is reported.

    Is there any formula or array I can use to get around this? Some other way to get the correct names with the rankings? Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,936

    Re: Using LARGE function to get top rankings, but problem with duplicates

    One quick and easy way would be to use a helper column to unique rank the rankings you manually enter. Depending on your criteria for doing that you may be able to calculate that as a unique rank too.

    In the attached I've used the below formula in M3 and copied down.
    =RANK(C3,$C$3:$C$30)+COUNTIF(C$3:C3,C3)-1

    I've then uses a simple INDEX/MATCH with ROWS to increment the numbers rather than having to amend each formula to suit. So this in K3 and copied down:
    =INDEX(B:B,MATCH(ROWS(A$1:A1),M:M,0))

    The addition of the COUNTIF section of the first formula will ensure a unique rank and that means no duplicates in the lookup table.

    BSB
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    12-17-2008
    Location
    West Virgina
    MS-Off Ver
    Office 365 (2016)
    Posts
    21

    Re: Using LARGE function to get top rankings, but problem with duplicates

    This did exactly what I needed it to! (I had to tweak it a bit as my actual data had slightly different columns, but this is EXACTLY what I wanted!) Thank you so very much!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,695

    Re: Using LARGE function to get top rankings, but problem with duplicates

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,936

    Re: Using LARGE function to get top rankings, but problem with duplicates

    Glad I could help

    BSB

  6. #6
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Using LARGE function to get top rankings, but problem with duplicates

    Without the extra helper column that BSB has added,
    E3 and fill down (almost the same as your existing formula, but you don't have to change each one manually, as BSB pointed out).
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    F3 and fill down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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 Tables to analyze large survey rankings
    By kellykate2 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 03-25-2016, 05:43 PM
  2. [SOLVED] Problem Using LARGE formula with Index/Match to pull values when there are Duplicates
    By BDavis in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-11-2014, 02:23 PM
  3. LARGE Function and Duplicates
    By andrewc in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-28-2013, 09:46 AM
  4. Problem with duplicates when using LARGE() to create a pie graph of top 5
    By kyle0629 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-18-2013, 09:13 PM
  5. Using Large Function & Pulling Adjacent Data (Problem With Duplicates)
    By demonfly100 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-28-2013, 05:24 AM
  6. using large function with duplicates
    By merlyn45 in forum Excel General
    Replies: 10
    Last Post: 10-18-2012, 02:03 PM
  7. using large function with duplicates
    By merlyn45 in forum Excel General
    Replies: 2
    Last Post: 10-10-2012, 05:30 PM

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