Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Mike
 
Posts: n/a
Default Median of Even Set; How to Capture them?

Hi everyone,

Say I have a dat set such as:

4
5
6
7

The median is (5+6)/2=5.5!

However, I am not interested in the answer here, but the 5 and the 6!!!

Is there an excel function or way to do so?

Thanks alot,
Mike

  #2   Report Post  
Morrigan
 
Posts: n/a
Default


Do you want the output in one single cell or in 2 separate cells?


Mike Wrote:
Hi everyone,

Say I have a dat set such as:

4
5
6
7

The median is (5+6)/2=5.5!

However, I am not interested in the answer here, but the 5 and the
6!!!

Is there an excel function or way to do so?

Thanks alot,
Mike



--
Morrigan
------------------------------------------------------------------------
Morrigan's Profile: http://www.excelforum.com/member.php...fo&userid=7094
View this thread: http://www.excelforum.com/showthread...hreadid=390763

  #3   Report Post  
olasa
 
Posts: n/a
Default


Here is one solution to find "the Reversed Median".

Value One:
=IF(ISODD(COUNT(A1:A6)),INDEX(LARGE(A1:A6,ROW(INDI RECT("1:"&COUNT(A1:A6)))),(COUNT(A1:A6)+1)/2),INDEX(LARGE(A1:A6,ROW(INDIRECT("1:"&COUNT(A1:A6 )))),(COUNT(A1:A6))/2))

Value Two:
=IF(ISODD(COUNT(A1:A6)),"",INDEX(LARGE(A1:A6,ROW(I NDIRECT("1:"&COUNT(A1:A6)))),(COUNT(A1:A6)+2)/2))

Example:
1, 2, 2, 4, 5, 6 -- 2 and 4
1, 2, ,4, 5, 6 -- 4

Hope it helped
Ola Sandström


Attached zip-file:
http://www.excelforum.com/attachment...tid=3648&stc=1


+-------------------------------------------------------------------+
|Filename: Book5.zip |
|Download: http://www.excelforum.com/attachment.php?postid=3648 |
+-------------------------------------------------------------------+

--
olasa
------------------------------------------------------------------------
olasa's Profile: http://www.excelforum.com/member.php...o&userid=17760
View this thread: http://www.excelforum.com/showthread...hreadid=390763

  #4   Report Post  
Mike
 
Posts: n/a
Default

Morrigan,

I want them in TWO different cells........thanks,

Mike

  #5   Report Post  
Mike
 
Posts: n/a
Default

Olasa,

Tried your formula, but none of them did work!

Have you tried them on an example to see if they are working as they
appear above?

Mike



  #6   Report Post  
Jerry W. Lewis
 
Posts: n/a
Default

Those are awfully complex formulas for a simple calculation. Why not
=LARGE(A1:A6,COUNT(A1:A6)/2)
for the median (if n odd) or the larger middle value (if n even), and
=IF(ISEVEN(COUNT($A$1:$A$6)),SMALL($A$1:$A$6,COUNT ($A$1:$A$6)/2),"")
for the smaller middle value (if n even)

Jerry

olasa wrote:

Here is one solution to find "the Reversed Median".

Value One:
=IF(ISODD(COUNT(A1:A6)),INDEX(LARGE(A1:A6,ROW(INDI RECT("1:"&COUNT(A1:A6)))),(COUNT(A1:A6)+1)/2),INDEX(LARGE(A1:A6,ROW(INDIRECT("1:"&COUNT(A1:A6 )))),(COUNT(A1:A6))/2))

Value Two:
=IF(ISODD(COUNT(A1:A6)),"",INDEX(LARGE(A1:A6,ROW(I NDIRECT("1:"&COUNT(A1:A6)))),(COUNT(A1:A6)+2)/2))

Example:
1, 2, 2, 4, 5, 6 -- 2 and 4
1, 2, ,4, 5, 6 -- 4

Hope it helped
Ola Sandström


  #7   Report Post  
Mike
 
Posts: n/a
Default

Jerry,

I agree, your 1st formula is working fine but the 2nd one is NOT!?

Could you please check it?

Thanks,
Mike

  #8   Report Post  
Mike
 
Posts: n/a
Default

Jerry,

Yours are BOTH working now.....thank you ALL

Thanks alot,
Mike

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
Find Median of Positive numbers only in Range MichaelC Excel Worksheet Functions 4 June 24th 05 03:06 AM
Capture chart elements in VB obts1434 Charts and Charting in Excel 1 June 3rd 05 01:05 PM
Capture first 2 letters from a product code stumped Excel Worksheet Functions 2 May 18th 05 07:19 PM
How do I capture the last saved time in Excel2003? [email protected] Excel Worksheet Functions 1 December 29th 04 07:40 PM
Excel's Pivot Table & Subtotal function should have a median fie. Mary Excel Worksheet Functions 1 December 3rd 04 03:27 PM


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