+ Reply to Thread
Results 1 to 4 of 4

Problem of using INDEX/MATCH function with duplicated values

  1. #1
    Registered User
    Join Date
    11-18-2010
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    6

    Problem of using INDEX/MATCH function with duplicated values

    Hi everyone,

    Here is one of the challenges I faced now.

    Cluster ID Score
    Cluster 1 6
    Cluster 2 6
    Cluster 3 5
    Cluster 4 3

    I have a dataset with 2 columns "Cluster ID" and "Score". I want Excel to return the Cluster ID with the highest Score. I used the function:

    =INDEX(A2:A5,MATCH(MAX(B2:B5),B2:B5,0))

    This function works well only when there is no duplicated highest scores in the spreadsheet.

    In this example, Excel only return Cluster 1 to me. What I want is returning both "Cluster 1 and 2" if there are a equal highest scores.

    How can I ask Excel to do this for me?


    Thanks a lot.

  2. #2
    Valued Forum Contributor
    Join Date
    05-19-2010
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: Problem of using INDEX/MATCH function with duplicated values

    you could try this -- it will rank them
    Attached Files Attached Files
    Last edited by grizzly6969; 11-20-2010 at 03:36 AM.

  3. #3
    Valued Forum Contributor ratcat's Avatar
    Join Date
    03-07-2008
    Location
    Rural NSW, Australia
    MS-Off Ver
    Vista 2007
    Posts
    1,111

    Re: Problem of using INDEX/MATCH function with duplicated values

    Here's my two cents worth
    Attached Files Attached Files
    Have I made you happy ??? If yes, please make me happy by pressing the http://www.excelforum.com/images/buttons/reputation-40b.png Add Reputation button in my post.
    Please don't forget to do the same to other contributors of this forum.

    Thanks
    I don't void confusion, I create it

  4. #4
    Registered User
    Join Date
    11-18-2010
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Problem of using INDEX/MATCH function with duplicated values

    Hi,

    Thanks both of you. I am a bit more interested on ratcat's function. How can I rearrange your formula when the format is like the attached file?

    This format is the actual format I am dealing with now - the row is "score" and the column is "cluster ID".

    I want Excel to return the cluster ID(s) with the highest score(s)

    Again, thanks for both grizzly6969 and ratcat~ you guys are so cool!
    Attached Files Attached Files

+ 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