+ Reply to Thread
Results 1 to 4 of 4

INDEX SMALL array formula issue

  1. #1
    Registered User
    Join Date
    08-27-2013
    Location
    UK
    MS-Off Ver
    Excel 20010
    Posts
    25

    INDEX SMALL array formula issue

    Hi. I'm trying to use the formula below to pull the values from column B according to the values in column A. I copied this from another website which I can't find any more unfortunately.

    Please Login or Register  to view this content.
    This is then made into an array formula to display the values from column B that have a value of "1" in column A in a separate column. I have values from 1-10 in column A which I wish to sort into separate columns, one column for value 1, one column for value 2, and so on, and will have additional formulas for that further across the sheet.

    The problem I have is that this formula will only display the first matching value in the data. As I understand it the ROW(A1) function at the end is there to increment the data, increasing by 1 with each row it is copied down.

    However, when I try and make the array formula (select the range, paste the formula into the bar, and then Ctrl-Shift-Enter) the A1 reference doesn't increment, meaning that I only ever get the first value. Could anyone advise what I'm doing wrong?
    Last edited by davepoth; 08-27-2013 at 06:55 AM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: INDEX SMALL array formula issue

    just enter it in a cell array enter it then fill down
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    08-27-2013
    Location
    UK
    MS-Off Ver
    Excel 20010
    Posts
    25

    Re: INDEX SMALL array formula issue

    Thanks! that works just fine.

  4. #4
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: INDEX SMALL array formula issue

    You dot really need the false argument("")
    You can make this faster avoiding the MIN function and use ROWS not ROW for k argument of SMALL to prevent formula to stop working when new row is adedd/deleted:
    =INDEX($B$2:$B$50, SMALL(IF($A$2:$A$50=1, ROW($A$2:$A$50)-ROW($A$2)+1), ROWS($A$1:A1)))
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

+ 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. [SOLVED] Slow index/small/row array
    By Jovica in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-06-2012, 06:59 AM
  2. if, index, small - formula issue
    By jw01 in forum Excel General
    Replies: 6
    Last Post: 10-24-2012, 01:21 AM
  3. index small issue - with multiple criterias
    By jw01 in forum Excel General
    Replies: 5
    Last Post: 10-22-2012, 05:17 PM
  4. Replies: 2
    Last Post: 06-20-2012, 12:22 PM
  5. if(small(index...formula issue
    By jw01 in forum Excel General
    Replies: 7
    Last Post: 01-26-2012, 12:05 PM

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