Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Judge
 
Posts: n/a
Default Function equations

Is there a function command that will average a group of numbers while
dropping the lowest number automatically?
  #2   Report Post  
Max
 
Posts: n/a
Default

Try something like:

=AVERAGE(IF(A1:A5MIN(A1:A5),A1:A5))

Array-enter the formula, i.e. press CTRL+SHIFT+ENTER
instead of just pressing ENTER

Adapt the range to suit
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Judge" wrote:

Is there a function command that will average a group of numbers while
dropping the lowest number automatically?

  #3   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

A combination of functions can do it, assume the values are in A2:A20 then
you can use this formula

=AVERAGE(LARGE($A$2:$A$20,ROW(INDIRECT("1:"&COUNT( $A$2:$A$20)-1))))

entered with ctrl + shift & enter

--
Regards,

Peo Sjoblom

(No private emails please, for everyone's
benefit keep the discussion in the newsgroup/forum)



"Judge" wrote in message
...
Is there a function command that will average a group of numbers while
dropping the lowest number automatically?



  #4   Report Post  
Max
 
Posts: n/a
Default

Try something like:
=AVERAGE(IF(A1:A5MIN(A1:A5),A1:A5))
Array-enter the formula, i.e. press CTRL+SHIFT+ENTER
instead of just pressing ENTER


Note that the suggested formula will ditch all incidences of the lowest
number in the range, if there should be more than 1 instance of the lowest
number occurring (i.e. duplicate lowest numbers). If you want it to drop
only 1 instance of the lowest number (if there could be duplicate lowest
numbers ocurring), go with Peo's formula.

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
  #5   Report Post  
Harlan Grove
 
Posts: n/a
Default

"Max" wrote...
Try something like:

=AVERAGE(IF(A1:A5MIN(A1:A5),A1:A5))

Array-enter the formula, i.e. press CTRL+SHIFT+ENTER
instead of just pressing ENTER

....

If there are multiple instances of the smallest value, this may not produce
the desired result. Indeed, if all cells are equal, this will return #DIV/0!

If the OP only wants to eliminate a single smallest value, then (general)

=SUM(A1:A5,-MIN(A1:A5))/(COUNT(A1:A5)-1)

or if the range has relatively few cells,

=AVERAGE(LARGE(A1:A5,{1;2;3;4}))




  #6   Report Post  
Max
 
Posts: n/a
Default

Thanks for the refinements, Harlan.

Yes, the "limitations" of the suggestion was realized,
albeit a little belated <g, and a follow-up note duly posted ..

Grateful, as always, for your experienced add-ons.
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
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
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM
I cant use englisch function names in a swedich version of excel PE Excel Discussion (Misc queries) 2 December 7th 04 01:00 AM
Find a Function to use accross different worksheets R. Hale Excel Worksheet Functions 3 November 25th 04 07:07 AM
change function variable prompts?? thinkingfield Excel Worksheet Functions 1 November 8th 04 04:01 PM
Counting Function Dilemma Simon Lloyd Excel Worksheet Functions 0 November 8th 04 03:13 PM


All times are GMT +1. The time now is 07:47 AM.

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"