Excel Formula/VBA to compute X-Bar-Bar based on varying subgroup size

ironfelix717

New Member
Joined
Jul 8, 2016
Messages
14
Hi,

I need to figure out how to take a table of data and compute the X-Bar-Bar value from the data based on any subgroup size (n). The user would select the subgroup size, then the formula/code would calculate X-Bar-Bar from the subgroup size. That value would then be stored somewhere of my choice.

For those who aren't up to speed with SPC/Stats... I have a table of data. I need to group that data (note: data is in consecutive-time order), based on a number determined by the user (maybe 4?). Calculate the mean of each group in the list. And then calculate the MEAN of those means for each group.

Any help is appreciated. My creative mind for solving this problem has hit a wall. I believe it can be solved with a formula quite easily.


Thanks
 
MickG,

When I paste the code into my VBA editor window and click "run" I get the error. But I don't have data in the spreadsheet yet (i am testing with a blank workbook first). Ill try by entering the data as you suggest.
 
Upvote 0

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
So the HTML Maker addin isn't working for me. (I'm on a Mac btw), so I must remain uploading screenshots via url for the time being..

MickG,

Here is the photo of the error. It gives me different ones.


Screen Shot 2017 08 12 at 3 28 03 PM — imgbb.com
d9u52F
 
Upvote 0
Unfortunately I should think the error is to do with the "Mac" ,but as I don't have one, I don't know what that could be.
Perhaps if you posted a new thread, stating you are a "Mac" user and would like a resolution to you problem, hopefully you will get a more useful response.
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,204
Members
453,022
Latest member
RobertV1609

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