STDEV.P for multiple criteria

genkinbaku

New Member
Joined
Dec 31, 2020
Messages
1
Office Version
  1. 365
Platform
  1. Windows
hello - I'm trying to get a formula to figure standard deviation based on criteria in corresponding cells. The sheet I'm using needs to calculate the STDEV.P for cells matching value between certain date criteria.

In this example, I'd like to calculate the STDEV.P of column B as long as the dates in corresponding column A is between 01/02/20 00:00:00 to 01/03/20 00:00:00

1609432915910.png
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
If your version of 365 has the FILTER function try the formula in D4 below. If not then the formula in D6.

Book1
ABCDE
1TimeValue.Start DateEnd Date
21/1/2020 12:004501/2/2020 0:001/3/2020 0:00
31/1/2020 18:00399STDEV.P
41/2/2020 0:00650244.30
51/2/2020 6:00450
61/2/2020 12:00111244.30
71/2/2020 18:00850
81/3/2020 0:00541
91/3/2020 6:00632
101/3/2020 12:00658
111/3/2020 18:0041
121/4/2020 0:00985
131/4/2020 6:00655
141/4/2020 12:00741
151/4/2020 18:00254
161/5/2020 0:00250
Sheet2
Cell Formulas
RangeFormula
D4D4=STDEV.P(FILTER(B2:B16,($A$2:$A$16>=$D$2)*($A$2:$A$16<=E2),""))
D6D6=STDEV.P(IF($A$2:$A$16>=$D$2,IF($A$2:$A$16<=$E$2,$B$2:$B$16)))
 
Upvote 0
Welcome to MrExcel Message Board.
Use this with CTRL+SHIFT+ENTER
Excel Formula:
=STDEVP(IF(A2:A19>=$A$2,IF(A2:A19<=$A$14,B2:B19,"")))
 
Upvote 0

Forum statistics

Threads
1,214,971
Messages
6,122,525
Members
449,088
Latest member
RandomExceller01

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