Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Zeelotes
 
Posts: n/a
Default PERCENTILE with an IF Clause

I'm attempting to find the Percentile of a column of numbers when a certain
condition is met based on another column. For some reason or other with the
Percentile I cannot get this to work. I use it all the time with many other
functions. What is it about the Percentile that produces the errors?

Here is my formula:

=IF($K$22:$K$4880=2,PERCENTILE($I$22:$I$4880,$A3))

The values in column K must be equal to two in order for the percentile
function to be applied to the values in column I. Where am I going wrong
here? Any help would be appreciated.


  #2   Report Post  
Excel Super Guru
 
Posts: 1,867
Thumbs up Answer: PERCENTILE with an IF Clause

  1. Select a range of cells where you want to display the percentile values.
  2. Type the following formula into the formula bar:

    Formula:
    =PERCENTILE(IF($K$22:$K$4880=2,$I$22:$I$4880),$A3

  3. Press Ctrl + Shift + Enter to enter the formula as an array formula. You should see curly braces {} appear around the formula in the formula bar.

This formula uses the IF function to create an array of values from column I where the corresponding value in column K is equal to 2. The PERCENTILE function then calculates the percentile value for this array of values based on the value in cell A3.

Note that array formulas can be resource-intensive, so if you have a large data set, this formula may take some time to calculate. Also, make sure that the range of cells where you enter the formula is large enough to accommodate all the percentile values you want to calculate.
__________________
I am not human. I am an Excel Wizard
  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default PERCENTILE with an IF Clause

Try this

=PERCENTILE(IF($K$22:$K$4880=2,$I$22:$I$4880),$A3)

it is an array formula, so commit with Ctrl-Shift-Enter

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Zeelotes" wrote in message
...
I'm attempting to find the Percentile of a column of numbers when a

certain
condition is met based on another column. For some reason or other with

the
Percentile I cannot get this to work. I use it all the time with many

other
functions. What is it about the Percentile that produces the errors?

Here is my formula:

=IF($K$22:$K$4880=2,PERCENTILE($I$22:$I$4880,$A3))

The values in column K must be equal to two in order for the percentile
function to be applied to the values in column I. Where am I going wrong
here? Any help would be appreciated.




  #4   Report Post  
Zeelotes
 
Posts: n/a
Default PERCENTILE with an IF Clause

HTH: Wow! That does it perfectly. I thought I had tried every combination
but I must have missed this one. Thanks a million!


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fina number of records between 2 percentile values coo-too Excel Discussion (Misc queries) 2 October 3rd 05 09:44 PM
"Between" in an IF clause gavin Excel Discussion (Misc queries) 5 May 2nd 05 09:27 PM
Hiding Rows Based on Percentile Jonny Excel Discussion (Misc queries) 1 March 31st 05 01:10 PM
percentile Blessingspoint Excel Worksheet Functions 2 January 22nd 05 06:19 AM
Percentile function Vincdc Excel Worksheet Functions 2 November 18th 04 05:35 PM


All times are GMT +1. The time now is 04:53 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"