Ignore Zeros with STDEVP

tester100099

New Member
Joined
Dec 25, 2009
Messages
11
I'm trying to create formula that will calculate the population standard deviation that ignores all zeros. For example, I want to get a result of 5.969309262 instead of 9.393982839
when I calculate the population standard deviation of the following list:

17
19
12
0
25
25
9
24
0

How do I need to adjust the STDEVP formula to get this to work?

Thanks!
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Hi & Welcome to the MrExcel Forum,

Try =STDEV(IF($B2:$C2<>0,$B2:$C2,""))) (Adjust the ranges to suit your needs)

Enter with Ctrl +Shift + Enter -- not just enter and not manually.

If succesful you will find {} around the formula.
 
Upvote 0
jrb,

Thanks for the help! I adjusted the formula since I am using a population, and now it works exactly as I anticipated.
 
Upvote 0
jrb,

I tried to apply this to the AVERAGE formula but I wasn't able to get it to work. What do I need to use to get AVERAGE to ignore zeros as well?

Thanks again!
 
Upvote 0
Just change Stdev to Average and then reapply the Ctrl + Shift + Enter

AVERAGE(IF($B2:$C2<>0,$B2:$C2))
 
Upvote 0
Turns out I simply failed to used ctrl shift enter.

When I searched around the forums, I noticed that this is often necessary. Why is that?
 
Upvote 0

Forum statistics

Threads
1,216,091
Messages
6,128,779
Members
449,468
Latest member
AGreen17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top