character that is ignored when averaging

  • Thread starter Thread starter Guillermo
  • Start date Start date
G

Guillermo

Hello:
I have several cells to average.
In some of those cells, I have invalid values, so I have an if statement
that replaces the cells with #N/A is the values are invalid.
This is good because it allows me to graph the values and the #N/A are
ignored (in an X-Y scatter plot)
However, if I try to average and the range includes one of those cells, I
get a value of #N/A. I want to be able to average those values ignoring the
#N/A. If I replace the #N/A with '' or something similar, then the average
works but the graph doesn't (it gets turned into a line plot).
If there something tat satisfies both requirements?

thanks

guillermo
 
One way:

=SUMIF(A:A,"<>#N/A")/COUNT(A:A)

HTH
Jason
Atlanta, GA
 

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