calculate average in percentage coloumn with #DIV/! (ignore error

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

Guest

calculate average in percentage coloumn with #DIV/!. When the formula has to
calculate the average of a few figures it must ignore all error if present in
the some cells
 
On Tue, 6 Sep 2005 02:46:41 -0700, "neelsels SA" <neelsels
calculate average in percentage coloumn with #DIV/!. When the formula has to
calculate the average of a few figures it must ignore all error if present in
the some cells

=AVERAGE(IF(ISERROR(A1:A10)+ISBLANK(A1:A10),"",A1:A10))

entered as an *array* formula. To enter an *array* formula, hold down
<ctrl><shift> while hitting <enter>. Excel will place braces {...} around the
formula.

Note that I also instructed AVERAGE to ignore Blanks to show you how your
specifications could be expanded.


--ron
 
Another way (less pedagogic, though):

=AVERAGE(IF(ISNUMBER(A1:A99),A1:A99))

This is an array formula. Hit ctrl-shift-enter instead of enter. If you do it
correctly, excel will wrap curly brackets {} around your formula. (don't type
them yourself.)
 

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