Standard deviation and if function

Veronika_T

New Member
Joined
Mar 1, 2011
Messages
3
Hello,
I have a big set of data with various characteristics. I need to calculate average and stdev of a subset belonging to particular group. I used "averageif" function - worked perfectly - and am looking for something like"stdevIF" - can someone help me, please?
Thanks in advance,
V.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Hello,
I have a big set of data with various characteristics. I need to calculate average and stdev of a subset belonging to particular group. I used "averageif" function - worked perfectly - and am looking for something like"stdevIF" - can someone help me, please?
Thanks in advance,
V.

Control+shift+enter, not just enter:

=STDEV(IF(GroupRange=Group,ValueRange))
 
Upvote 0
Wow, it's magic! It worked!
Now, stupid follow-up question: what is this magic combination of "enter+ctrl+shift"?
THANKS!!!!
V.
 
Upvote 0
Wow, it's magic! It worked!
Now, stupid follow-up question: what is this magic combination of "enter+ctrl+shift"?
THANKS!!!!
V.

The combination signals Excel that the formula is intended to process arrays.
See Excel's Help under the "array" keyword.
 
Upvote 0
But will this work for 2 conditions?

To extend the current example:

=STDEV(IF(GroupRange=Group,ValueRange) might be something like =STDEV(IF(AND(GroupRange1=Group1,GroupRange2=Group2, ValueRange)

All my efforts so far have failed.

Thanks, briordan
 
Upvote 0

Hi,

maybe

=STDEV(IF(GroupRange1=Group1,IF(
GroupRange2=Group2,ValueRange)))

to be confirmed with control+shift+enter

Hope it helps
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,561
Members
449,089
Latest member
Motoracer88

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