Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 130
Default Finding an average of a list that could have 0 to 10 numbers in it

My list, see example below may have a number in each row or it may not. I
trying to write a formula that would average the numbers no matter how many
there were. Example if there were 4 cells filled each with a number, the
formula would divide the sum by 4. if there were 5, the formula would
recognize there are 5 and would divide the sum by 5 and so on. Thanks

List Header
0
0
0
51.71
0
52.79
0
50.56
0
0

????? This is the average ( which would be 51.68 in this case )of how ever
many actual numbers are in the list from 0 to 10 numbers possible. What
would be the formula?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Finding an average of a list that could have 0 to 10 numbers init

Try this array* formula:

=AVERAGE(IF(A1:A100,A1:A10))

* As this is an array formula, then once you have typed it in (or
subsequently edit it) you must use CTRL-SHIFT-ENTER (CSE) to commit it
rather than the usual ENTER. If you do this correctly then Excel will
wrap the formula in curly braces { } when viewed in the formula bar -
you must not type these yourself.

Hope this helps.

Pete

On Jan 19, 1:07*am, Shu of AZ
wrote:
My list, see example below may have a number in each row or it may not. *I
trying to write a formula that would average the numbers no matter how many
there were. *Example if there were 4 cells filled each with a number, the
formula would divide the sum by 4. *if there were 5, the formula would
recognize there are 5 and would divide the sum by 5 and so on. *Thanks

List Header * *
0 * * *
0 * * *
0 * * *
51.71 *
0 * * *
52.79 *
0 * * *
50.56 *
0 * * *
0 * * *

????? * This is the average ( which would be 51.68 in this case )of how ever
many actual numbers are in the list from 0 to 10 numbers possible. *What
would be the formula?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 130
Default Finding an average of a list that could have 0 to 10 numbers i

works like a champ. Thanks again

"Pete_UK" wrote:

Try this array* formula:

=AVERAGE(IF(A1:A100,A1:A10))

* As this is an array formula, then once you have typed it in (or
subsequently edit it) you must use CTRL-SHIFT-ENTER (CSE) to commit it
rather than the usual ENTER. If you do this correctly then Excel will
wrap the formula in curly braces { } when viewed in the formula bar -
you must not type these yourself.

Hope this helps.

Pete

On Jan 19, 1:07 am, Shu of AZ
wrote:
My list, see example below may have a number in each row or it may not. I
trying to write a formula that would average the numbers no matter how many
there were. Example if there were 4 cells filled each with a number, the
formula would divide the sum by 4. if there were 5, the formula would
recognize there are 5 and would divide the sum by 5 and so on. Thanks

List Header
0
0
0
51.71
0
52.79
0
50.56
0
0

????? This is the average ( which would be 51.68 in this case )of how ever
many actual numbers are in the list from 0 to 10 numbers possible. What
would be the formula?



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Finding an average of a list that could have 0 to 10 numbers i

Glad to hear it - thanks for feeding back.

Pete

"Shu of AZ" wrote in message
...
works like a champ. Thanks again

"Pete_UK" wrote:

Try this array* formula:

=AVERAGE(IF(A1:A100,A1:A10))

* As this is an array formula, then once you have typed it in (or
subsequently edit it) you must use CTRL-SHIFT-ENTER (CSE) to commit it
rather than the usual ENTER. If you do this correctly then Excel will
wrap the formula in curly braces { } when viewed in the formula bar -
you must not type these yourself.

Hope this helps.

Pete

On Jan 19, 1:07 am, Shu of AZ
wrote:
My list, see example below may have a number in each row or it may not.
I
trying to write a formula that would average the numbers no matter how
many
there were. Example if there were 4 cells filled each with a number,
the
formula would divide the sum by 4. if there were 5, the formula would
recognize there are 5 and would divide the sum by 5 and so on. Thanks

List Header
0
0
0
51.71
0
52.79
0
50.56
0
0

????? This is the average ( which would be 51.68 in this case )of how
ever
many actual numbers are in the list from 0 to 10 numbers possible.
What
would be the formula?





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
Average the last 7 numbers on a list C21man.com Excel Worksheet Functions 1 August 17th 07 02:14 AM
I need help finding an average JHL Excel Discussion (Misc queries) 3 June 9th 07 07:59 PM
finding the median from a list of unsorted numbers Christopher Buxton Excel Discussion (Misc queries) 2 March 21st 07 12:53 PM
Finding a predetermined Sum from a List of Numbers [email protected] Excel Discussion (Misc queries) 5 January 17th 07 12:11 AM
Finding the average time Gadgets Excel Worksheet Functions 5 July 31st 06 09:06 PM


All times are GMT +1. The time now is 12:54 AM.

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"