Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 135
Default Find the median 3 values

I need to find the median 3 values in a range, which will be added together.
I will have either 3, 5, or 7 values in the range. If I have 3 values, I just
need to add them; with 5 values, I need to throw out the high and low values;
and with 7 values, I need to throw out the 2 high and 2 low values.

For example:
Range: 3, 5, 5, 6, 4 Result: 5+5+4 (throw out 3 and 6)
Range: 5, 7, 6, 5, 7, 7, 6 Result: 7+6+6 (throw out both 5s and two of the
7s)

Can anyone help with this?
Thanks,
~ Horatio
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 320
Default Find the median 3 values

=sum(range)-choose((count(range)-1)/2,0,min(range)+max(range),small(range,1)+small(ran ge,2)+large(range,1)+large(range,2))
"Horatio J. Bilge, Jr." wrote:

I need to find the median 3 values in a range, which will be added together.
I will have either 3, 5, or 7 values in the range. If I have 3 values, I just
need to add them; with 5 values, I need to throw out the high and low values;
and with 7 values, I need to throw out the 2 high and 2 low values.

For example:
Range: 3, 5, 5, 6, 4 Result: 5+5+4 (throw out 3 and 6)
Range: 5, 7, 6, 5, 7, 7, 6 Result: 7+6+6 (throw out both 5s and two of the
7s)

Can anyone help with this?
Thanks,
~ Horatio

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 135
Default Find the median 3 values

That worked great. Thanks.


"Bob Umlas, Excel MVP" wrote:

=sum(range)-choose((count(range)-1)/2,0,min(range)+max(range),small(range,1)+small(ran ge,2)+large(range,1)+large(range,2))
"Horatio J. Bilge, Jr." wrote:

I need to find the median 3 values in a range, which will be added together.
I will have either 3, 5, or 7 values in the range. If I have 3 values, I just
need to add them; with 5 values, I need to throw out the high and low values;
and with 7 values, I need to throw out the 2 high and 2 low values.

For example:
Range: 3, 5, 5, 6, 4 Result: 5+5+4 (throw out 3 and 6)
Range: 5, 7, 6, 5, 7, 7, 6 Result: 7+6+6 (throw out both 5s and two of the
7s)

Can anyone help with this?
Thanks,
~ Horatio

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Find the median 3 values

On Mon, 19 Nov 2007 07:29:02 -0800, Horatio J. Bilge, Jr.
wrote:

I need to find the median 3 values in a range, which will be added together.
I will have either 3, 5, or 7 values in the range. If I have 3 values, I just
need to add them; with 5 values, I need to throw out the high and low values;
and with 7 values, I need to throw out the 2 high and 2 low values.

For example:
Range: 3, 5, 5, 6, 4 Result: 5+5+4 (throw out 3 and 6)
Range: 5, 7, 6, 5, 7, 7, 6 Result: 7+6+6 (throw out both 5s and two of the
7s)

Can anyone help with this?
Thanks,
~ Horatio


=SUMPRODUCT(LARGE(rng,ROW(INDIRECT(1+INT((COUNT(rn g)-1)/3)&":"&COUNT(rng)-INT((COUNT(rng)-1)/3)))))


--ron
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Find the median 3 values

Assuming there is always only 3, 5 or 7 numbers:

=TRIMMEAN(rng,(COUNT(rng)-3)/COUNT(rng))*3

--
Biff
Microsoft Excel MVP


"Horatio J. Bilge, Jr." wrote in
message ...
I need to find the median 3 values in a range, which will be added
together.
I will have either 3, 5, or 7 values in the range. If I have 3 values, I
just
need to add them; with 5 values, I need to throw out the high and low
values;
and with 7 values, I need to throw out the 2 high and 2 low values.

For example:
Range: 3, 5, 5, 6, 4 Result: 5+5+4 (throw out 3 and 6)
Range: 5, 7, 6, 5, 7, 7, 6 Result: 7+6+6 (throw out both 5s and two of
the
7s)

Can anyone help with this?
Thanks,
~ Horatio





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 135
Default Find the median 3 values

That's a slick method. Thanks.


"T. Valko" wrote:

Assuming there is always only 3, 5 or 7 numbers:

=TRIMMEAN(rng,(COUNT(rng)-3)/COUNT(rng))*3

--
Biff
Microsoft Excel MVP


"Horatio J. Bilge, Jr." wrote in
message ...
I need to find the median 3 values in a range, which will be added
together.
I will have either 3, 5, or 7 values in the range. If I have 3 values, I
just
need to add them; with 5 values, I need to throw out the high and low
values;
and with 7 values, I need to throw out the 2 high and 2 low values.

For example:
Range: 3, 5, 5, 6, 4 Result: 5+5+4 (throw out 3 and 6)
Range: 5, 7, 6, 5, 7, 7, 6 Result: 7+6+6 (throw out both 5s and two of
the
7s)

Can anyone help with this?
Thanks,
~ Horatio




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Find the median 3 values

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Horatio J. Bilge, Jr." wrote in
message ...
That's a slick method. Thanks.


"T. Valko" wrote:

Assuming there is always only 3, 5 or 7 numbers:

=TRIMMEAN(rng,(COUNT(rng)-3)/COUNT(rng))*3

--
Biff
Microsoft Excel MVP


"Horatio J. Bilge, Jr." wrote
in
message ...
I need to find the median 3 values in a range, which will be added
together.
I will have either 3, 5, or 7 values in the range. If I have 3 values,
I
just
need to add them; with 5 values, I need to throw out the high and low
values;
and with 7 values, I need to throw out the 2 high and 2 low values.

For example:
Range: 3, 5, 5, 6, 4 Result: 5+5+4 (throw out 3 and 6)
Range: 5, 7, 6, 5, 7, 7, 6 Result: 7+6+6 (throw out both 5s and two
of
the
7s)

Can anyone help with this?
Thanks,
~ Horatio






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
How to display graph if only mean, SD & median values available? A Renshaw Charts and Charting in Excel 2 November 3rd 06 04:24 PM
find largest values, then return corresponding row values. neurotypical Excel Discussion (Misc queries) 7 May 24th 06 10:27 PM
Counting values lower then the median. [email protected] Excel Worksheet Functions 4 April 18th 06 09:14 PM
Median ignoring Zero Values tlosgyl3 Excel Worksheet Functions 4 October 13th 05 09:14 PM
Find Median of Positive numbers only in Range MichaelC Excel Worksheet Functions 4 June 24th 05 03:06 AM


All times are GMT +1. The time now is 01:07 PM.

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

About Us

"It's about Microsoft Excel"