+ Reply to Thread
Results 1 to 8 of 8

how to use automatically sort and compare more than one

  1. #1
    Registered User
    Join Date
    09-24-2016
    Location
    Malaysia
    MS-Off Ver
    14.0.0
    Posts
    3

    Wink how to use automatically sort and compare more than one

    Screen Shot 2016-09-24 at 5.08.11 PM.png

    i want to sort the position for this table
    first it will compare the first task (task 1) the highest score will be on the first rank
    if there is a tie in task 1 it will compare attempts 1, the less attempt will win
    and if its still have a tie it will compare task 2 the highest score will win
    if there is another tie on task 2 it will compare attempt 2 the less attempt will win
    if still tie the same team will get the same position

    final result will be like the picture below

    Screen Shot 2016-09-24 at 5.09.08 PM.png

    can anyone help me with the code or function, because i just know how to use rank funtion that can only compare one score

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,915

    Re: how to use automatically sort and compare more than one

    This worked on your sample:

    Custom Sort:

    Task1 .... Largest to Smallest
    Attempt1 .... Smallest to Largest
    Task2 .... Largest to Smallest
    Attempt2 .... Smallest to Largest

  3. #3
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: how to use automatically sort and compare more than one

    Hi
    Suppose your data in A2:F8 and row 1 has labels (Rank, Team, Task 1, Attempts 1, Task 2, Attempts 2)
    In G2, use the following formula and copy down, to get the result you can sort descending
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    See the file
    Attached Files Attached Files

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: how to use automatically sort and compare more than one

    Many members are unable to see images in the *.png format due to forum compatibility issues with some browsers.

    If you need to post an image post it in the *.jpg format.

    Even better than posting images... post a SMALL sample file. That way we can test solutions directly in the file with the relevant data.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    09-24-2016
    Location
    Malaysia
    MS-Off Ver
    14.0.0
    Posts
    3

    Re: how to use automatically sort and compare more than one

    result.jpg

    the top result will be the result

    and below will be the expected arrangement for the final result table

    final arrangement.jpg

  6. #6
    Registered User
    Join Date
    09-24-2016
    Location
    Malaysia
    MS-Off Ver
    14.0.0
    Posts
    3

    Re: how to use automatically sort and compare more than one

    the sample i arrange it manually to show the expected result

  7. #7
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: how to use automatically sort and compare more than one

    If you do not want use sort/filter then you can do with a new helper column H
    Use the formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    See the file
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: how to use automatically sort and compare more than one

    Array formula in B3, then drag down
    =IFERROR(INDEX($M$4:$M$10,MATCH(LARGE($N$4:$N$10-($O$4:$O$10*10^-3)+($P$4:$P$10*10^-6)-($Q$4:$Q$10*10^-9),ROWS($B$3:$B3)),$N$4:$N$10-$O$4:$O$10*10^-3+$P$4:$P$10*10^-6-$Q$4:$Q$10*10^-9,0)),"")
    In C3, then drag across
    =IFERROR(INDEX(N$4:N$21,MATCH($B3,$M$4:$M$21,0)),"")
    Attached Files Attached Files

+ 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. Compare 2 Separate List and Sort
    By racer25 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-28-2015, 08:22 AM
  2. Compare and Sort Two Different Table
    By lkurrt in forum Excel General
    Replies: 0
    Last Post: 02-19-2014, 01:10 PM
  3. [SOLVED] Help me Sort, compare and delete
    By kwesi2505 in forum Excel Programming / VBA / Macros
    Replies: 41
    Last Post: 02-12-2013, 02:09 PM
  4. COmpare and sort
    By ramdzan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-15-2011, 05:47 PM
  5. Compare and sort 2 lists.
    By Dennisj in forum Excel General
    Replies: 2
    Last Post: 06-01-2007, 03:27 AM
  6. How to compare two column of data and sort them out according
    By kuansheng in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 01-21-2006, 11:40 AM
  7. [SOLVED] Sort and compare
    By John in forum Excel General
    Replies: 0
    Last Post: 12-27-2005, 12:10 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