+ Reply to Thread
Results 1 to 4 of 4

Awarding points in inverse order with continuous ranking

  1. #1
    Registered User
    Join Date
    05-04-2011
    Location
    Los Angeles, CA, USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Awarding points in inverse order with continuous ranking

    Hello everyone,

    V Points for rank
    9 0
    4 1
    8 0


    I would like to award a single point (integer 1) for the lowest value in a set. I have used:
    =LOOKUP(RANK(B$3,B$3:B$5),{1,2,3},{0,0,1})

    However, this fails if there is a tie for the lowest value. In that instance all values receive a "0." What is the simplest way to resolve this problem. My guess is a COUNTIF solution, I'm just not sure what it is.

    Greatest thanks
    Last edited by matty ice; 05-04-2011 at 05:29 PM. Reason: unnecessary data was entered

  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: Awarding points in inverse order with continuous ranking

    I would expect you need to expand the RANK range to include all 4 values, currently it only has 3 cells in it. Then expand you RANK array to only apply a rank if someone actually gets 4th place. Put this in C3 and copy down:

    =LOOKUP(RANK(B3,B$3:B$6), {1,2,3,4}, {0,0,0,1})
    _________________
    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
    Registered User
    Join Date
    05-04-2011
    Location
    Los Angeles, CA, USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Awarding points in inverse order with continuous ranking

    Quote Originally Posted by JBeaucaire View Post
    I would expect you need to expand the RANK range to include all 4 values, currently it only has 3 cells in it. Then expand you RANK array to only apply a rank if someone actually gets 4th place. Put this in C3 and copy down:

    =LOOKUP(RANK(B3,B$3:B$6), {1,2,3,4}, {0,0,0,1})

    Ah, I just threw in a fourth row erroneously. Even 3 places won't work, as corrected above.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Awarding points in inverse order with continuous ranking

    =if(b3=min($b$3:$b$5),1,0) will give 1 point to any tied or single minimum
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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