Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the equivalent averageifs for standard deviation?

I have asked aboutand already got answer about averageifs excel function here. However, I was also wondering if I can get standard deviation for the same data set in new column. Here is the screenshot of sample data:

like image 503
alpha189 Avatar asked Oct 18 '25 18:10

alpha189


1 Answers

You can use an array formula to first filter through your rows and then apply the standard deviation to the sample. Formula would look like this:

=STDEV.S(IF((IF(C:C="alpha",1,0)*IF(D:D="S14",1,0))=1,B:B,""))

Inputted using CTRL + SHIFT + ENTER. Cheers,

As provided by @ScottCraner in the comments the much improved formula:

=STDEV.S(IF((C:C="alpha")*(D:D="S14"),B:B))
like image 185
nbayly Avatar answered Oct 20 '25 09:10

nbayly



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!