#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Averaging scores

I am trying to select the 10 lowest scores from the last 20(changes weekly)
and average them. What is the easiest way to perform this function.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Averaging scores

Hi,

The general idea would be to use an array formula like:

=AVERAGE(SMALL(A1:A20,ROW(1:10)))

to make this an array you press Shift+Ctrl+Enter to enter the formula.

To be more specific we need to know how is your data laid out. By last 20
do you mean the latest (newest) based on a dated, or do you mean the last
entries in a column.

If you mean bottom 20 then use the following array:

=AVERAGE(SMALL(OFFSET(A1,MATCH(TRUE,A1:A100<"")-1,,-10),ROW(1:10)))

Where you data may extend down to row 100.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"birdieman" wrote:

I am trying to select the 10 lowest scores from the last 20(changes weekly)
and average them. What is the easiest way to perform this function.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 257
Default Averaging scores

The obvious way is to sort the data first, but I'm presuming you thought of
that already and don't want to do it. Ok, try this: Say your 20 changes are
in $A$2:$A$21. In $A$22 put the median value:

=MEDIAN(A$2:A21)

The median value, in case you don't remember from high-school statistics, is
the middle value; if you have 10, 12 and 5, the median value is 10. If there
are an even number of values, Excel calculates the median as halfway between
the middle two. Now in column B put this formula:

=IF($A2<$A$22,$A2,"")

That populates column B with the lower half of the values in column A -
opposite the upper half, the cells are left blank - and in B$22 you can take
the average:

=AVERAGE(B$2:B22)

--- "birdieman" wrote:
I am trying to select the 10 lowest scores from the last 20(changes weekly)
and average them. What is the easiest way to perform this function.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Averaging scores

Try this array formula**.

It will work according to these conditions:

If there are 0 scores entered it will leave the cell blank.
If there are <10 scores it will average whatever scores are available.
If there are =10 and <=20 scores it will average the lowest 10 scores.
If there are 20 scores it will average the lowest 10 scores out of the last
20 scores.

Assumes scores are on row 2.

=IF(COUNT(2:2),AVERAGE(SMALL(INDEX(2:2,LARGE(IF(IS NUMBER(2:2),COLUMN(2:2)),MIN(COUNT(2:2),20))):IV2, ROW(INDIRECT("1:"&MIN(COUNT(2:2),10))))),"")

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"birdieman" wrote in message
...
I am trying to select the 10 lowest scores from the last 20(changes weekly)
and average them. What is the easiest way to perform this function.



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
Best 25 scores..help please Terry Excel Worksheet Functions 19 February 15th 08 02:45 PM
excel golf scores, how do I add the scores for all par 3's etc Golf Analyst Excel Worksheet Functions 2 November 24th 07 02:25 PM
Fit scores Sciguy Excel Worksheet Functions 4 January 19th 07 09:45 AM
Averaging Golf Scores Jerry Excel Worksheet Functions 3 May 16th 06 05:43 AM
Best 4 scores Nigel Greenwood Excel Discussion (Misc queries) 5 May 3rd 06 09:45 PM


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