Calculating Sample Standard Deviation

devinda0007

New Member
Joined
Jun 30, 2022
Messages
6
Office Version
  1. 365
Platform
  1. Windows
Dear Experts,
I hope I can get some help here. I have an excel file with hundreds of random values in a column (Column B, starting from Row2). What I am trying to achieve is to calculate standard deviation of every 10 consecutive rows (Example: Row#2 to Row#11, Row#3 to Row#12, Row#4 to Row#13 etc...) and output the standard deviation value in Column C (Example: Standard deviation for B2:B11 will be on Cell C2, Standard Deviation for B3:B12 will be on Cell C3 etc... And output the minimum standard deviation among all the standard deviation values into Cell E1 and get the corresponding starting and ending positions into Cells E2 and E3 respectively. This is to identify the range of minimum standard deviation among the large amount of values. Example of what I am highlighting above is shown below;
(Yellow highlighted is the minimum standard deviation)
Note that this is just an example with only 30 rows. The standard worksheet has values span over 1000 rows. So ideally, the calculation needs to happen until the last 10-rows standard deviation, which in this example is (B22:B31).

Any help, advice is immensely appreciated..

Many Thanks
Dev
Example.jpg
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
This should work but it's not possible to test this without your file, or at least data. You can't test a picture.

E2:
=INDEX(A:A,MATCH(E1,C:C,0))

E3:
=INDEX(A:A,MATCH(E1,C:C,0)) + 9

Assumes numbers in column A are strictly ascending incremented by 1.
 
Upvote 0
Welcome to the MrExcel forum!

As Jeff said, it's very tedious to retype all your data from a picture. You can copy/paste some data from your spreadsheet, or ideally use the XL2BB add-in provided here. See the link in my signature or the reply box. It's very easy to use. You are MUCH more likely to get help if you make it easier for the helpers here. Here's an example:

Book1
ABCDE
1NoValueStandard Deviation for 10 consecutive rowsMinimum Standard Dviation fo 10 consecutive points=0.11858424
211160.151964908Starting "No"=11
32116.070.154358889Ending "No"=20
43116.140.144622113
54116.030.140775629
65115.780.145922354
76115.860.141110674
87115.910.140669036
98115.620.157197682
109115.90.122315621
1110115.850.120756872
1211115.780.118584241
1312115.970.126513065
1413116.120.125879131
1514116.070.151602551
1615115.890.155452744
1716115.880.140590027
1817116.120.154933678
1918116.070.157144661
2019116.010.156776557
2120116.110.173384608
2221116.310.176726405
2322116.15 
2423116.34 
2524116.21 
2625116.01 
2726115.81 
2827116.03 
2928116.09 
3029115.86 
3130116.2 
Sheet2
Cell Formulas
RangeFormula
E1E1=MIN(C:C)
E2E2=MATCH(E1,C2:C100,0)
E3E3=E2+9
C2:C31C2=IF(COUNT(B2:B11)=10,STDEV.S(B2:B11),"")
 
Upvote 0
Solution
Thank you very much Jeff and Eric. And apologize for not making it easier. Honestly, I was looking for a way to upload the excel file to the forum but I could not locate an "Attach" button. Hence resorted to typing in the details and put a screen capture. Thank you very much for your guidance on how to resolve my issue and also, how to do a post correctly in the forum. I will definitely use the XL2BB add-in moving forward.

Many thanks for your advise and help in this matter.

Best Regards
Dev.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,327
Members
452,635
Latest member
laura12345

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