+ Reply to Thread
Results 1 to 4 of 4

Index Match Problem for multiple matches

  1. #1
    Registered User
    Join Date
    06-21-2010
    Location
    Texas, San Antonio
    MS-Off Ver
    Excel 2007
    Posts
    57

    Index Match Problem for multiple matches

    Hello all,

    I have a excel sheet which allows me to select a rep in cell G2 and then I use Index/Match formulas to help me find all the data on that person. The problem i am having is that my index formulas are not working correctly. Either it gives me N/A# or wrong info.
    Here is my formula:

    =INDEX(Sheet1!A$2:A25,MATCH($G$2,Sheet1!$B$2:$B$250,0))


    I have attached my excel sheet as well.


    Thanks
    Attached Files Attached Files
    Last edited by Coldsteel; 09-13-2010 at 10:31 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Index Match Problem

    In Sheet1, add a helper column with formula in G2:

    =IF(B2=Sheet2!G$2,COUNT(Sheet1!G$1:G1)+1,"")

    copied down.

    Then in Sheet2, A2:

    =IFERROR(INDEX(Sheet1!A:A,MATCH(ROWS($A$1:$A1),Sheet1!$G:$G,0)),"")

    copied down as far as you want and across
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Index Match Problem

    Hi,

    I couldn't see any #N/A results on your workbook. However rather than using functions to try and extract records like this you should be using Data Filtering. Either Data Filter on the list itself or use Data Filter Advanced to extract a separate list based on your G2 criteria.

    Rgds
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    06-21-2010
    Location
    Texas, San Antonio
    MS-Off Ver
    Excel 2007
    Posts
    57

    Re: Index Match Problem for multiple matches

    Thanks all the formulas work Great!!!

+ 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