formula for averages

J

JNSteiner

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!
 
L

Lars-Åke Aspelin

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top