Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default database median function????

Hello all,
My data has many criteria creating different classes or conditions that need
to be grouped together before I perform any statistics on it. As such, I
typically use functions like Daverage, Dsum, and Dcount. However, I need to
calculate the median value for each of these different conditions. Since I
can't find a database median function, I have resorted to presorting the data
and performing the median function on each individual condition (which after
the sort range from 8-15 cells long and this inconsistently varies depending
upon the condition). Whereas this works, it takes forever and it is highly
error prone. Is there any way to do something like a database median
function? Thanks in advance.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default database median function????

=MEDIAN(IF(B2:B20="criteria",A2:A20))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets), do
not try to do this manually.
When editing the formula, it must again be array-entered.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"schmidtjoseph" wrote in message
...
Hello all,
My data has many criteria creating different classes or conditions that
need
to be grouped together before I perform any statistics on it. As such, I
typically use functions like Daverage, Dsum, and Dcount. However, I need
to
calculate the median value for each of these different conditions. Since
I
can't find a database median function, I have resorted to presorting the
data
and performing the median function on each individual condition (which
after
the sort range from 8-15 cells long and this inconsistently varies
depending
upon the condition). Whereas this works, it takes forever and it is highly
error prone. Is there any way to do something like a database median
function? Thanks in advance.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default database median function????

Thank you so much! Excellent!
Currently I am using
{=MEDIAN(IF('s1'!X:X=1,IF('s1'!Y:Y=1,IF('s1'!Z:Z=1 ,'s1'!W:W))))} and it seems
to match when sort the data and do the median function by hand. So, I think
this is right! You would think with all of the database functions excel
already has, a database median function would be available.


"Bob Phillips" wrote:

=MEDIAN(IF(B2:B20="criteria",A2:A20))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets), do
not try to do this manually.
When editing the formula, it must again be array-entered.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"schmidtjoseph" wrote in message
...
Hello all,
My data has many criteria creating different classes or conditions that
need
to be grouped together before I perform any statistics on it. As such, I
typically use functions like Daverage, Dsum, and Dcount. However, I need
to
calculate the median value for each of these different conditions. Since
I
can't find a database median function, I have resorted to presorting the
data
and performing the median function on each individual condition (which
after
the sort range from 8-15 cells long and this inconsistently varies
depending
upon the condition). Whereas this works, it takes forever and it is highly
error prone. Is there any way to do something like a database median
function? Thanks in advance.




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
median function flyingmeatball Excel Worksheet Functions 1 August 17th 06 05:58 PM
median function flyingmeatball Excel Worksheet Functions 2 August 17th 06 04:35 PM
MEDIAN() as array function? Henrik Excel Worksheet Functions 6 October 11th 05 11:35 PM
Median function pamanaf Excel Discussion (Misc queries) 1 August 10th 05 02:16 PM
Can I use median function in Pivot Tables? larrymorris4 Excel Worksheet Functions 2 December 30th 04 06:49 PM


All times are GMT +1. The time now is 11:34 PM.

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

About Us

"It's about Microsoft Excel"