+ Reply to Thread
Results 1 to 3 of 3

Rank function, based on 2 criteria / columns

  1. #1
    Forum Contributor
    Join Date
    06-29-2005
    Posts
    201

    Rank function, based on 2 criteria / columns

    Hallo,

    I am not sure if this is the right forum, but I'll give it a go.

    Is it possible to calculate a rank, based on 2 columns / criteria.
    I need to calculate the position of speedskaters based on time and distance.

    Example:
    Please Login or Register  to view this content.
    Please be aware that both the number of distances and time can vary!
    Other distance are e.g. 1500, 5000 etc.

    Also: distances and times are not always in alphabetical order

    Is this possible (directly with the rank formula or with VBA

    I have searched for the answer, and came across the SUMPRODUCT formula (which apparently is used a lot).
    I don't think this is the answer.

    Who knows what to do?

    Thanks in advance
    Last edited by Hein; 01-31-2013 at 06:40 PM.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Rank function, based on 2 criteria / columns

    Why is this thread marked [SOLVED] ...

    Did you just sort your data, first by "Distance" then by "Time", and in say, C2, put this formula and drag it down?
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If not, could you let us into the secret solution?
    It's an interesting problem and I for one would be interested to see the method you employed.

  3. #3
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Rank function, based on 2 criteria / columns

    if your DISTANCE values are in A2:A10, TIME in B2:B10, then place this in C2 and drag-fill down:

    Please Login or Register  to view this content.
    what do you want to happen if there are duplicate TIME values for a certain DISTANCE value?
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

+ 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