+ Reply to Thread
Results 1 to 5 of 5

Long array formula with INDEX and MATCH quits working when range is too large

  1. #1
    Registered User
    Join Date
    04-04-2013
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2007, Excel 2010, Excel 2013, Office 365
    Posts
    21

    Long array formula with INDEX and MATCH quits working when range is too large

    I have this forumula below that quits working if it goes beyond approximately row 4500. If I go out to Row 6700 it returns N/A# for the result.

    = IFERROR(INDEX($B$2:$B$4489,SMALL(IF($F$2:$F$4489=A$4519,ROW($B$2:$B$4489)-1),ROW(B1))),"")

    Is there a limit to the number of rows or number of "hits" in the IF statement? There is alot of information in Column B that does not match the value in A$4519. Currently a count of 1,102.

    At one point, I used named ranges and that did not work well either.

    I am looking within a series of 80 or so similarly constructed tables (Row 2 to Row 6700 or so), one above each other, to extract the results of a match between cell A$4519 and what is is Column B, then select the information in Column A of that row and them populate a table below. Then I need to find the next entry until I have exhausted all of the range for that match.

    I adapted the formula in Cell H5 of the attached spreadsheet that I borrowed from another thread.

    Other ideas about how to get what I am after would be most helpful. Thanks.
    Attached Files Attached Files

  2. #2
    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,929

    Re: Long array formula with INDEX and MATCH quits working when range is too large

    try this non-array alternative.

    I did this on sheet1, insert a helper column at D (you can hide it if you want), and use this, copied down...
    =C2&COUNTIF($C$2:C2,C2)

    Then E2, copied down and across...
    =IFERROR(INDEX($A$1:$A$109,MATCH(E$1&ROW($A1),$D$1:$D$109,0),1),"")
    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

  3. #3
    Registered User
    Join Date
    04-04-2013
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2007, Excel 2010, Excel 2013, Office 365
    Posts
    21

    Re: Long array formula with INDEX and MATCH quits working when range is too large

    FDibbins,
    Thanks. This is the second time you have helped me in the recent past. I appreciate it a great deal.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Long array formula with INDEX and MATCH quits working when range is too large

    No, there is no row limit.

    Your formula looks OK in general but I would write it a bit differently.

    For example, in your file on the Country lists sheet in cell D2 I would write the formula like this:

    Still array entered.

    =IFERROR(INDEX($A:$A,SMALL(IF($C$2:$C$120=D$1,ROW(C$2:C$120)),ROWS(D$2:D2))),"")

    Copied across and down as needed.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

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

    Re: Long array formula with INDEX and MATCH quits working when range is too large

    UncleKevy, Im happy I could help again, and thanks for the feedback

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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