Macro read 300 cells and find Average under condition

hjason315

New Member
Joined
Jul 11, 2011
Messages
19
Greeting all,

I have a bunch of data starts from B14-16000. I want a macro to start from,for example, row 200, then read 300 cells at a time, keeps going until 16000. If the Standard Deviation of these 200 cells is under 0.05 then find the average and paste it on Column M, start from M1.

If you plot it out by "XY scatter", it will look like about 10 mini water falls, depends on the data given, sometimes goes from left to right and vice versa.(probably not going to affect the code, just want to give you an idea of how it looks like) So, basically, I want to find the average in the "flat" region. What I don't want is when the data changes significantly.

I am not sure if it is doable. Hopefully, after the explaination, it is.
Thanks in advance!!! really appreciate your help!:)

Jason
 
Last edited:

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

Forum statistics

Threads
1,224,563
Messages
6,179,527
Members
452,923
Latest member
JackiG

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