Standard Deviation based on multiple criteria

cglor

New Member
Joined
Nov 9, 2017
Messages
2
I need to calculate the standard deviation based on two criteria. Criteria 1: Date Range. The sample must fall between two years. Criteria 2: Sample must be labeled as NV.

I have well over 7000 samples so here is just a very small sample.

For example, I would like to find the standard deviation of all Samples that are labeled as NV between the years 1999 and 1970.

Breakdown

ABC...D
DateNV or VSampleYear Range
1998.5V.51999
1998NV.61998
............
1980.6V.31980
1979.2NV.51979
1974NV.11978
1970.1NV1.011975
1960V1.091960

<tbody>
</tbody>


Here is something that I tried to use, but as a regular formula, it returned a #DIV ! error. As an array it returned a #REF ! error. Note this doesn't have the "NV" criteria. I was just trying to see if the formula would return anything.

=STDEV.S(IF((a$3:a$7023>=d4)*(a$3:a$7023<d3),c$3:c$7023))

Any helpful hints would be appreciated. One would think that Microsoft would have come up with a STDEVIFS function by now. :)

Thanks a bunch!
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
=STDEV.S(IF((a$3:a$7023>=d4)*(a$3:a$7023<d3),c$3:c$7023)) THis didn't completely display on the first post. Whoops!
 
Upvote 0

Forum statistics

Threads
1,215,684
Messages
6,126,199
Members
449,298
Latest member
Jest

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