Standard Deviation With Conditions

avd88

Board Regular
Joined
Jan 18, 2016
Messages
112
Hi,

I have a dataset with about 5 different groups where I need to get the standard deviation of each one of the groups.
I was trying a formula like the one below, I wasn't expecting it to work to be honest and it didn't. In the case below I'm basically trying to get the standard deviation for AM and SBM:

=ROUND(STDEV.P(IF(OR('Q3 2020'!A:A = "AM",'Q3 2020'!A:A="SBM"),'Q3 2020'!F2:F235,"")),2)

Any ideas of the most efficient way to calculate this?

Thank you!
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
=ROUND(STDEV.P(IF(('Q3 2020'!A:A = "AM")+('Q3 2020'!A:A="SBM"),'Q3 2020'!F2:F235,"")),2)

Enter with Ctrl+Shift+Enter
 
Upvote 0
Thanks for your response.

I tried your formula and it sort of works. The actual standard deviation should be $6,630 and your formula gives me $6,761.
Do you know where the difference comes from?
 
Upvote 0

Forum statistics

Threads
1,215,467
Messages
6,124,984
Members
449,201
Latest member
Lunzwe73

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