Link to home
Start Free TrialLog in
Avatar of Frank Freese
Frank FreeseFlag for United States of America

asked on

Coorect way to average

Folks,
In A1:A10 there are 8 values (2,4,6,8,10,12,14,16) and 2 cells with zero in each.
The average should be 9. The average I'm getting is 7.2. How does one average with zero value(s) that you do no want to be included in the average
Avatar of duttcom
duttcom
Flag of Australia image

Try this -

=AVERAGEIF(A1:A10,">0")
ASKER CERTIFIED SOLUTION
Avatar of Peter Hart
Peter Hart
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
duttcom you beat me by 1.20 :-(  but mine allows for not zero i.e. minus ;-)
If the cells are mathematically and legitimately zero then the average is 7.2. That is just standard mathematics.

If the cells are not relevant and just there then the formula provided above is what you need.
Ah- but you used "<>0" which is more correct if there are going to be negative values!
Avatar of Frank Freese

ASKER

John,
You'd be correct if zero was part of the data stream. In this instance zero simply means that there was nothing in a particular month which would not would not be out of the ordinary.
I'd forgot that a negative value needs to be included. Although duttcome had a great solution, I'm going to go with chilternPC on this one.
thanks to all
No assist points? Oh well...
Assist point? Did not know we could give assist points. I do now - thanks for letting me know.