Can an IF Statement create a cell ignored by AVERAGE?

G

Guest

I have numerical data to plot and compute statistics for. Some data is "out
of range" and should be ignored by the statistical functions and not plotted.
I can address the plotting by making a copy of the data using an IF
statement that returns the value if its in range or #NA if it isn't. The #NA
entries don't plot. However, they do affect functions such as average(),
min(), etc. If I manually go through the list and delete every value that is
out of range, these statistical functions perform as desired. However, I
need to automate that process.
 
B

Bernard Liengme

To compute the average use =AVERAGE(IF(ISNUMBER(A1:A20),A1:A20,"")
and enter it as an array formula using Ctrl+Shift+Enter (not just Enter)
Other function (eg STDEV) can be done in like manner
best wishes
 
G

Guest

Bernard,

Thank you very much!

Bernard Liengme said:
To compute the average use =AVERAGE(IF(ISNUMBER(A1:A20),A1:A20,"")
and enter it as an array formula using Ctrl+Shift+Enter (not just Enter)
Other function (eg STDEV) can be done in like manner
best wishes
 

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

Top