+ Reply to Thread
Results 1 to 6 of 6

create a sub array with multiple criteria

  1. #1
    Registered User
    Join Date
    05-01-2017
    Location
    SYDNEY
    MS-Off Ver
    2010
    Posts
    3

    create a sub array with multiple criteria

    I have an array of data but i want to create a sub array based on 2 criteria

    my formula works fine with one criteron but not works with multiple criteria. I also found my formula does not use calculated fields as condition


    {=IFERROR(INDEX('PMO - VSN'!D$4:D$900,SMALL(IF('PMO - VSN'!$AJ$4:$AJ$900="-",ROW('PMO - VSN'!D$4:D$900)-ROW('PMO - VSN'!D$4)+1),ROWS('PMO - VSN'!D$4:D4))),"")} or
    {=IFERROR(INDEX('PMO - VSN'!D$4:D$900,SMALL(IF('PMO - VSN'!$AN$4:$AN$900>DATE(2017,6,30),ROW('PMO - VSN'!D$4:D$900)-ROW('PMO - VSN'!D$4)+1),ROWS('PMO - VSN'!D$4:D4))),"")}


    both of them works individually but when i combine them into one formula, only the 1st cell of the result appears and the rest of them are blank

    {=IFERROR(INDEX('PMO - VSN'!D$4:D$900,SMALL(IF(AND('PMO - VSN'!$AJ$4:$AJ$900="-",'PMO - VSN'!$AN$4:$AN$900>DATE(2017,6,30)),ROW('PMO - VSN'!D$4:D$900)-ROW('PMO - VSN'!D$4)+1),ROWS('PMO - VSN'!D$4:D4))),"")}

    I tried to generate a new field in row data to combine both criteria but does not work




    can anyone help?
    Last edited by mfhxilc2; 03-26-2018 at 12:41 AM.

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,926

    Re: create a sub array with multiple criteria

    Hello mfhxilc2 and Welcome to Excel Forum.
    Try the following:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    With the 2010 version it is possible that this could be rewritten as an AGGREGATE based formula and not need to be array entered. If you could upload a sample of your data we could attempt to write that for you.
    To upload a sample workbook click on the GO ADVANCED button below the Quick Reply window and then scroll down to Manage Attachments to open the upload window.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Registered User
    Join Date
    05-01-2017
    Location
    SYDNEY
    MS-Off Ver
    2010
    Posts
    3

    Re: create a sub array with multiple criteria

    Hi JeteMc


    thanks for the reply

    I attached the sample dateset as well as test tab with formula

    I found the formula works fine if i generate a new column to combine both criteria
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,926

    Re: create a sub array with multiple criteria

    The following regular AGGREGATE based formulas yield the same results as those that were previously in columns A, C, and G. I believe that the formula for column E is yielding the correct results although different from what displayed in the file attached to post #3.
    Column A:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Column C:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Column E:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Column G:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.

  5. #5
    Registered User
    Join Date
    05-01-2017
    Location
    SYDNEY
    MS-Off Ver
    2010
    Posts
    3

    Re: create a sub array with multiple criteria

    HI JeteMc

    thanks for your solution - it does work fine!!!!


    another thing is worthy of mentioning that the format of the condition column impacts the outcomes - if any error value exists in that column the formula does not work - therefore i convert any error value from that condition column into a blank. the forum is also working


    thanks everyone

    i found this forum is extremely helpful although this is my first time using it

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,926

    Re: create a sub array with multiple criteria

    You're Welcome and thank you for the feedback. Please take a moment to mark the thread as 'Solved' using the thread tools drop down in the ribbon above your first post. I hope that you have a blessed day.

+ 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. probability distribution count if complicated conditions....
    By cynthia_74 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-29-2014, 03:21 AM
  2. Help on complicated array lookup
    By renahearn in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-23-2014, 02:25 PM
  3. Complicated Match Formula with conditions
    By kadayadi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-11-2014, 06:04 PM
  4. [SOLVED] A complicated Look UP table with multiple conditions
    By Excel Dumbo in forum Excel General
    Replies: 14
    Last Post: 07-16-2012, 10:36 PM
  5. Complicated array problem
    By semper_si in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-09-2007, 07:26 PM
  6. Help with a complicated array formula
    By boooney in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-14-2005, 02:10 AM
  7. complicated array
    By boris in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-01-2005, 07:06 AM

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