I have a list of numbers and i want to calculate avg and stdev but i do not want "zeros" or "blanks" to enter into the calculations. I have a formula for avg but i need one for stdev.
I have a list of numbers and i want to calculate avg and stdev but i do not want "zeros" or "blanks" to enter into the calculations. I have a formula for avg but i need one for stdev.
Last edited by welchs101; 12-12-2008 at 07:20 PM.
If you have a formula that works for AVERAGE, just change AVERAGE to STDEV.
Entia non sunt multiplicanda sine necessitate
formula for avg:
SUM(A1:A5)/COUNTIF(A1:A5,">0")
Cant just replace avg with stdev
=stdev(if(a1:a5>0, a1:a5))
That is an array formula, though.
Yeah, its hard to find a formula with out using the array calc.
You could do it with a helper column: =if(a1>0, (a1-avg)^2, ""), where avg is the value you computed with your other formula.
Then St Dev =sqrt(sum(B1:B5) / (count(b1:b5) - 1) )
Why the aversion to array formulas?
Last edited by shg; 12-12-2008 at 06:59 PM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks