Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have a macro that generates a random sample of data for me. However, I
always end up with duplicate rows. Here is my macro info: Sub takeSample() Randomize Timer For SampleRow = 2 To 80 dataRow = 2 + Fix(466 * Rnd) Worksheets("Data").Rows(dataRow).Copy Worksheets("Sample").Rows(SampleRow).PasteSpecial Next SampleRow End Sub Can anyone Help me write this so I can generate 50 samples from my list that are not duplicated? Thanks! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Seed numbers for random number generation, uniform distribution | Excel Discussion (Misc queries) | |||
How do I create a random sample from a list? | Excel Worksheet Functions | |||
Is it possible to do a random sample of non-numeric data in Excel? | Excel Discussion (Misc queries) | |||
How do I pull a random sample of people from a list in excel? | Excel Worksheet Functions | |||
Random Sampling | Excel Discussion (Misc queries) |