+ Reply to Thread
Results 1 to 4 of 4

How To... array formula that filters by multiple criteria on same column

  1. #1
    Registered User
    Join Date
    07-11-2014
    Location
    Buenos Aires
    MS-Off Ver
    2010
    Posts
    16

    Exclamation How To... array formula that filters by multiple criteria on same column

    Hi...

    Basically what I have is a function that will calculate Percentile based on an array formula

    The formula goes like this

    =PERCENTILE(SI('RAW C TIME'!$D$2:$D$51816=$J7,IF('RAW C TIME'!$J$2:$J$51816=$K$4,IF($K$3="(All)",'RAW C TIME'!$I$2:$I$51816,IF('RAW C TIME'!$G$2:$G$51816=$K$3,'RAW C TIME'!$I$2:$I$51816)))),N$6)

    The last IF is filtering by the value in $K$3, which is the year... Now, we need to add support for this to return records not just for one year... so if in the filter cell we choose 3 options (2011,2012,203) of the 8 possible options, we need the filter to use those 3 values

    I read somewhere that that would be solved like this

    IF((CRITEARIA A)*(CRITERIA B)*...*(CRITERIA N), VALUE IF TRUE, VALUE IF FALSE)

    I tried this, first by just hardcoding the values for K3, but I am not getting any value...

    My questions are...

    1. Is this the right way to do this filtering?
    2. Is the "*" working as an AND or an OR in that case? Or is it something different?

    Thanks

  2. #2
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: How To... array formula that filters by multiple criteria on same column

    1. Could you please upload your workbook to let me help you answer that question
    2. The "*" act similarly to an AND, but the AND function cannot return an array, whereas the * can return an array. Each condition will return TRUE/FALSE (or 1/0), and multiplying them together forces all values to be 1 (or TRUE) for the expression to evaluate to 1 (or TRUE), as multiplying anything by 0 (or FALSE) will force the entire expression to be 0 (or FALSE). I hope this answers question 2 satisfactorily for you

    Thanks

  3. #3
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: How To... array formula that filters by multiple criteria on same column

    Use * for AND.. and + for OR
    Try this
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Don't forget to click *

  4. #4
    Registered User
    Join Date
    07-11-2014
    Location
    Buenos Aires
    MS-Off Ver
    2010
    Posts
    16

    Re: How To... array formula that filters by multiple criteria on same column

    Thanks! This sure helped

+ 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. [SOLVED] Array Formula for multiple criteria
    By nickmessick1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-01-2013, 11:23 AM
  2. Min with Multiple criteria in different column(not array Formula)
    By jameybond in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-12-2012, 11:50 AM
  3. Sum if array formula, with multi criteria, some in the same column
    By carlosmaldonado in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-12-2012, 04:30 AM
  4. [SOLVED] Excel 2007 : Multiple criteria without using an array formula
    By picasso194 in forum Excel General
    Replies: 7
    Last Post: 05-20-2012, 12:33 PM
  5. Array Formula with multiple criteria
    By amotto11 in forum Excel General
    Replies: 2
    Last Post: 05-14-2012, 03:22 PM

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