+ Reply to Thread
Results 1 to 2 of 2

List unique names in order of highest to lowest values

  1. #1
    Registered User
    Join Date
    09-22-2018
    Location
    Australia
    MS-Off Ver
    Excel Professional Plus 2016
    Posts
    1

    List unique names in order of highest to lowest values

    Hi guys,

    I need to create a list in order based on data from somewhere else in the spreadsheet.

    For example, in A1:A3 I have 2, 1, 3 and in B1:B3 I have Adam, John, Peter. I need the names listed in order from highest to lowest. So I need these listed somewhere else as Peter, Adam, John. However, I can't simply sort these data because they're linked elsewhere.

    I used this formula which got me close: {=VLOOKUP(LARGE(A1:A3,1),A1:B3,2,0)}

    This gave me what I wanted, but in the real data I have duplicate numbers. So I need to have a VLOOKUP that lists duplicates. So if Peter and Adam both had values of 3, I need them to list as either Adam, Peter, John or Peter, Adam, John (either way is fine).

    I had this formula somewhere else which didn't use duplicate numbers: =LARGE(IF(C3:C36<>"",IF(MATCH(C3:C36,C3:C36,0)=ROW(C3:C36)-ROW(C3)+1,C3:C36)),2)

    Not sure how to apply this to new purpose.

    Any ideas would be greatly appreciated.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: List unique names in order of highest to lowest values

    using a helper column to ID dups and give them a unique number. You could then use index/match/large on that helper.

    =a7+COUNTIF($a$7:a7,a7)/100
    copied down for the helper
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. [SOLVED] Look up to return in order highest to lowest
    By TrainerJ in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-16-2017, 08:50 AM
  2. Help verifying worksheet names are in order lowest to highest
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-27-2017, 04:31 PM
  3. [SOLVED] Ranking order based on highest to lowest value
    By Pranuvins in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-29-2016, 04:10 AM
  4. [SOLVED] Highest And Lowest Score Order
    By StickCity in forum Excel General
    Replies: 4
    Last Post: 11-12-2014, 11:22 AM
  5. [SOLVED] Arranging in order highest to lowest
    By neiluk121 in forum Excel General
    Replies: 7
    Last Post: 06-09-2012, 02:37 PM
  6. Replies: 6
    Last Post: 01-11-2012, 12:06 PM
  7. Return highest/lowest 6 values from a list
    By thekingsoutlaw in forum Excel General
    Replies: 4
    Last Post: 01-21-2008, 04:36 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