+ Reply to Thread
Results 1 to 4 of 4

Small if Array K- Use with filter

  1. #1
    Registered User
    Join Date
    01-25-2010
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2003
    Posts
    18

    Small if Array K- Use with filter

    I have a formula
    Please Login or Register  to view this content.
    I am trying to get the next match on filtered rows using the subtotal function for the K part. The problem is that when I unfilter, it returns the incorrect result as the K has changed because it is adding all the rows. Is there a way to change the K part so the result will remain the same for filtered and unfiltered rows and making sure it also increments by 1 as well?

    I will be using Excel 2007.
    Attached Files Attached Files
    Last edited by hiker100; 09-14-2011 at 09:55 PM. Reason: Clarification

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Small if Array K- Use with filter

    I am kind of confused as to what you are trying to accomplish.

    Firstly, what is K part?

    Secondly, what exactly are you trying to count and on what conditions?

    Please show expected results based on filtering you perform.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

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

    Re: Small if Array K- Use with filter

    Perhaps try this version

    =INDEX($B$9:$B$11,SMALL(IF($A$9:$A$11<>"",ROW($A$9:$A$11)-ROW($A$9)+1),COUNT(C$1:C1)+1))
    Audere est facere

  4. #4
    Registered User
    Join Date
    01-25-2010
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Small if Array K- Use with filter

    So, I am tyring to get all the matches for A that is in the lookup table A9 to A12.
    I am using the K part for the small function to find the next match in my lookup.
    Most people use Rows($A$1:A1) to increment by 1, or manually put in the number 2,3 and so on.
    I am using subtotal to use with hidden rows, but it is not working properly.

    The problem is that it does not increase by one if the rows that are being filled in with the lookup are filtered and not contiguous.

    Daddylonglegs that works, but will not work properly if there are numbers in the hidden rows. Is there a way to put maybe the references for the Count or maybe even numbers like 1,2,3... outside the filtered range to reference and have it still increment by one?
    Last edited by hiker100; 09-17-2011 at 10:38 AM. Reason: Correction

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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