Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Calculating the average

I have a range of cells

A1:A10
In each of the cells there can be a number from 1 to 5 or an X
In Cell A12 I want to display the average of all the numbers in A1:A10
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 698
Default Calculating the average

The AVERAGE function will ignore text and blanks

Try this:
=AVERAGE(A1:A10)

Does that help?
***********
Regards,
Ron

XL2003, WinXP


"Andy_Trow" wrote:

I have a range of cells

A1:A10
In each of the cells there can be a number from 1 to 5 or an X
In Cell A12 I want to display the average of all the numbers in A1:A10

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Calculating the average

=average(a1:a10)
will ignore text

And return 0 if there are no numbers in A1:A10.

Maybe you could use:

=if(count(a1:a10)=0,"No Numbers",average(a1:a10))

to avoid seeing the 0's.



Andy_Trow wrote:

I have a range of cells

A1:A10
In each of the cells there can be a number from 1 to 5 or an X
In Cell A12 I want to display the average of all the numbers in A1:A10


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Calculating the average

Oops.

If there are no numbers in the range, then =average() will return an error
(#Div/0!)

Dave Peterson wrote:

=average(a1:a10)
will ignore text

And return 0 if there are no numbers in A1:A10.

Maybe you could use:

=if(count(a1:a10)=0,"No Numbers",average(a1:a10))

to avoid seeing the 0's.

Andy_Trow wrote:

I have a range of cells

A1:A10
In each of the cells there can be a number from 1 to 5 or an X
In Cell A12 I want to display the average of all the numbers in A1:A10


--

Dave Peterson


--

Dave Peterson
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
Calculating moving average [email protected] Excel Discussion (Misc queries) 1 April 4th 07 09:52 AM
Calculating moving average [email protected] Excel Worksheet Functions 1 April 4th 07 09:52 AM
Function Key for Calculating Average? robin Excel Worksheet Functions 17 November 2nd 06 11:47 PM
calculating moving average odey1234 Excel Worksheet Functions 2 March 29th 05 02:06 PM
Calculating a Temporary Average Gail Gurman Excel Discussion (Misc queries) 0 January 24th 05 08:06 PM


All times are GMT +1. The time now is 08:14 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"