Std dev.

jcb5489

New Member
Joined
Sep 11, 2014
Messages
8
I have daily data over many years. I have calculated the monthly mean, and now I need to find the standard deviation of the daily data from the monthly mean over all months of the data set. Help please.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Column a is dates in descending order. And I need the standard deviation of column c. I need a formula that will group the data by month to give me the std.dev. for each month.
 
Upvote 0
Column a is dates in descending order. And I need the standard deviation of column c. I need a formula that will group the data by month to give me the std.dev. for each month.

Sounds like you need a pivot table, sort by date and group by month
 
Upvote 0
I have tried: =and(a:a<=e3,a:a>e4)stdev(c:c)

Array-enter the following formula (press ctrl+shift+Enter instead of just Enter):
<a1:a40000,if(a1:a40000<=e3,c1:c40000)))
<a1:a40000,if(a1:a40000<=e3,c1:c40000)))

</a1:a40000,if(a1:a40000<=e3,c1:c40000)))
</a1:a40000,if(a1:a40000<=e3,c1:c40000)))
=STDEV(IF(A1:A40000<=E3,IF(A1:A40000>E4,C1:C40000)))<a1:a40000,if(a1:a40000<=e3,c1:c40000)))
<a1:a40000,if(a1:a40000<=e3,c1:c40000)))
</a1:a40000,if(a1:a40000<=e3,c1:c40000)))
<a1:a40000,if(a1:a40000<=e3,c1:c40000)))
</a1:a40000,if(a1:a40000<=e3,c1:c40000)))

<a1:a40000,if(a1:a40000<=e3,c1:c40000)))

although I might use STDEVP instead of STDEV in this case.</a1:a40000,if(a1:a40000<=e3,c1:c40000)))


Note that I use A1:A40000 instead of A:A. The latter forces Excel to process and create temp arrays of over 1 million entries. If you have "daily data over many years", you have much fewer rows of data.</a1:a40000,if(a1:a40000<=e3,c1:c40000)))
 
Last edited:
Upvote 0

Array-enter the following formula (press ctrl+shift+Enter instead of just Enter):
<a1:a40000,if(a1:a40000<=e3,c1:c40000)))
<a1:a40000,if(a1:a40000<=e3,c1:c40000)))

</a1:a40000,if(a1:a40000<=e3,c1:c40000)))
</a1:a40000,if(a1:a40000<=e3,c1:c40000)))
=STDEV(IF(A1:A40000<=E3,IF(A1:A40000>E4,C1:C40000)))<a1:a40000,if(a1:a40000<=e3,c1:c40000)))
<a1:a40000,if(a1:a40000<=e3,c1:c40000)))
</a1:a40000,if(a1:a40000<=e3,c1:c40000)))
<a1:a40000,if(a1:a40000<=e3,c1:c40000)))
</a1:a40000,if(a1:a40000<=e3,c1:c40000)))

<a1:a40000,if(a1:a40000<=e3,c1:c40000)))

although I might use STDEVP instead of STDEV in this case.</a1:a40000,if(a1:a40000<=e3,c1:c40000)))


Note that I use A1:A40000 instead of A:A. The latter forces Excel to process and create temp arrays of over 1 million entries. If you have "daily data over many years", you have much fewer rows of data.</a1:a40000,if(a1:a40000<=e3,c1:c40000)))

Thanks a lot!
 
Upvote 0

Forum statistics

Threads
1,214,631
Messages
6,120,640
Members
448,974
Latest member
DumbFinanceBro

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