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.
 
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)
 
Back
Top