Averaging data with errors

G

Guest

I am trying to take the average of some data but some of the cells contain
errors (as there is data missing for the function to calculate). In my
database there will always be some missing data so these errors will be
present. Is there any way of taking an average of data that contains errors?
eg. average(a1,a2,a3) equals 4 where:
a1=5
a2=#N/A
a3=3
Many thanks for your help
John
 
G

Guest

One way

In B1, array entered*:
=AVERAGE(IF(ISNUMBER(A1:A3),A1:A3))
*press CTRL+SHIFT+ENTER to confirm the formula
instead of just pressing ENTER
 
G

Guest

Max

Do you know how I would be able to fit your advice into the following formula

=INT(AVERAGE(P2,S2,V2))+CHOOSE((MOD(AVERAGE(P2,S2,V2),1)<0.3)+(MOD(AVERAGE(P2,S2,V2),1)<0.7)+1,0.9,0.5,0.1)

as when I try I keep getting errors
Thanks for your help
John
 
G

Guest

Do you know how I would be able to fit your advice into the following formula

=INT(AVERAGE(P2,S2,V2))+CHOOSE((MOD(AVERAGE(P2,S2,V2),1)<0.3)+(MOD(AVERAGE(P2,S2,V2),1)<0.7)+1,0.9,0.5,0.1)

as when I try I keep getting errors
Thanks for your help
John
 

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