Frank Freese
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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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!
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.
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.
ASKER
thanks to all
No assist points? Oh well...
ASKER
Assist point? Did not know we could give assist points. I do now - thanks for letting me know.
=AVERAGEIF(A1:A10,">0")