Calculating Standard Deviation while ignoring Zeros

K

kendrickmr

I am working with a large data set and I am interested in calculating
standard deviation of over 100 samples, but I want to ignore any zero
values and only utilize the non-zero values in the calculation. Does
anyone know an easy way to do this. Thanks for the help.
 
H

Harlan Grove

(e-mail address removed) wrote...
I am working with a large data set and I am interested in calculating
standard deviation of over 100 samples, but I want to ignore any zero
values and only utilize the non-zero values in the calculation. Does
anyone know an easy way to do this. Thanks for the help.

If all the remaining values were positive after removing the zero
values, you could try the array formula

=STDEV(IF(rng>0,rng))

On the other hand, if you have positive and negative values, you
shouldn't exclude zero values. Note that Excel's STDEV function
excludes blank cells and cells containing text.
 

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