+ Reply to Thread
Results 1 to 7 of 7

Index Match array formula need to pull names whose adjacent cell matches given criteria

  1. #1
    Registered User
    Join Date
    03-24-2013
    Location
    Apple Valley, MN
    MS-Off Ver
    Excel 2010
    Posts
    29

    Index Match array formula need to pull names whose adjacent cell matches given criteria

    I have a long column of student names and the names of the classes are in the adjacent column what formula will pull all the names for a given class?IndexMatchArray.xls

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Index Match array formula need to pull names whose adjacent cell matches given criteri

    Hi bkwins,

    You have given 1,2,3,4,5,6 in column A but what will tell excel if you are talking about class 1 or 2 or 3 ? thx



    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Index Match array formula need to pull names whose adjacent cell matches given criteri

    Hi

    Sin you on Excel 2003

    Cell B3 =IF(COUNTIF($L$3:$L$30,$B$2)<ROW(A1),"",(INDEX($K$3:$L$30,SMALL(IF($L$3:$L$30=$B$2,ROW($L$3:$L$30)-MIN(ROW($L$3:$L$30))+1),ROW(1:1)),COLUMN(A1))))
    Ctrl+Shift+Enter array formula

    Please see the file.
    Attached Files Attached Files
    To help you by my post? it would be nice to click on to say "Thank you".
    If you are happy with a solution to your problem?
    Click Thread Tools above your first post,
    select "Mark your thread as Solved".

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Index Match array formula need to pull names whose adjacent cell matches given criteri

    Anyways, below formula will fetch your expected results :-

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    enter with key combination: ctrl shift enter


    see attached:- IndexMatchArray.xls

    Regards,
    DILIPandey
    <click on below * if this helps>

  5. #5
    Registered User
    Join Date
    03-24-2013
    Location
    Apple Valley, MN
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: Index Match array formula need to pull names whose adjacent cell matches given criteri

    micope and dilipandey, thank you both for your replies! I went with dilipandey's solution because it was easier for me to implement in the original file.

  6. #6
    Registered User
    Join Date
    03-24-2013
    Location
    Apple Valley, MN
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: Index Match array formula need to pull names whose adjacent cell matches given criteri

    I have a related question though,
    If I paste the above formula in Sheet1 but in my workbook this section of the formula ROW($L$1:$L$22) is changed to ROW(Sheet3!$L$1:$L$22) Then if I delete Sheet2 I get ROW(#REF!$L$1:$L$22)
    Is there a way to make that ROW reference to a different sheet robust?

  7. #7
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Index Match array formula need to pull names whose adjacent cell matches given criteri

    Cheers

    You are welcome bkwins.

    please mark this thread as [SOLVED].. thanks.


    Regards,
    DILIPandey
    <click on below * if this helps>

+ 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