+ Reply to Thread
Results 1 to 5 of 5

INDEX & MATCH Formula Help

  1. #1
    Forum Contributor
    Join Date
    01-11-2007
    Posts
    127

    INDEX & MATCH Formula Help

    I've attached an example workbook.

    Table 1 is a list of names and numbers that relate to the names.

    Table 2 needs to return entries in the Name and Number columns depending on a value that I place in
    the Selection column of Table 2. If I placed a '1' in the Selection column, I want the highest number from Table 1
    to be returned in the Number column and the corresponding Name from Table 1 in the Name column of Table 2.

    I have duplicated Table 2, three times to show examples of results expected. In the last duplicate table I have placed a
    '4' in the selection column which means I want the 4th highest number returned. There isn't a 4th highest number as
    Frank, Rose and Kevin are all joint 3rd with a value of 3.00. However, when I place a '4' in the Selection column
    I want results for 'Rose' returned as the formula should be searching by highest number first and then by order in the list.
    There are three people holding a value of '3.00', they are Frank, Rose and Kevin. If '3' is entered, 'Frank' and '3.00'
    should return, if '4' is entered, 'Rose' and '3.00', if '5', then 'Kevin' and '3.00' is the result.
    This list would be fixed, Ideally I wouldn't re-order it.

    I've tried an INDEX and MATCH formula but it has problems with duplicate numbers. In the above example it would always return
    'Frank' and '3.00' whenever 3,4 or 5 are entered in the Selection column. Can anyone help? Thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: INDEX & MATCH Formula Help

    You have to do a 'tie-breaker' approach to that.
    Here's one way:
    In C4 this: =RANK(B4,$B$4:$B$23)+COUNTIF(B$4:B4,B4)/100
    and drag down

    In D4 this: =INDEX(A$4:A$23,MATCH(SMALL($C$4:$C$23,$F4),$C$4:$C$23,0))
    and copy to the other cells

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

    Re: INDEX & MATCH Formula Help

    see if the attached captures your requirements...

    you may have to change layout of TABLE 2 for this solution, if it works for you.
    - 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 -

  4. #4
    Forum Contributor
    Join Date
    01-11-2007
    Posts
    127

    Re: INDEX & MATCH Formula Help

    Thanks very much for both of your help. It's much appreciated - problem solved. Thanks.

    Dan

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: INDEX & MATCH Formula Help

    You're welcome.

+ 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