+ Reply to Thread
Results 1 to 3 of 3

Index – Match for Repeated Numbers

  1. #1
    Forum Contributor
    Join Date
    10-07-2015
    Location
    Tehran - Iran
    MS-Off Ver
    2013
    Posts
    111

    Index – Match for Repeated Numbers

    As you know, the combination of INDEX – MATCH gives us the content of cells two columns in the same row. If we have the repeated number in a column and we want to get all data in another column for this repeated number, is there any formula? (Please see attached excel file)
    Thanks in advance for your help.
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Index – Match for Repeated Numbers

    Please try at D2
    =INDEX(A:A,AGGREGATE(15,6,ROW($B$2:$B$21)/($B$2:$B$21=C2),COUNTIF(C$2:C2,C2)))

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Index – Match for Repeated Numbers

    You can use this array* formula in D2:

    =IFERROR(INDEX(A:A,SMALL(IF($B$2:$B$21=$C2,ROW($B$2:$B$21)),ROWS($1:1))),"")

    *Note that an array formula needs to be confirmed using the key combination of Ctrl-Shift-Enter (CSE), instead of the usual Enter. If you do this correctly then you will see curly brackets { } around the formula when viewed in the formula bar, but you should not try to type these yourself. If you need to edit the formula subsequently, you will need to use CSE again to confirm it.

    Then copy the formula down into D3:D6 (doesn't matter if you copy it beyond this - you will just get blanks).

    Hope this helps.

    Pete

+ 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 in a list with repeated values
    By mehmetics in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 10-23-2017, 12:36 PM
  2. Need help to skip blanks in repeated list formula (index match)
    By iskz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-19-2017, 07:37 PM
  3. [SOLVED] Index Match return highest value in repeated matches
    By izk630 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 06-30-2015, 04:09 PM
  4. Index Match return highest value in repeated matches
    By izk630 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-29-2015, 12:57 PM
  5. [SOLVED] Match and Index function with repeated values
    By nbrp in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 06-26-2014, 03:22 PM
  6. Index Match, repeated numbers
    By Tony Wong in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-13-2008, 07:31 PM
  7. [SOLVED] Returning row # using match or index of repeated text in a complex table
    By General in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-21-2005, 11:05 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