+ Reply to Thread
Results 1 to 4 of 4

Percentile calculation with 2 conditions

  1. #1
    Registered User
    Join Date
    01-05-2010
    Location
    Lausanne, Switzerland
    MS-Off Ver
    Excel 2003
    Posts
    7

    Percentile calculation with 2 conditions

    Hello hello,

    I'm torturing my brain for hours now, trying to calculate Percentile from an excel list, with 2 conditions.
    I made it work with a single condition, but no way to find the trick when there're 2..

    I have actually a table of +1000 lines and I'd need to get the 20/50/80 percentile from it (column D - case_quality).

    The thing is, I need to get those percentile for each different occurrence in Column B (Partner) AND by week (column C).

    id partner week case_quality
    30 ourselves 15 100
    36 Partner 2 15 100
    46 Partner 2 16 100
    439 ourselves 16 65
    440 ourselves 17 100
    ...

    It works when I use only 1 condition, like here :
    {=PERCENTILE(IF(datas!$B$2:$B$1146="ourselves";datas!$D$2:$D$1146);20%)}


    but I can't get it with 2 condition.. the closest I've been (meaning, getting no error back) is the following formula but it only returns me 0 :
    {=PERCENTILE(IF(AND(datas!$B$2:$B$1146="ourselves";datas!$C$2:$C$1146="17");datas!$D$2:$D$1146);20%)}

    Any idea what I'm actually doing wrong ?

    Thanks in advance for the little help,
    regards from Switzerland

    steve
    Attached Files Attached Files

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Percentile calculation with 2 conditions

    Maybe like this. Both are array formulas.
    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    01-05-2010
    Location
    Lausanne, Switzerland
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Percentile calculation with 2 conditions

    Hi Sgh,

    Thanks for your reply, your 2nd proposition (D13 & down..) seems to work as I needed it. So Thank you !

    But I've to admit I can't understand it as I really didn't know that there were another usage for * (asterisk) than multiplication..
    I've found many formulas using asterisk by searching for the Percentile but searching google didn't allow me to get relevant informations on its usage.. and I still don't get its purpose..
    Does it simply work like an AND within the IF formula ?

    Thank you,
    And excuse my self-educated english..

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Percentile calculation with 2 conditions

    AND returns a single result; you need an array of results.

    When true/false values are arguments to an arithmetic expression (here, multiplication), they are coerced to 1/0.

+ 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