+ Reply to Thread
Results 1 to 3 of 3

Sort names based on rank

  1. #1
    Registered User
    Join Date
    02-11-2009
    Location
    St Albans, UK
    MS-Off Ver
    Excel 2003
    Posts
    12

    Sort names based on rank

    Please see the attached spreadsheet. I have people's names in cells A2:A5. These names have a rank value in cells B2:B5. What I would like to do is create a formula that sorts/orders the names in cells A2:A5 according to the rank in cells B2:B5. The results I would like to achieve are shown in A8:A11.

    I am aware of the "Sort" function in the "Data" drop down menu, but need to leave cells A1:B5 as they are. Suggestions welcome.
    Attached Files Attached Files
    Last edited by douglaswarden; 02-12-2009 at 01:34 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Sort names based on rank

    I presume this needs to work with an evergrowing list, right?

    First, to automatically get a list in descending order, use this in B8:
    =COUNTA($B$2:$B$5)+8-ROW()

    Then in A8, an INDEX/MATCH:
    =INDEX($A$2:$A$5,MATCH(B8,$B$2:$B$5,0))

    Now, just expand your ranges to suit. Whatever row # you start your list, change the "8" in the first formula to that row number to get your list started.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    02-11-2009
    Location
    St Albans, UK
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Sort names based on rank

    That works perfectly. Many thanks!!!

+ 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