+ Reply to Thread
Results 1 to 7 of 7

Index Match values with multiple matches

  1. #1
    Registered User
    Join Date
    12-14-2017
    Location
    United States
    MS-Off Ver
    2010
    Posts
    3

    Question Index Match values with multiple matches

    Excel.jpg

    I've been at this for about 6 hours. I have 3 main columns. First column has the user id and the second column has it's x position and the third column has its y position. To the side of the table I want to put in a user id number, such as 31, and underneath I want it to list the column of x values and y values for that user. That't it and I cant figure it out. I think having multiple 31's is messing me up. I'm very new to excel and any help is greatly appreciated. Maybe someone can point me to the correct google search term so that I can find something relevant.

    Thank you

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,788

    Re: Index Match values with multiple matches

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    12-14-2017
    Location
    United States
    MS-Off Ver
    2010
    Posts
    3

    Re: Index Match values with multiple matches

    Thanks for your help. I have done a you said and attached an excel file with everything you mentioned.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,292

    Re: Index Match values with multiple matches

    I propose a formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Index Match values with multiple matches

    Here's another option:

    E7 =INDEX(B$3:B$77,SMALL(IF($A$3:$A$77=$F$4,ROW($A$3:$A$77)-(ROW($A$3)-1)),ROWS($1:1))) Ctrl Shift Enter

    Drag the formula through F7 and then down through row 11.

  6. #6
    Registered User
    Join Date
    12-14-2017
    Location
    United States
    MS-Off Ver
    2010
    Posts
    3

    Re: Index Match values with multiple matches

    Thank you everyone for your help and suggestions, I will try them. PM63falcondude could you explain how ROW($A$3:$A$77)-(ROW($A$3)-1)),ROWS($1:1) part of your formula works. I'm interested in how the Row subtraction works and what Rows(1:1)
    is. Thanks again everyone.

  7. #7
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Index Match values with multiple matches

    Glad we could help.

    The array formula from post #5 is a common way of returning multiple matches.

    Basically, the SMALL IF function returns the kth position of the 1st, 2nd, etc TRUE value (where the test is A3=F4, A4=F4, ..., A77=F4).

    ROWS($1:1) gives the "k" portion of the SMALL function.
    ROWS($1:1) will return 1 (the total # of rows in 1:1), then when the formula is dragged down, it will turn into ROWS($1:2) which will return 2 (the total # of rows in 1:2), etc.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Index-Match with multiple matches?
    By mdbelles in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-08-2016, 04:21 PM
  2. [SOLVED] Vlookup Or Index/Match but with multiple matches
    By JasonNeedsHelp in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-21-2015, 11:36 PM
  3. Replies: 6
    Last Post: 06-10-2014, 10:36 PM
  4. Using index match but there are multiple matches, i want the most recent
    By simongood in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-08-2014, 11:30 PM
  5. [SOLVED] INDEX MATCH array formula that matches substring n gives multiple matches
    By bkwins in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-12-2013, 04:57 AM
  6. Replies: 4
    Last Post: 07-18-2012, 02:34 PM
  7. Multiple Matches - Index/Match
    By brdwlsh in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-26-2007, 12:00 AM

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