+ Reply to Thread
Results 1 to 4 of 4

Adding another condition to an INDEX SMALL array

Hybrid View

  1. #1
    Registered User
    Join Date
    12-21-2011
    Location
    Oxford
    MS-Off Ver
    Excel 2007
    Posts
    2

    Adding another condition to an INDEX SMALL array

    Hi - I need to add in another condition to the following formula -

    {=IF(K2="None Required","None Required",IF(K2="","",INDEX('99-115-10'!$E$2:$E$700,SMALL(IF((K2='99-115-10'!$L$2:$L$700)*(COUNTIF(Matrix!$H$1:L1,'99-115-10'!$E$2:$E$700)=0),ROW('99-115-10'!$L$2:$L$700)-MIN(ROW('99-115-10'!$L$2:$L$700))+1,""),1))))}

    Essentially in addition to the other conditions I want it to only return the values IF('99-115-10'!$F$2:$F$700="" but I can't get the syntax right. I thought it might be something like -
    {=IF(K2="None Required","None Required",IF(K2="","",INDEX('99-115-10'!$E$2:$E$700,SMALL((IF('99-115-10'!$F$2:$F$700="")*if(((K2='99-115-10'!$L$2:$L$700)*(COUNTIF(Matrix!$H$1:L1,'99-115-10'!$E$2:$E$700)=0),ROW('99-115-10'!$L$2:$L$700)-MIN(ROW('99-115-10'!$L$2:$L$700))+1,""),1))))}

    However, sadly that doesn't work - bad syntax. Can anyone help me tidy this formula up?

    Also - first post, whoop.
    Last edited by reborn537; 12-29-2011 at 06:03 AM.

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

    Re: Adding another condition to an INDEX SMALL array

    Try:

    =IF(K2="None Required","None Required",IF(K2="","",INDEX('99-115-10'!$E$2:$E$700,SMALL(IF((K2='99-115-10'!$L$2:$L$700)*(COUNTIF(Matrix!$H$1:L1,'99-115-10'!$E$2:$E$700)=0)*('99-115-10'!$F$2:$F$700=""),ROW('99-115-10'!$L$2:$L$700)-MIN(ROW('99-115-10'!$L$2:$L$700))+1,""),1))))
    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
    Registered User
    Join Date
    12-21-2011
    Location
    Oxford
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Adding another condition to an INDEX SMALL array

    That works, excellent. Can you let me know where I was going wrong?

    Also, can you tell me how to mark a thread as solved please?

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

    Re: Adding another condition to an INDEX SMALL array

    You were already multiplying two conditions together... you just need to multiply the new condition... multiplying conditions together is like nesting IFs.


    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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