Standard Deviation between two specific cell values.

ilbondo

New Member
Joined
Sep 19, 2018
Messages
4
I can calculate the standard deviation when the cell condition is above or equal to 70 using this formula.
<code style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; vertical-align: baseline; box-sizing: inherit; white-space: inherit;">=IF(COUNTA(F4:F67)<=70,STDEVA(F4:F67),STDEVPA(F4:F67))
</code>This works fine.
However I am looking to also calculate standard deviation between 60 and 69 and I am unable to get the standard deviation like i am with values 70 and above.
<code style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; vertical-align: baseline; box-sizing: inherit; white-space: inherit;">=STDEV.P(IF((F4:F67>59)*(F4:F67<70),F4:F67))

Any help is appreciated</code>
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Hi ilbondo,

You mean you want to use STDEV.P formula if your sample size is between 60 and 69? If yes, then try the following:
=IF(AND(COUNTA(F4:F67)>59,COUNTA(F4:F67)<70),STDEV.P(F4:F67),0)
You can replace 0 ("false" argument) with your original formula, in order to add conditions for sample sizes below 60 and above 70.

Is this what you were looking for?
 
Upvote 0
Hi ilbondo,

You mean you want to use STDEV.P formula if your sample size is between 60 and 69? If yes, then try the following:
=IF(AND(COUNTA(F4:F67)>59,COUNTA(F4:F67)<70),STDEV.P(F4:F67),0)
You can replace 0 ("false" argument) with your original formula, in order to add conditions for sample sizes below 60 and above 70.

Is this what you were looking for?

This is perfect thank you so much for that, it was been most helpful. I wish you all the best.
 
Upvote 0

Forum statistics

Threads
1,223,983
Messages
6,175,778
Members
452,668
Latest member
mrider123

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