Exclude Zero When Calculate Standard Deviation

C

Charles Deng

Hi All:

Is there anyone who could tell me how I can exclude ZERO
when I calculate standard deviation? I need to calculate
standard deviation after the data grouped, that is the
standard deviation is within the group (not aggregate). So
I use the following expression

=StDev([q1])

Thanks.


Charles
 
M

Marshall Barton

Charles said:
Is there anyone who could tell me how I can exclude ZERO
when I calculate standard deviation? I need to calculate
standard deviation after the data grouped, that is the
standard deviation is within the group (not aggregate). So
I use the following expression

=StDev([q1])


The aggregate function ignore Null values. To ignore zero
values, use this kind of expression:

=StDev(IIf([q1] = 0, Null, [q1]))
 
G

Guest

Hi Marsh:

This expression works well. Thanks a lot.

Charles

-----Original Message-----
Charles said:
Is there anyone who could tell me how I can exclude ZERO
when I calculate standard deviation? I need to calculate
standard deviation after the data grouped, that is the
standard deviation is within the group (not aggregate). So
I use the following expression

=StDev([q1])


The aggregate function ignore Null values. To ignore zero
values, use this kind of expression:

=StDev(IIf([q1] = 0, Null, [q1]))
 

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