Excluding "0" in standard deviations

  • Thread starter Thread starter Niclas
  • Start date Start date
N

Niclas

Hi,
In calculation standard deviations I am using the formular
=SUBTOTAL(7;B2:B100) which appears to work nicely when filtering. However, it
also includes cells with "0". Can anyone tell me, how the formular needs to
be changed so only numbers ">0" is included?
Many thanks in advance,
Niclas
 
Subtotal works only on filtered set... so you should get ther right answer if
you filter out the cells with 0.
It does include cells which are hidden... to exclude hidden cells use 107
instead of 7.
 
Thanks, filtering is of course a possibility. I hadn't thought of that.
But is there also a clever way to have this done automatically? I have a
great number of columns where I need to calculate std.dev., so this would be
much preferable, not least as I will also be filtering on other criteria.

Niclas

"Sheeloo" skrev:
 
Do you really need to use SUBTOTAL?

How about =STDEV(IF(A1:A8>0,A1:A8)) which is an array formula and must be
entered with CTRL+SHIFT+ENTER
best wishes
 
Thanks, I've already tried this formula, but it returns a value for the full
dataset (>0), irrespective of any filtering. The subtotal on the other hand
does respect the filtering, yet also includes the "0". So at this point, none
of the two alternative fulfill my needs. Hope you can help with another
option.

Niclas

"Bernard Liengme" skrev:
 
Back
Top