+ Reply to Thread
Results 1 to 5 of 5

Return multiple values

  1. #1
    Registered User
    Join Date
    10-31-2016
    Location
    Ohio
    MS-Off Ver
    Excel 2007
    Posts
    32

    Return multiple values

    I am getting an error when added rows to my formula

    If you look at E1-E6 my formula works perfect with 36 rows - but soon as I add more rows to the formula it stops working (H1-H6) (1652 rows)

    Am I adding too much data to the spreadsheet for it to work?

    Formula with only 36 rows

    =IF(ISERROR(INDEX($A$1:$B$36,SMALL(IF($A$1:$A$36=$E$1,ROW($A$1:$A$36)),ROW(1:1)),2)),"",INDEX($A$1:$B$36,SMALL(IF($A$1:$A$36=$E$1,ROW($A$1:$A$36)),ROW(1:1)),2))

    Formula with 1652 rows

    =IF(ISERROR(INDEX($A$1:$B$1652,SMALL(IF($A$1:$A$1652=$E$1,ROW($A$1:$A$1652)),ROW(1:1)),2)),"",INDEX($A$1:$B$1652,SMALL(IF($A$1:$A$1652=$E$1,ROW($A$1:$A$1652)),ROW(1:1)),2))

    Excel 2007

    Thanks!

    Mike
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Return multiple values

    This is an array formula.

    Formulas entered in column H have not been entered as an array, note the {} characters round the formula in column E.

    Reeenter them in column H as an array formula and they work.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Return multiple values

    Personally I prefer this shorter array formula which I think does the same thing

    =IFERROR(INDEX($A$1:$B$1652,SMALL(IF(($A$1:$A$1652=$E$1),ROW($A$1:$A$1652)),ROW(A1))-(ROW(A$1)-1),2),"")

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Return multiple values

    Going off of post #'s 2 and 3, here is an alternative:

    =IFERROR(INDEX(B:B,SMALL(IF(A$1:A$1652=E$1,ROW($A$1:$A$1652)),ROWS($1:1))),"") Ctrl Shift Enter

  5. #5
    Registered User
    Join Date
    10-31-2016
    Location
    Ohio
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: Return multiple values

    Perfect, that was the issue! Thanks so much!

+ 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. Replies: 3
    Last Post: 03-10-2017, 07:56 PM
  2. Replies: 2
    Last Post: 05-26-2015, 07:29 PM
  3. Replies: 13
    Last Post: 10-13-2014, 02:00 AM
  4. Replies: 4
    Last Post: 05-12-2014, 07:10 PM
  5. Replies: 3
    Last Post: 12-13-2013, 06:23 AM
  6. [SOLVED] Return value if within range, return multiple values if ranges overlap
    By cde1983 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-17-2013, 06:16 AM
  7. Replies: 5
    Last Post: 08-04-2013, 09:49 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