+ Reply to Thread
Results 1 to 8 of 8

Rank function "tiebreaker"

  1. #1
    Registered User
    Join Date
    07-23-2013
    Location
    ljubljana, Slovenia
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    19

    Rank function "tiebreaker"

    Hello.

    I have a RANK function instaled in my tool. It works ok, but recently a "tie" occurred between two values.

    Sales 2014 YTD Sales 2013 rank
    125.036,00 € 302.451,00 € 7
    152.006,00 € 295.324,00 € 2
    136.542,00 € 312.574,00 € 4
    140.235,00 € 225.634,00 € 3
    178.245,00 € 322.654,00 € 1
    136.542,00 € 291.475,00 € 4
    129.642,00 € 310.250,00 € 6

    I use =RANK(A2;$A$2:$A$8) formula, which returns rank 4 twice. How can I use 'Sales 2013' to get a "tiebreaker"?
    Last edited by glosos; 06-09-2014 at 04:16 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    08-06-2013
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2013
    Posts
    671

    Re: Rank function "tiebreaker"

    I don't know the RANK function, but you can make and rank a new column that is Sales 2014 + .000001 * sales 2013.
    1. Include a sample workbook with an example of the result you want
    2. Use [CODE] and [FORMULA] wrappers for your VBA code or excel formulas
    3. If your question has been answered, mark the thread as SOLVED and click on the "Add Rep" star to thank whoever helped you.

  3. #3
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 365
    Posts
    2,406

    Re: Rank function "tiebreaker"

    Maybe just use 2014 as tie breaker:

    =RANK(A2;$A$2:$A$8)+COUNTIF(A$2:A2;A2)-1

  4. #4
    Registered User
    Join Date
    07-23-2013
    Location
    ljubljana, Slovenia
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    19

    Re: Rank function "tiebreaker"

    Quote Originally Posted by k64 View Post
    I don't know the RANK function, but you can make and rank a new column that is Sales 2014 + .000001 * sales 2013.

    This can interfere with the original ranking, if they are very close to each other. I solve nothing by doing that

  5. #5
    Registered User
    Join Date
    07-23-2013
    Location
    ljubljana, Slovenia
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    19

    Re: Rank function "tiebreaker"

    Quote Originally Posted by azumi View Post
    Maybe just use 2014 as tie breaker:

    =RANK(A2;$A$2:$A$8)+COUNTIF(A$2:A2;A2)-1

    I don't understand how countif breaks a tie ... Am I missing something obvious?

    Edit: Oh, I see what you tried. I can't use this, I actualy want 2013 to be a factor if 2014 is equal.
    Last edited by glosos; 06-07-2014 at 03:24 PM.

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

    Re: Rank function "tiebreaker"

    Try this...

    Data Range
    A
    B
    C
    1
    2014
    2013
    Rank
    2
    125,036
    302,451
    7
    3
    152,006
    295,324
    2
    4
    136,542
    312,574
    4
    5
    140,235
    225,634
    3
    6
    178,245
    322,654
    1
    7
    136,542
    291,475
    5
    8
    129,642
    310,250
    6


    This formula entered in C2 and copied down:

    =RANK(A2;A$2:A$8)+SUMPRODUCT(--(A2=A$2:A$8);--(B2<B$2:B$8))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  7. #7
    Valued Forum Contributor
    Join Date
    08-06-2013
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2013
    Posts
    671

    Re: Rank function "tiebreaker"

    Quote Originally Posted by glosos View Post
    This can interfere with the original ranking, if they are very close to each other. I solve nothing by doing that
    It doesn't interfere. Just make the .000001 small enough.

  8. #8
    Registered User
    Join Date
    07-23-2013
    Location
    ljubljana, Slovenia
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    19

    Re: Rank function "tiebreaker"

    You are right, I'll try that

+ 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] Tiebreaker for the Rank function?
    By shanewignall in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-06-2014, 03:22 PM
  2. dragging "rank order" function down, skipping grouped cells
    By theletterh in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-04-2012, 06:52 PM
  3. RANK function to GRADE "A","B" students.
    By all4excel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-12-2007, 10:22 AM
  4. Need an Alternative to "Rank" function
    By jscully in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-27-2006, 02:01 PM
  5. Please add a "sheet" function like "row" and "column" functions
    By Spreadsheet Monkey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-08-2005, 12:15 PM

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