+ Reply to Thread
Results 1 to 4 of 4

Thread: Retrieving corresponding values by Rank

  1. #1
    Valued Forum Contributor
    Join Date
    12-07-2004
    Posts
    598

    Retrieving corresponding values by Rank

    Problem:
    Finding the name matching each rank in according to the total number of sales, listed per each contestant in Range A1:B6

    Solution:
    Use the LARGE function to find the sales matching each rank in column A.
    Then, use the INDEX and MATCH functions to retrieve the name matching each total.
    Following is the formula:
    =INDEX($A$3:$A$7,MATCH(LARGE($B$3:$B$7,A12),$B$3:$B$7,0))

    Example:

    Range1

    Name______Total
    Mike______500
    Donna_____1000
    David_____700
    Mischelle_300
    John______1200

    Range2

    Rank____Name
    1_______John
    2_______Donna
    3_______David


  2. #2
    Russ911
    Guest

    Range of numbers is off by one.

    The formula shows the ranges as running from row 3 to row 7, while the data are in rows 2 to 6.

    Also, the \"LARGE\" reference cell should be A9, not A12.

    The formula should read:

    =INDEX($A$2:$A$6,MATCH(LARGE($B$2:$B$6,A9),$B$2:$B$6,0))

    Finally, that formula must be copied into each of the \"Result\" cells to see the person so ranked. I.e., copy it into cells B10, B11, etc.

    Cordially,

    Russ

  3. #3
    Registered User
    Join Date
    09-01-2005
    Posts
    1

    Does not work if values are of equal ranking

    If two people have an identical sales value it repeats the first name twice, in positions 1 and 2.
    Eg.
    If sales are
    Mike 1000
    Donna 1000
    Bill 900
    Fred 800

    The rankings shown are
    1 Mike
    2 Mike
    3 Bill
    ie. Donna is not shown.

    This formula is almost what I need. Any ideas for a fix?

  4. #4
    Forum Guru
    Join Date
    08-14-2003
    Location
    New Zealand
    Posts
    41

    Reply: jwellings

    Hi jwellings,

    Quote Originally Posted by jwellings
    If two people have an identical sales value it repeats the first name twice, in positions 1 and 2.
    Eg.
    If sales are
    Mike 1000
    Donna 1000
    Bill 900
    Fred 800

    The rankings shown are
    1 Mike
    2 Mike
    3 Bill
    ie. Donna is not shown.

    This formula is almost what I need. Any ideas for a fix?
    You need to create a unique rank number like this (assume your date is in A1:B4) then enter the following in, say, C1 and copy down to C4:

    =RANK(B1,B$1:B$4)+COUNTIF(B$1:B1,B1)-1

    Then use that unique rank to pull out the names using INDEX or whatever you want to do.

    HTH,

    Alan.
    To help us help you, try to do the following:

    1) Be precise about what you want to do, and provide a sample of your data / inputs - exactly as they are.

    2) State the formula(e) / code that you have tried. People are happy to help , but if you haven't even given it a go, you are less likely to get help, or the help you get will be very basic.

    3) State the results you are getting from your formula(e) / code already.

    4) State the outputs that you *want* to be getting.

+ 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.2.0