+ Reply to Thread
Results 1 to 6 of 6

Index/Match only returning first found from list

  1. #1
    Forum Contributor
    Join Date
    05-01-2018
    Location
    Maine
    MS-Off Ver
    2010
    Posts
    114

    Index/Match only returning first found from list

    Hello,

    I am trying to figure out why the below formula is not returning the match it found on the row, as opposed to the first found. The below formula (in regards to the example) would go in D1.

    Please Login or Register  to view this content.

    ......A........B......C.....D.......E
    1 Data1 Data2 Yes Data1 Data2 <---- correct, but it now copies Data1 and Data2 in all matched with "Yes":

    2 Data3 Data4 Yes Data1 Data2 <---- incorrect, D & E should copy Data3 and Data4

    3 Data5 Data6 Yes Data1 Data2 <---- incorrect, D & E should copy Data5 and Data6

    4 Data7 Data8 Yes Data7 Data8 <---- This is how it should return when "Yes" is found in C

  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,806

    Re: Index/Match only returning first found from list

    INDEX MATCH will only return the first match it finds.

    What exactly are you expecting it to do?

    There are instructions at the top of the page explaining how to attach your sample workbook.
    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
    Forum Contributor
    Join Date
    05-01-2018
    Location
    Maine
    MS-Off Ver
    2010
    Posts
    114

    Re: Index/Match only returning first found from list

    Essentially the formula just needs to return data from the row it is on. I attached an example that will hopefully help. Thank you.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,197

    Re: Index/Match only returning first found from list

    This ??

    in E4

    =IF($D4="Yes",B4,"")

    copy to F4

    Then copy down E & F

  5. #5
    Forum Contributor
    Join Date
    05-01-2018
    Location
    Maine
    MS-Off Ver
    2010
    Posts
    114

    Re: Index/Match only returning first found from list

    Wow. You're right. I completely was overthinking it. Thank you for the info. I feel silly now haha.

  6. #6
    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,806

    Re: Index/Match only returning first found from list

    We've all been there at some time or another.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. [SOLVED] MAXIF returning 0 when no match found
    By Brawnystaff in forum Excel General
    Replies: 3
    Last Post: 09-16-2020, 01:55 PM
  2. Replies: 8
    Last Post: 11-27-2019, 04:50 AM
  3. [SOLVED] INDEX/MATCH generates incorrect result by referencng nearest cell if match not found
    By aglawrence in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-29-2017, 08:59 AM
  4. [SOLVED] Returning a value if a match is found
    By TheBakerBoy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-23-2016, 03:39 PM
  5. [SOLVED] Returning a match given value found in column
    By BWellman in forum Excel General
    Replies: 3
    Last Post: 07-15-2015, 11:10 AM
  6. Index formula is only returning the first value found in lookup
    By RubiksCuber in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-29-2013, 01:52 PM
  7. Looking up arrays and returning entire rows if match is found
    By Carlsbergen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-05-2009, 06:18 AM

Tags for this Thread

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