Neep help writing a formula that can find an unknown range in a column

Peter h

Active Member
Joined
Dec 8, 2015
Messages
417
I need to find the standard deviation of data from the previous month. So, in column "A" I have dates, and column "B" I have my data. Data is being added multiple times a day. So then I have my cell that shows the standard deviation in Cell C1. How would I write the formula to only show the standard deviation of the previous month based on the dates entered in column "A"? So for instance, right now I need to see the standard deviation of the data that was entered in November. Thanks.
 

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
See if the following array formula (to be entered using Ctrl+Shift+Enter, not just Enter) works for you:

=STDEV(IF((A2:A10000 > EOMONTH(TODAY(),-2))*(A2:A10000 < EOMONTH(TODAY(),-1)+1),B2:B10000))<eomonth(today(),-1)+1),b2:b10000))< html=""></eomonth(today(),-1)+1),b2:b10000))<>
 
Last edited:
Upvote 0
See if the following array formula (to be entered using Ctrl+Shift+Enter, not just Enter) works for you:

=STDEV(IF((A2:A10000 > EOMONTH(TODAY(),-2))*(A2:A10000 < EOMONTH(TODAY(),-1)+1),B2:B10000))<eomonth(today(),-1)+1),b2:b10000))< html=""></eomonth(today(),-1)+1),b2:b10000))<>

That worked like a charm. Thank you very much.
 
Upvote 0

Forum statistics

Threads
1,215,487
Messages
6,125,075
Members
449,205
Latest member
Healthydogs

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