Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / August 2006

Tip: Looking for answers? Try searching our database.

median function

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
flyingmeatball - 17 Aug 2006 16:13 GMT
In Column A I have the ages of a random number of people.  I need to
take the median of the top 25% of this list.  First I sorted the list,
and now i need to run Median(A1:AX) Where X is the cell that equals 25%
of my total population.  My problem is the population(and thus the
number of rows used) is constantly changing.  How can I put in a value
for AX into this equation? Thanks in advance.
Karl

Signature

flyingmeatball

Toppers - 17 Aug 2006 16:31 GMT
try:

=MEDIAN(INDIRECT("A1:A"&INT(COUNTA(A:A)/4)))

This rounds down so that if there are 27 numbers, median is calculated as A1
to A6 ....should it be A1 to A7?

HTH

> In Column A I have the ages of a random number of people.  I need to
> take the median of the top 25% of this list.  First I sorted the list,
[quoted text clipped - 3 lines]
> for AX into this equation? Thanks in advance.
> Karl
Barb Reinhardt - 17 Aug 2006 16:35 GMT
Let's say the ages are in A2:A26.

I'd use the following function

=MEDIAN(IF(A2:A26>QUARTILE(A2:A26,3),A2:A26))

COMMIT using CTRL SHIFT ENTER and you should see {} around the whole thing.  

I'd probably use a named range with an offset to determine the dynamic range
for A2:A26, but that's another whole conversation.    Check here for
information on dynamic ranges

http://www.cpearson.com/excel/named.htm

> In Column A I have the ages of a random number of people.  I need to
> take the median of the top 25% of this list.  First I sorted the list,
[quoted text clipped - 3 lines]
> for AX into this equation? Thanks in advance.
> Karl
 
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.