+ Reply to Thread
Results 1 to 8 of 8

Problem with Index, Small, Array to return multiple values for single look up value,

  1. #1
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000, and 2010
    Posts
    654

    Problem with Index, Small, Array to return multiple values for single look up value,

    In the attached file I am having a problem picking up the proper values. It seems to work for the first value but does not copy down correctly.

    Jim O
    Attached Files Attached Files
    Last edited by JO505; 10-10-2014 at 05:07 PM.

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Problem with Index, Small, Array to return multiple values for single look up value,

    Hi.

    Your reference to ROW($C3) in the formulas in row 3 needs to be ROW($C$3).

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Problem with Index, Small, Array to return multiple values for single look up value,

    .....also, it won't affect the result but if you are using IFERROR, you don't need the first IF, so this will work

    =IFERROR(INDEX($D$3:$D$102,SMALL(IF($C$3:$C$102=$H3,ROW($C$3:$C$102)-ROW(C$3)+1),COLUMNS($J3:J3))),"")
    Audere est facere

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Problem with Index, Small, Array to return multiple values for single look up value,

    To be fair though, DLL, given a choice it's much more efficient to choose the set-up with the IF clause over the IFERROR one.

    Perhaps there's not much difference given a dataset of just a hundred rows, but nevertheless in general...

    Regards

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Problem with Index, Small, Array to return multiple values for single look up value,

    Seeing as you already have that helper column, you could modify the formula a bit and then use that to pull teh data and eliminate the ARRAY formulas. I used F to make sure we were getting the same results.

    F3=C3&COUNTIF(C$3:C3,C3)

    Then J3:O3...
    =IFERROR(INDEX($D$3:$D$102,MATCH($H3&COLUMN(A$1),$F$3:$F$102,0)),"")

    All copied down
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000, and 2010
    Posts
    654

    Re: Problem with Index, Small, Array to return multiple values for single look up value,

    FDibbins,

    I like that formula.

    Thanks for that and thanks to all for the input and time.

    Jim O

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Problem with Index, Small, Array to return multiple values for single look up value,

    You are welcome Depending on the amount of data being used, ARRAY formulas can tend to start slowing things down if used excessively

  8. #8
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Problem with Index, Small, Array to return multiple values for single look up value,

    Quote Originally Posted by XOR LX View Post
    .....given a choice it's much more efficient to choose the set-up with the IF clause over the IFERROR one.
    OK, that's true. Thanks

+ 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. How to return multiple values from an array in a single cell?
    By fkalinx in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-03-2014, 04:16 AM
  2. Replies: 2
    Last Post: 12-04-2013, 09:45 PM
  3. [SOLVED] Dependent Dropdown List Using Index and Small Won't Return Multiple Values
    By ebevis in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-23-2013, 02:28 AM
  4. return multiple matches using INDEX and SMALL
    By merlyn45 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-31-2013, 05:14 AM
  5. Using Index & Small to return multiple values
    By BHudPE in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-17-2010, 06:06 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