HELP!!! Randon Sample Generator VARIATION

MacroChris

New Member
Joined
Mar 26, 2002
Messages
4
This is a variation on other randon sampling techniques...

I have a worksheet with the entire population in Worksheet("SegmentA"), with around 1,000 rows. I have already calculated for the statistically valid sample size "n" and it is in Worksheet("Stats").

Now, if n=70, how can I generate a subset of
Worksheet("SegmentA") with only 70 records instead of 1,000?

The sample data can also be pasted in the same Worksheet("SegmentA"), like in Column R.

Please? Anyone?

Thanks,
Christina
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
On 2002-03-27 13:08, MacroChris wrote:
This is a variation on other randon sampling techniques...

I have a worksheet with the entire population in Worksheet("SegmentA"), with around 1,000 rows. I have already calculated for the statistically valid sample size "n" and it is in Worksheet("Stats").

Now, if n=70, how can I generate a subset of
Worksheet("SegmentA") with only 70 records instead of 1,000?

The sample data can also be pasted in the same Worksheet("SegmentA"), like in Column R.

Please? Anyone?

Thanks,
Christina

Hi Christina:
Have you tried TOOLS|DATA_ANLYSIS|SAMPLING|Sampling_Method ... Random, Number of samples =70

and get the output on a specified output range, a New Worksheet Ply, or a new Workbook.

HTH

Please post back if it works for you ... otherwise explain a little further and let us take it from there!
 
Upvote 0
Thanks, Yogi -

I have, but the people who will eventually use the model are not really that sophisticated. That's why I need to put a macro in to do it for them systematically.

Christina
 
Upvote 0

Forum statistics

Threads
1,213,527
Messages
6,114,150
Members
448,552
Latest member
WORKINGWITHNOLEADER

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