A Microsoft Office (Excel, Word) forum. OfficeFrustration

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 » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

formula for averages



 
 
Thread Tools Display Modes
  #1  
Old June 1st, 2010, 11:02 PM posted to microsoft.public.excel.misc
JNSteiner
external usenet poster
 
Posts: 1
Default formula for averages

I have to compute the last 15 scores and obtain an aveage for Special
Olympics entry. I want to be able to have a formula which goes up the column
until it adds 15 games. There will be blanks as the athletes do not come
every week. So 15 games for one bowler will not be in the same row entries
as another. I know there must be a waty to do this but I don't have a clue
how. Can someone help? Last year I manually chose the 15 cells to add but
this year I have twice as many athletes. Thanks!
  #2  
Old June 1st, 2010, 11:32 PM posted to microsoft.public.excel.misc
Lars-Åke Aspelin[_4_]
external usenet poster
 
Posts: 74
Default formula for averages

On Tue, 1 Jun 2010 15:02:01 -0700, JNSteiner
wrote:

I have to compute the last 15 scores and obtain an aveage for Special
Olympics entry. I want to be able to have a formula which goes up the column
until it adds 15 games. There will be blanks as the athletes do not come
every week. So 15 games for one bowler will not be in the same row entries
as another. I know there must be a waty to do this but I don't have a clue
how. Can someone help? Last year I manually chose the 15 cells to add but
this year I have twice as many athletes. Thanks!


Assuming that your 15 last scores are to be found in the first 100
rows of column A and that there are always at least 15 scores present,
try this formula:

=AVERAGE(IF(ROW(A1:A100)*(A1:A100"")=LARGE(ROW( A1:A100)*(A1:A100""),15),A1:A100))

Note: This is an array formula that must be confirmed by
CTRL+SHIFT+ENTER rather than just ENTER.

Hope this helps / Lars-Åke

l
 




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


All times are GMT +1. The time now is 11:28 AM.


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