+ Reply to Thread
Results 1 to 2 of 2

Automatic sort by descending order

  1. #1
    Registered User
    Join Date
    03-15-2014
    Location
    USA
    MS-Off Ver
    Excel 2011
    Posts
    1

    Automatic sort by descending order

    Don't know if macro is better, but I would like to try it with function

    I have 2 sheets.

    Sheet 1
    Column A: Name
    Column B: Points

    Exemple:
    Name Points
    Mary 40
    Johnny 20
    Erick 60
    Ralph 30

    I want Sheet 2 to get data from Sheet 1 and sort by descending order automatically.

    Then it should be

    Sheet 2

    Name Points
    Erick 60
    Mary 40
    Ralph 30
    Johnny 20

    I don't want to do it manually every time I change some value; I want it to do automatically; so if I change, for example, Erick's points from 60 to 10 in Sheet 1, Erick should appear on the last place in Sheet 2, with his new value (10)

    Thanks, in advance.

  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: Automatic sort by descending order

    Hi and welcome to the forum

    For the numbers, use this in sheet2 B2, copied down...
    =IFERROR(LARGE(Sheet1!$B$2:$B$5,ROW(A1)),"")

    Then in sheet2 A2, copied down
    =IFERROR(INDEX(Sheet1!$A$2:$A$5,MATCH(Sheet2!B2,Sheet1!$B$2:$B$5,0)),"")

    Woud you need to consider duplicate scores?
    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] Sort by descending order, but the blank spaces come on top
    By billj in forum Excel General
    Replies: 3
    Last Post: 07-18-2013, 04:18 PM
  2. [SOLVED] Sort extracted data in descending order
    By Aland2929 in forum Excel General
    Replies: 5
    Last Post: 07-24-2012, 03:14 PM
  3. Can you sort a chart out in Ascending/Descending Order
    By dandavis1 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 11-26-2010, 09:52 AM
  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

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