+ Reply to Thread
Results 1 to 4 of 4

PERCENTILE with IFs?

  1. #1
    Registered User
    Join Date
    07-19-2013
    Location
    Albany, NY
    MS-Off Ver
    Excel 2010
    Posts
    45

    PERCENTILE with IFs?

    I'm trying to determine a certain percentile of an array of numbers using an PERCENTILE function. However, I only want to include certain numbers within this array in the calculation. The numbers I want to include all have the same value in an adjacent column, so I'm thinking I can do something similar to a SUMIF where the adjacent column will be checked to see if the correct value is present before the number is added to the array. Is there a way I can accomplish this within a PERCENTILE function? Thanks in advance for any assistance.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,719

    Re: PERCENTILE with IFs?

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: PERCENTILE with IFs?

    =PERCENTILE(IF(B1:B3="y",A1:A3,""),0.5)

    I'd think that would work. It's an array formula so confirm with ctrl+shift+enter

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,703

    Re: PERCENTILE with IFs?

    You can use an array formula, e.g. this gives you the 75th percentile of B2:B100 wwhen A2:A100 = "x"

    =PERCENTILE(IF(A2:A100="x",B2:B100),75%)

    confirm with CTRL+SHIFT+ENTER so that the formula is wrapped in curly braces like { and }
    Audere est facere

+ 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] Conditional percentile: Bug in percentíle function?
    By Duronka in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-13-2013, 08:08 AM
  2. [SOLVED] PERCENTILE.INC and PERCENTILE.EXC - difference
    By Saturn in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-19-2012, 11:34 AM
  3. Percentile
    By sachinattri in forum Excel General
    Replies: 12
    Last Post: 06-04-2009, 01:01 PM
  4. Percentile...IF
    By brook1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-16-2006, 06:52 AM
  5. [SOLVED] percentile
    By Blessingspoint in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-22-2005, 03:08 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