Share via

conditional standard deviation formula

Anonymous
2024-08-16T21:17:07+00:00

i am trying to evaluate 3 numbers across 3 fields - for several records. some of the fields throughout the records might be "0". how do i construct a formula that will compute standard deviation for only the non-0 numbers

so far, i have =STDEV.P(M9,O9,Q9)

thank you

Microsoft 365 and Office | Excel | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

HansV 462.6K Reputation points
2024-08-16T22:12:25+00:00

Another option:

Somewhere to the right of the data, say:

In BA9: =M9

In BB9: =O9

In BC9: =Q9

Formula for standard deviation:

=STDEV.P(IF(BA9:BC9<>0, BA9:BC9))

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Anonymous
    2024-08-16T21:46:48+00:00

    as much as i appreciate that, there is other info and calcs that i cannot rearrange, or it would disrupt the flow of the info

    thank you

    Was this answer helpful?

    0 comments No comments
  2. HansV 462.6K Reputation points
    2024-08-16T21:37:08+00:00

    Rearrange the cells so that they are adjacent, for example M9m N9 and O9.

    =STDEV.P(IF(M9:O9<>0, M9:O9))

    Was this answer helpful?

    0 comments No comments