Brad - Thanks for the quick response. How could this could be altered so that instead of pulling 20% sampling from every row it would pull a 20% sampling per group with a worksheet is subtotaled? Please see sample file. It's a small group but on the actual file I'll be dealing with hundereds of groups and would only need a 20% sampling.
Thanks





by: byundtPosted on 2009-10-06 at 10:58:52ID: 25507827
Here is a macro that will randomly select 20% of the rows (columns A through Q only) and copy it to a newly created worksheet. It uses the RAND function to return random numbers, then grabs the bottom 20% of those.
Brad
Select allOpen in new window