Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default A Percentile IF function

Hi i was running if there was a percentile IF function or a way to run
something similar to an average if function.
Lets say I have a data set like below
a 6
b 1
b 2
b 3
a 4
b 5
a 10
c 12
What I want to achieve is to find the percentile of all data points that are
taged "a".
The average if function for this data looks like =AVERAGEIF(D1:D8,"a",E1:E8)
So ideally I want to be able to have a =PERCENTILEIF(D1:D8,"a",E1:E8),
sorting column d is no appropriare as different filters are constantly
applied to this data set.
Potentially I would want to run a LOOKUP loop of something like that
?


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 905
Default A Percentile IF function

"RGulley" wrote:
The average if function for this data looks
like =AVERAGEIF(D1:D8,"a",E1:E8)
So ideally I want to be able to have a
=PERCENTILEIF(D1:D8,"a",E1:E8)


Try the following array formula[*]:

=percentile(if(D1:D8="a",E1:E8),50%)
[*] Commit an array formula by pressing ctrl+shift+Enter instead of just
Enter. You should see curly braces around the entire formula in the Formula
Bar, e.g. {=formula}. Note that you cannot type the curly braces yourself;
Excel adds them. If you make a mistake, select the cell and press F2, edit
the formula if necessary, then press ctrl+shift+Enter.


----- original message -----

"RGulley" wrote:
Hi i was running if there was a percentile IF function or a way to run
something similar to an average if function.
Lets say I have a data set like below
a 6
b 1
b 2
b 3
a 4
b 5
a 10
c 12
What I want to achieve is to find the percentile of all data points that are
taged "a".
The average if function for this data looks like =AVERAGEIF(D1:D8,"a",E1:E8)
So ideally I want to be able to have a =PERCENTILEIF(D1:D8,"a",E1:E8),
sorting column d is no appropriare as different filters are constantly
applied to this data set.
Potentially I would want to run a LOOKUP loop of something like that
?


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
Percentile TallPaul Excel Worksheet Functions 2 October 21st 09 07:31 PM
Percentile PAL Excel Worksheet Functions 1 October 17th 09 12:47 PM
Percentile function in Excel Philippe Excel Discussion (Misc queries) 2 October 18th 06 10:17 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 06:03 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"