Selecting Cases in Excel
Posted on 2006-05-03
I am currently using Microsoft Excel 2003.
I would like to have a list of data, and be able to randomly choose rows out of that list. For example: Say i have 5000 rows of data, I would like to be able to choose 100 random samples out of that 5000. Then be able to extract the chosen rows either manually or have VB do it for me. I would also like to be able to easily change that number, so one sample tell it to choose 500 rows of the 5000, then the next time be able to choose 100.
I am at a lost of how to do this, or if it is even possible in Excels VB. I had an idea of having a macro randomly choose the amount of rows i specify, then placing an X in column A, then i could sort manually and go from there. I would be happy with that.
Any suggestions. Thanks for the input.