A Microsoft Excel forum. ExcelBanter

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 » ExcelBanter forum » Excel Newsgroups » Excel Discussion (Misc queries)
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Average (exclude 1 min & 1 max Value)



 
 
Thread Tools Display Modes
  #1  
Old September 10th 08, 12:53 PM posted to microsoft.public.excel.misc
Ken
external usenet poster
 
Posts: 590
Default Average (exclude 1 min & 1 max Value)

Excel2003 ...

Range D5:R5 contains positive numbers (not sorted) & some numbers may repeat.

I wish to AVG range (exclude 1 Min & 1 Max Value) ... In the list below I
wish to AVG (exclude 1 min value ( 24 ) & 1 max value ( 55 ).

25-26-42-53-24-32-45-35-43-24-55-43-24-55-43-43-45-46-36-34

Thanks ... Kha
Ads
  #2  
Old September 10th 08, 01:10 PM posted to microsoft.public.excel.misc
Dave Peterson
external usenet poster
 
Posts: 35,220
Default Average (exclude 1 min & 1 max Value)

one way:
=(sum(d5:r5)-min(d5:r5)-max(d5:r5)))/(count(d5:r5)-2)

another:
=TRIMMEAN(d5:r5,(COUNT(d5:r5)-2)/COUNT(d5:r5))

Ken wrote:
>
> Excel2003 ...
>
> Range D5:R5 contains positive numbers (not sorted) & some numbers may repeat.
>
> I wish to AVG range (exclude 1 Min & 1 Max Value) ... In the list below I
> wish to AVG (exclude 1 min value ( 24 ) & 1 max value ( 55 ).
>
> 25-26-42-53-24-32-45-35-43-24-55-43-24-55-43-43-45-46-36-34
>
> Thanks ... Kha


--

Dave Peterson
  #3  
Old September 10th 08, 01:33 PM posted to microsoft.public.excel.misc
Ken
external usenet poster
 
Posts: 590
Default Average (exclude 1 min & 1 max Value)

Good morning Dave ...

Your 1st solution is the one I came up with ... but it took me awhile to
figure out the placement of the parenthesies.

Above said ... Thank you for supporting these boards ... Kha

"Dave Peterson" wrote:

> one way:
> =(sum(d5:r5)-min(d5:r5)-max(d5:r5)))/(count(d5:r5)-2)
>
> another:
> =TRIMMEAN(d5:r5,(COUNT(d5:r5)-2)/COUNT(d5:r5))
>
> Ken wrote:
> >
> > Excel2003 ...
> >
> > Range D5:R5 contains positive numbers (not sorted) & some numbers may repeat.
> >
> > I wish to AVG range (exclude 1 Min & 1 Max Value) ... In the list below I
> > wish to AVG (exclude 1 min value ( 24 ) & 1 max value ( 55 ).
> >
> > 25-26-42-53-24-32-45-35-43-24-55-43-24-55-43-43-45-46-36-34
> >
> > Thanks ... Kha

>
> --
>
> Dave Peterson
>

 




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 On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Average non-adjacent cells & exclude zeros Danni2004 Excel Discussion (Misc queries) 3 September 18th 07 04:00 PM
Exclude zero values using average function in a pivot table abs Excel Discussion (Misc queries) 1 July 6th 06 12:25 PM
How do I exclude a cell from an average calculation when the cell. Sam Excel Discussion (Misc queries) 1 September 7th 05 05:16 PM
How to average a column, but exclude zero AND negative values? KMHarpe Excel Discussion (Misc queries) 1 July 20th 05 10:06 PM
Limit or Exclude cells in Average and Sum formula dagger Excel Worksheet Functions 3 July 7th 05 03:52 PM


All times are GMT +1. The time now is 03:25 PM.


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