+ Reply to Thread
Results 1 to 3 of 3

Conditional reset of INDEX SMALL IF function to start with first result again

  1. #1
    Registered User
    Join Date
    04-25-2017
    Location
    London
    MS-Off Ver
    2007
    Posts
    2

    Conditional reset of INDEX SMALL IF function to start with first result again

    Hi there!

    I have been pondering for some time about a problem I cannot seem to solve on my own. I use a INDEX SMALL IF function to produce multiple values from a table, which works fine (e.g. which fruits does Tom sell, results: apple, banana, cherry).
    Now, I have other names below Tom (using the same output table), where the fomula should work in the same way (e.g., which fruits does Michael sell, results: banana, papaya) and gather information from the same table.

    The problem is, that the content in the table which is searched will change (e.g. Tom only sells apples and bananas, but no cherries anymore). Therefore, the output table will change in length (Tom only needs two rows instead of three), and the whole output table moves up by one row.

    How can I modify the INDEX SMALL IF functions, so that it starts again with the first result for a new name (e.g., Michael). If I just copy it down, it will look for the nth result (e.g., 4th result after Toms results are there). I want it to restart at the first result (i.e. 1:1) for a certain condition (e.g., new name on the left).

    Can someone help me with this? This would be really great!

    Best,
    Max

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

    Re: Conditional reset of INDEX SMALL IF function to start with first result again

    Is this what you are saying?

    You have a list of names that you want to search for using an INDEX SMALL IF formula ?

    Use a MATCH within your SMALL IF.
    But if your names are not grouped together you'll end up with a bit of a mess.
    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
    Registered User
    Join Date
    04-25-2017
    Location
    London
    MS-Off Ver
    2007
    Posts
    2

    Re: Conditional reset of INDEX SMALL IF function to start with first result again

    Thanks for your reply!

    Actually, I am trying to construct a INDEX SMALL IF formula which I can copy down for the whole column. This formula should produce multiple results (e.g., 1-3) for one criteria (e.g., "Tom" referenced from the left) and then start again with result 1 once the criteria on the left changes (e.g., the formula now looks for "Michael" instead of "Tom"). If I just change the criteria on the left then the formula will look for the 4th result for the new criteria "Michael", since the copying of the formula increases the ROW(1:1), which indicates the 1st, 2nd, 3rd, ... result, right?

+ 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. Index+Small and divide result
    By daboho in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-02-2016, 05:30 AM
  2. Index, small, if, row llok up multiple values and return a result
    By 077james86 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-28-2015, 02:31 PM
  3. [SOLVED] Problem with function INDEX, SMALL AND IF
    By dejussy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-08-2014, 10:36 PM
  4. Replies: 10
    Last Post: 05-22-2014, 06:44 AM
  5. [SOLVED] Help speed up slow INDEX (SMALL function
    By submariner18 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-12-2012, 01:14 PM
  6. INDEX SMALL with conditional IF and OR
    By cedarhill in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-01-2010, 02:43 PM
  7. INDEX SMALL ROW array function
    By ACurtis802 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-10-2009, 02:10 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