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  

Computing Median



 
 
Thread Tools Display Modes
  #1  
Old September 13th, 2005, 03:54 PM
mcl
external usenet poster
 
Posts: n/a
Default Computing Median

I need to compute the median not an average.
Using help in Access 2000 it says there is a worksheet function "median".
No there is not. It says undefined function when I try to use it.
I have found the help in access 2000 to be totally worthless. It gives me
answers that are out and out wrong.


  #2  
Old September 13th, 2005, 04:14 PM
KARL DEWEY
external usenet poster
 
Posts: n/a
Default

Do a search on "median" and you will find lots of information.

"mcl" wrote:

I need to compute the median not an average.
Using help in Access 2000 it says there is a worksheet function "median".
No there is not. It says undefined function when I try to use it.
I have found the help in access 2000 to be totally worthless. It gives me
answers that are out and out wrong.



  #3  
Old September 13th, 2005, 05:15 PM
mcl
external usenet poster
 
Posts: n/a
Default

I did a search for median in access2000 help and that's all I got. A
worksheet function that doesn't really exist.

"KARL DEWEY" wrote in message
...
Do a search on "median" and you will find lots of information.

"mcl" wrote:

I need to compute the median not an average.
Using help in Access 2000 it says there is a worksheet function

"median".
No there is not. It says undefined function when I try to use it.
I have found the help in access 2000 to be totally worthless. It gives

me
answers that are out and out wrong.





  #4  
Old September 13th, 2005, 07:08 PM
MGFoster
external usenet poster
 
Posts: n/a
Default

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The VBA help also includes the Excel VBA help, that's where the Median()
function description is coming from.

Here is a query I found on an SQL Server newsgroup that supposedly finds
the median (I've changed it's syntax so it can be used in Access -
substitute your column names and table names) [this query is untested in
access]:

SELECT AVG(splunge1) As Median
FROM
(
SELECT splunge1 FROM (
SELECT TOP 1 splunge2 * 1.0 As splunge1 FROM
(
SELECT TOP 50 PERCENT splunge2
FROM blat ORDER BY splunge2
) As sub_a
ORDER BY 1 DESC
) As sub_1
UNION ALL
SELECT splunge1 FROM (
SELECT TOP 1 splunge * 1.0 As splunge1 FROM
(
SELECT TOP 50 PERCENT splunge2
FROM blat ORDER BY splunge2 DESC
) As sub_b
ORDER BY 1
) As sub_2
) As median
--
MGFoster:::mgf00 at earthlink decimal-point net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQycVvYechKqOuFEgEQIfmQCgjD/E/IqAwX+6yfS2rcsuPf77uMwAoPfx
kkIpTi9HrhP8r8chWHLDoWD8
=ssYD
-----END PGP SIGNATURE-----

mcl wrote:
I did a search for median in access2000 help and that's all I got. A
worksheet function that doesn't really exist.

"KARL DEWEY" wrote in message
...

Do a search on "median" and you will find lots of information.

"mcl" wrote:


I need to compute the median not an average.
Using help in Access 2000 it says there is a worksheet function
"median".


No there is not. It says undefined function when I try to use it.
I have found the help in access 2000 to be totally worthless. It gives
me answers that are out and out wrong.

 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Find Median of Positive numbers only in Range MichaelC Worksheet Functions 4 June 24th, 2005 03:06 AM
how do I calculate a median in access? rsteele General Discussion 7 May 18th, 2005 09:02 PM
Access NEEDS to have a median function. PRSAMA Running & Setting Up Queries 4 October 30th, 2004 11:51 PM
Calculate MEDIAN in queries Dirk Running & Setting Up Queries 8 September 14th, 2004 04:42 PM
MEDIAN function Mr. Bill Worksheet Functions 1 November 20th, 2003 10:08 PM


All times are GMT +1. The time now is 11:32 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.