#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 36
Default Dynamic average

I am looking for a way to average a series of number in a column. I would
like this formula to average the numbers up to a quantity of 20. So, if
there are 3 numbers in the column, I would like it to average those 3. If
there are 23, I would like it average the last 20. Thanks, Mike.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default Dynamic average

Say your numbers were in A1 to A100, try this *array* formula:

=AVERAGE(A100:INDEX(A1:A100,LARGE(ROW(1:100)*(A1:A 100<""),20)))

--
Array formulas must be entered with CSE, <Ctrl <Shift <Enter, instead of
the regular <Enter, which will *automatically* enclose the formula in curly
brackets, which *cannot* be done manually. Also, you must use CSE when
revising the formula.

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Mike D." wrote in message
...
I am looking for a way to average a series of number in a column. I would
like this formula to average the numbers up to a quantity of 20. So, if
there are 3 numbers in the column, I would like it to average those 3. If
there are 23, I would like it average the last 20. Thanks, Mike.



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
Dynamic average Tasha Excel Worksheet Functions 15 July 30th 07 08:32 PM
Dynamic Rolling Average Lancer940 Excel Worksheet Functions 5 January 19th 07 08:15 PM
Dynamic annual average [email protected] Charts and Charting in Excel 4 July 31st 06 11:49 PM
Dynamic Average Question Greg Excel Discussion (Misc queries) 2 July 5th 06 09:44 PM
Dynamic Average Big H Excel Worksheet Functions 4 November 5th 05 09:34 PM


All times are GMT +1. The time now is 04:59 PM.

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"