+ Reply to Thread
Results 1 to 6 of 6

Rank 3 columns

Hybrid View

neil40 Rank 3 columns 05-27-2011, 10:05 AM
JBeaucaire Re: Ranking of 3 columns -... 05-27-2011, 10:35 AM
neil40 Re: Ranking of 3 columns -... 05-27-2011, 03:53 PM
protonLeah Re: Rank 3 columns 05-27-2011, 04:41 PM
shg Re: Rank 3 columns 05-27-2011, 04:44 PM
neil40 Re: Rank 3 columns 05-27-2011, 05:17 PM
  1. #1
    Forum Contributor
    Join Date
    06-16-2010
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    161

    Rank 3 columns

    Hi

    I have a list of competitors, and would like to create a ranked table, based on their podium finishes (1st, 2nd and 3rd)

    Example
    Name---1st's---2nd's---3rd's
    Bob--------6--------2---------1
    Fred-------4--------2--------2
    Jim---------4--------1--------2
    Alan-------0---------0-------1

    So, the criteria would be that 1st places have precedence, then 2nd's then 3rd's

    I'd welcome some advice on how best to tackle this please, and 'ideally' to exclude those with no podium finishes

    Many thanks
    Neil
    Last edited by neil40; 05-27-2011 at 05:16 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: Ranking of 3 columns - seeking advice please

    Put this formula in E2 and copy down to create a unique "key":

    =(B2&"."&C2&D2)*1

    Put this formula in F2 and copy down for the ranking:

    =RANK(E2,$E$2:$E$5)


    ===========
    'RANK-TIEBREAKING - here's a bunch more techniques and methods for dealing with tie-break ranking:(the file you want is Rank-TieBreaking.xls)

    http://www.excelforum.com/excel-prog...-tables.html#2
    http://www.excelforum.com/attachment...iebreaking.xls
    _________________
    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
    Forum Contributor
    Join Date
    06-16-2010
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    161

    Re: Ranking of 3 columns - seeking advice please

    I quite like this solution *BUT*

    In the scenario where for example there are two entries as follows

    4-9-2
    4-10-2

    ....the ranking is incorrect and 4-9-2 gets ranked above 4-10-2

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,936

    Re: Rank 3 columns

    Does
    =IF(B2=0,"00",TEXT(B2,"0#")) & IF(C2=0,"00",TEXT(C2,"0#"))& IF(D2=0,"00",TEXT(D2,"0#"))
    in E2 and copied down with the table sorted on E d(decending) work?

    My sample:
    Name	1st's	2nd's	3rd's	sort key
     Alan	10	0	1	100001
     Bob	6	10	10	061010
     Fred	4	10	2	041002
     Jim	4	9	2	040902
    Ben Van Johnson

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Rank 3 columns

    JB's approach was fine for the data you provided.

          -B-- --C-- --D-- --E-- --F--- ---------------------G---------------------
      2   Name 1st's 2nd's 3rd's Helper                                            
      3   Bob      6     2     1  60201 F3 and down: =SUMPRODUCT(C3:E3*100^{2,1,0})
      4   Fred     4     2     2  40202                                            
      5   Jim      4     1     2  40102                                            
      6   Alan     0     0     1      1
    That approach will break if someone has over 99 in any category.
    Entia non sunt multiplicanda sine necessitate

  6. #6
    Forum Contributor
    Join Date
    06-16-2010
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    161

    Re: Rank 3 columns

    shg - this is the one that works. Thanks.

    I seriously doubt any event will get near 99!

+ 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