PC Review


Reply
Thread Tools Rate Thread

Average of last 3 non-0 numbers in row?

 
 
=?Utf-8?B?am9ld2lz?=
Guest
Posts: n/a
 
      1st Apr 2007
I am secratary of golf league and handicap is calculated of the average of
the last 3 rounds played. If a player is absent for a week, there is a zero
in his score. This would be a rolling average of coarse.
 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      1st Apr 2007
=AVERAGE(N(OFFSET($B$2,0,LARGE(IF($B$2:I2<>0,COLUMN($B$2:I2)-MIN(COLUMN($B$2:I2))),{1,2,3}))))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets), do
not try to do this manually.
When editing the formula, it must again be array-entered.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"joewis" <(E-Mail Removed)> wrote in message
news:ECB71E4A-4B78-468E-836B-(E-Mail Removed)...
>I am secratary of golf league and handicap is calculated of the average of
> the last 3 rounds played. If a player is absent for a week, there is a
> zero
> in his score. This would be a rolling average of coarse.



 
Reply With Quote
 
=?Utf-8?B?Um9uIENvZGVycmU=?=
Guest
Posts: n/a
 
      2nd Apr 2007
With....Positive scores (or zeros) in B2:K2

This regular formula calculates the average of the last 3 values that are
greater than zero:
L2:
=AVERAGE(LOOKUP(LARGE(INDEX(ISNUMBER(B2:K2)*(B2:K2>0)*COLUMN(B2:K2),0),{3,2,1}),COLUMN(B2:K2),B2:K2))

Adjust range references and copy that formula down as far as you need.

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"joewis" wrote:

> I am secratary of golf league and handicap is calculated of the average of
> the last 3 rounds played. If a player is absent for a week, there is a zero
> in his score. This would be a rolling average of coarse.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
average a continuous group of numbers and negative numbers are 0 Dumbfounded Microsoft Excel Worksheet Functions 3 15th Oct 2008 11:53 PM
Average highest 16 numbers on a column of 32 numbers Frank Microsoft Excel Worksheet Functions 3 2nd May 2008 02:44 AM
Average of top 3 numbers. =?Utf-8?B?QmVsemJ1Yg==?= Microsoft Excel Worksheet Functions 26 28th Nov 2005 11:45 PM
average of kth largest numbers in an array of n numbers =?Utf-8?B?Z2VvcmdlYg==?= Microsoft Excel Worksheet Functions 6 5th Sep 2005 05:57 AM
Average of numbers in column between to other numbers =?Utf-8?B?RGl0YW5kaGlzY2hlZXNl?= Microsoft Excel Misc 2 31st Mar 2005 03:35 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:22 AM.