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

I want to calculate the average of cells A1, A3, A7, B2 and B5. However, an X
can be in any of the cells as well as a number. How I do this ?

I tried AVERAGE(A1+A3+A7+B2+B5) but I get and error if I have an x in any
cell.
  #2   Report Post  
Posted to microsoft.public.excel.misc
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default average

=SUM(A1,A3,A5,B2,B5)/COUNT(A1,A3,A5,B2,B5)

Vaya con Dios,
Chuck, CABGx3



"Andy_Trow" wrote:

I want to calculate the average of cells A1, A3, A7, B2 and B5. However, an X
can be in any of the cells as well as a number. How I do this ?

I tried AVERAGE(A1+A3+A7+B2+B5) but I get and error if I have an x in any
cell.

  #3   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default average

non adjacent cells give problems in some situations
use a helper row (AA?)
in AA1
=A1
in AA2
=A3
inAA3
=A7
in AA4
=B2
in
AA5
=B5
then use

=average(if(isnumber(AA1:AA5),AA1:AA5))
entered as an array control-shift-enter

"Andy_Trow" wrote:

I want to calculate the average of cells A1, A3, A7, B2 and B5. However, an X
can be in any of the cells as well as a number. How I do this ?

I tried AVERAGE(A1+A3+A7+B2+B5) but I get and error if I have an x in any
cell.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 252
Default average

AVERAGE ignores text so X's shouldn't be a problem, however you should be
using commas like this

=AVERAGE(A1,A3,A7,B2,B5)

If you want the X's to count as zero then you can also use AVERAGEA like this

=AVERAGEA(A1,A3,A7,B2,B5)

"Andy_Trow" wrote:

I want to calculate the average of cells A1, A3, A7, B2 and B5. However, an X
can be in any of the cells as well as a number. How I do this ?

I tried AVERAGE(A1+A3+A7+B2+B5) but I get and error if I have an x in any
cell.

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 doesn't average correctly? jmj713 Excel Discussion (Misc queries) 4 October 24th 06 06:16 PM
average cells, show 0 if nothing to average Kycajun Excel Discussion (Misc queries) 8 June 21st 06 07:36 PM
Error Handling #N/A with AVERAGE Function - Average of values in Row Sam via OfficeKB.com Excel Worksheet Functions 13 July 31st 05 03:59 PM
Weighed Average of a weiged average when there are blanks krl - ExcelForums.com Excel Discussion (Misc queries) 1 July 6th 05 07:37 PM
how does one convert text to a formula "average(A:A)" to =average( phshirk Excel Worksheet Functions 4 April 14th 05 01:20 AM


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