Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Random selection of items from a group (AQL sampling)

Has anyone developed a formula for selecting random items from a group?

Given the size of the group "G" and the number of samples "S" required to be selected from it, I want to create an ordered list of randomly selected sequence numbers from G up to the total number of S with each selection being excluded from subsequent selections. (Just like picking numbered ping-pong balls from a bag, once selected that number is no longer available to be selected.

Example: I have a group size of 100 units. I want to randomly select 10 units from the sequence of 1-100. The output I want might be something like


1
2
2
3
6
7
7
8
9

This would be a supposedly random selection of 10 unique sequence numbers from the group of 100 units

If anyone has a solution, please let me know

Thanks,
Scott
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Random selection of items from a group (AQL sampling)

put the numbers 1 to 100 in A1:A100
in B1 put in
=rand()
drag fill down to B100
Select A1:B100 and sort on column B.

Select A1:A10 and sort again on column A.

Those are you 10 balls.

--
Regards,
Tom Ogilvy
"ScottDL" wrote in message
...
Has anyone developed a formula for selecting random items from a group?

Given the size of the group "G" and the number of samples "S" required to

be selected from it, I want to create an ordered list of randomly selected
sequence numbers from G up to the total number of S with each selection
being excluded from subsequent selections. (Just like picking numbered
ping-pong balls from a bag, once selected that number is no longer available
to be selected.)

Example: I have a group size of 100 units. I want to randomly select 10

units from the sequence of 1-100. The output I want might be something
like:

2
14
23
27
34
67
78
79
85
98

This would be a supposedly random selection of 10 unique sequence numbers

from the group of 100 units.

If anyone has a solution, please let me know.

Thanks,
Scott



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Random Sampling Deb Excel Discussion (Misc queries) 0 June 24th 09 06:33 PM
Random Sampling - Please Help! Lee Mathew Excel Worksheet Functions 2 July 15th 08 11:45 PM
Random Sampling Pandorah Excel Discussion (Misc queries) 7 June 30th 07 07:44 AM
Random Sampling Andrea Excel Discussion (Misc queries) 2 November 11th 05 09:52 AM
Random Selection of items in Excel? mnpremo Excel Discussion (Misc queries) 8 September 23rd 05 08:18 AM


All times are GMT +1. The time now is 11:00 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"