+ Reply to Thread
Results 1 to 10 of 10

INDEX SMALL ROW array function

  1. #1
    Registered User
    Join Date
    12-17-2008
    Location
    Seattle, WA
    Posts
    39

    INDEX SMALL ROW array function

    Hi everyone,

    I am having trouble getting the INDEX SMALL ROW combination to work for aggregating data from a larger set of data.

    Please see the attached worksheet for details. I would like the array function to search for instances of the word "FALSE" in column E and return the values of columns A:D when a match is found. I have done this successfully when the lookup value is a value in the first column of the range, but cannot seem to do so when the lookup value is in the last column of the range. I have received a #NUM! error each time.

    Many thanks for your help,
    ACurtis802
    Attached Files Attached Files
    Last edited by ACurtis802; 12-10-2009 at 02:10 AM.

  2. #2
    Valued Forum Contributor JeanRage's Avatar
    Join Date
    03-02-2009
    Location
    Nice, France
    MS-Off Ver
    Excel 2003
    Posts
    705

    Re: Help with INDEX SMALL ROW array function

    Hi,

    See attached sample ...

    HTH
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    12-17-2008
    Location
    Seattle, WA
    Posts
    39

    Thumbs up Re: Help with INDEX SMALL ROW array function

    Thank you for your help, JeanRage!

    Something appears to have gone awry, though. Your sheet returns relevant values, but not in the order or combination they should be. The results should be stacked as shown in my "desired result;" yours are in a different order and seem to combine data from other rows.

    Can you help?

    Thanks and best regards,
    ACurtis802

  4. #4
    Valued Forum Contributor JeanRage's Avatar
    Join Date
    03-02-2009
    Location
    Nice, France
    MS-Off Ver
    Excel 2003
    Posts
    705

    Re: Help with INDEX SMALL ROW array function

    Hi,

    To keep the same sequence, replace blanks by TRUE in the Field 5 column ...

    HTH

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Help with INDEX SMALL ROW array function

    If you revise your approach such that instead of FALSE you generate an incrementing number you can dispense with poor performing arrays altogether and revert to a basic index match which will perform far (far) better.

  6. #6
    Registered User
    Join Date
    12-17-2008
    Location
    Seattle, WA
    Posts
    39

    Re: Help with INDEX SMALL ROW array function

    Thanks, DonkeyOte.

    I'm not sure how to accomplish what you mentioned, but it sounds like a good idea; could you mock it up for me?

    Thanks and best regards,
    ACurtis802

  7. #7
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: INDEX SMALL ROW array function

    If you can tell me the logic that determines as to whether or not the cells should generate FALSE or not in the first instance, yes.

  8. #8
    Registered User
    Join Date
    12-17-2008
    Location
    Seattle, WA
    Posts
    39

    Re: INDEX SMALL ROW array function

    Hi again,

    The worksheet example I posted is not the entire story. In the actual worksheet, Excel is comparing two similar sets of data and generating "FALSE" if certain cells in set 1 do not correspond exactly to their counterparts in set 2 (on a row-by-row basis). I am calling out changes in evaluation and risk for a list of factories from month to month based on the prior month's static data. When there is a change in the data, the function generates "FALSE" because I am using this function to compare each row in the two sets:

    =IF(AND(B1=F1,D1=G1),"","FALSE")

    When a "FALSE" is generated, I need to aggregate the rows automatically in a separate worksheet in a simple way. Using array functions would be totally fine, but other options are also very welcome.

    I hope this provides some clarity.

    Thanks and best regards,
    Anthony

  9. #9
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: INDEX SMALL ROW array function

    OK let's assume you want to keep your FALSE separate ... let's use an adjacent cell - it will help based on the initial sample you provided anyway...

    First if we assume per your latest formula that you don't have a header row then let's delete rows 1 & 2 from your sample file such that first row of data (3) becomes row 1

    Please Login or Register  to view this content.
    Your desired results can then use this index number to retrieve data

    Please Login or Register  to view this content.
    obviously it makes sense to store the MAX in a separate cell rather than repeatedly calling it... if you have lots of data it even makes sense to store the MATCH result in a dummy column

    I think the key is that it's not the number of functions that are of primary concern rather it is the nature of functions - a handful of arrays can still be much slower than a significant number more non-array formulae combined.

    EDIT: Apologies: revised approach to negate need for exact MATCH
    Last edited by DonkeyOte; 12-09-2009 at 12:47 PM.

  10. #10
    Registered User
    Join Date
    12-17-2008
    Location
    Seattle, WA
    Posts
    39

    Re: INDEX SMALL ROW array function

    Thank you, DonkeyOte. This does the trick!

+ 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