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 Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Percentile Formula for Access



 
 
Thread Tools Display Modes
  #1  
Old July 8th, 2008, 10:19 PM posted to microsoft.public.access.queries
ZombieGeoff
external usenet poster
 
Posts: 2
Default Percentile Formula for Access

I am trying to create a query that will calculate the 25th, 50th, and 75th
percentile of salaries within specific job codes. I currently have a table of
all the job codes I am looking for and it is linking to a table of all the
employees in the company (which includes their job codes and salaries). Does
anyone know the formula to calculate this?

The field names I am using a
[JobCode] = Specific Job Codes I am looking for
[CountofID] = Number of employees in the job
[AnnualRate] = Current Salary

I know in excel the formula is =Percentile(array,x). This is an ongoing
project and the list of jobs will constantly change (as well as the # of
employees in each job code) and am trying to get away from doing this in
excel.

Any help would be greatly appreciated!
  #2  
Old July 9th, 2008, 02:04 PM posted to microsoft.public.access.queries
Michel Walsh
external usenet poster
 
Posts: 2,404
Default Percentile Formula for Access

If the is no null in the field, you can try

http://www.mvps.org/access/queries/qry0019.htm


The expression does not work if you use a coma as decimal delimiter, in that
case, change

X * DCount("*", TName)

to

INT(X * DCount("*", TName))



Vanderghast, Access MVP


"ZombieGeoff" wrote in message
...
I am trying to create a query that will calculate the 25th, 50th, and 75th
percentile of salaries within specific job codes. I currently have a table
of
all the job codes I am looking for and it is linking to a table of all the
employees in the company (which includes their job codes and salaries).
Does
anyone know the formula to calculate this?

The field names I am using a
[JobCode] = Specific Job Codes I am looking for
[CountofID] = Number of employees in the job
[AnnualRate] = Current Salary

I know in excel the formula is =Percentile(array,x). This is an ongoing
project and the list of jobs will constantly change (as well as the # of
employees in each job code) and am trying to get away from doing this in
excel.

Any help would be greatly appreciated!



 




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 03:50 PM.


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