Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / May 2006

Tip: Looking for answers? Try searching our database.

XPercentile function returns different value to Excel

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TomP - 15 May 2006 15:53 GMT
Hi There,

Any help would be greatly appreciated from this forum:

I am using the XPercentile function available here:

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

The problem is that it sometimes it returns different values to that of

the Percentile function in Excel (when using exactly the same array of
data). For example, using the following array "Outlet_Size:"

Outlet_Size
0
0
0
0
0
0
15
0
13.5
15.75
10.5

In Access, Xpercentile("Outlet_Size","PercentileBaseArray",0.667)
returns 10.5
In Excel, =PERCENTILE($A$2:$A$12,0.667) returns 7.035

Can anyone shed any light as to why the different values? Does the
Excel function work in a different way? Ultimately, my results in
Access need to be consistently the same as in Excel.

Many thanks in advance for any help.

Tom
Tim Ferguson - 15 May 2006 19:16 GMT
"TomP" <tommytipee@hotmail.com> wrote in news:1147704800.958110.106850
@i40g2000cwc.googlegroups.com:

> Outlet_Size
> 0
[quoted text clipped - 14 lines]
>
> Can anyone shed any light as to why the different values?

One is interpolating, the other one is taking the nearest data point. I
don't think that either one is wrong or right -- in this case, it's
simply a weakness of using percentiles (or, in this case you've specified
three sf, so it's actually a mill-ile): in some statistical circles it
would be called dishonest.

> Does the Excel function work in a different way?

Evidently. What question do you want to answer:

1) if these data were representative of a whole population of something,
how big an outlet size would be big enough for the smallest two-thirds?

2) out of these data, how big an outlet is big enough for the smallest
two-thirds?

When you know which is the right question, you'll be able to get the
correct solution!

> Ultimately, my results in
> Access need to be consistently the same as in Excel.

Don't they need rather to be correct?

HTH

Tim F
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.