A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

A Percentile IF function



 
 
Thread Tools Display Modes
  #1  
Old February 12th, 2010, 02:54 AM posted to microsoft.public.excel.worksheet.functions
RGulley
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(D18,"a",E1:E8)
So ideally I want to be able to have a =PERCENTILEIF(D18,"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  
Old February 12th, 2010, 03:20 AM posted to microsoft.public.excel.worksheet.functions
Joe User[_2_]
external usenet poster
 
Posts: 757
Default A Percentile IF function

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


Try the following array formula[*]:

=percentile(if(D18="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(D18,"a",E1:E8)
So ideally I want to be able to have a =PERCENTILEIF(D18,"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
?


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:40 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.