average

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
=SUM(A1,A3,A5,B2,B5)/COUNT(A1,A3,A5,B2,B5)

Vaya con Dios,
Chuck, CABGx3
 
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
 
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)
 

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

Back
Top