+ Reply to Thread
Results 1 to 9 of 9

Formula to Sort the Data in Descending Order

  1. #1
    Registered User
    Join Date
    04-20-2015
    Location
    India
    MS-Off Ver
    2013
    Posts
    77

    Formula to Sort the Data in Descending Order

    Hello Everyone,

    I have student's data in which column A contains Students name and Column B contains sales quantity. In Column D I want to retrieve the Students name rank wise in descending order.

    For reference please find the attached file.


    Thanks in advance
    Ankit
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    05-07-2014
    Location
    India
    MS-Off Ver
    MS Office 365
    Posts
    313

    Re: Formula to Sort the Data in Descending Order

    Hi Ankit,

    Please use this formula in cell D2:- =INDEX($A$2:$A$14,MATCH(LARGE($B$2:$B$14,ROW(D1:D1)),$B$2:$B$14,0))
    Thanks
    Nisha Dhawan


    If you like my answer please click on * Add Reputation
    "If you can dream it, You can do it "

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Formula to Sort the Data in Descending Order

    How doo you want ties to treated? The above formula gives the same name twice if there is a tie
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Registered User
    Join Date
    04-20-2015
    Location
    India
    MS-Off Ver
    2013
    Posts
    77

    Re: Formula to Sort the Data in Descending Order

    Hi Glenn,

    I want if tie is there then both name should come let's say if Bernie and Petra has scored 90 then it should come Bernie at 2nd rank and then Petra should come on 3rd rank.

    Thanks
    Ankit

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Formula to Sort the Data in Descending Order

    OK. Try this, then. It does need a helper.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    04-20-2015
    Location
    India
    MS-Off Ver
    2013
    Posts
    77

    Re: Formula to Sort the Data in Descending Order

    You are great, its perfect.

    Thankyou Glenn

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Formula to Sort the Data in Descending Order

    Glad to have helped! If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. It'd also be appreciated if you were to click the add Reputation button at the foot of any of the posts of those who helped you reach a solution.

  8. #8
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Formula to Sort the Data in Descending Order

    =index($a$2:$a$14,match(large(index($b$2:$b$14+1/(row($b$2:$b$14)*10^5),0),row($a1)),index($b$2:$b$14+1/(row($b$2:$b$14)*10^5),0),0))
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Formula to Sort the Data in Descending Order

    Dohh! I forgot about that approach.

+ 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. Automatic sort by descending order
    By anapaulacasseta in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-15-2014, 10:49 PM
  2. macro to sort in ascending/descending order
    By apio in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-21-2012, 02:46 AM
  3. [SOLVED] Sort extracted data in descending order
    By Aland2929 in forum Excel General
    Replies: 5
    Last Post: 07-24-2012, 03:14 PM
  4. Macro to sort data in descending order
    By Vbort44 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-02-2008, 11:46 PM
  5. Sort in descending order
    By shahcu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-28-2008, 03:01 AM

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