#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default random sampling

Hello

I have a list of 705 patients with four different columns with data in it.
I need a random sample consisting of 150 of those patients. Can someone
please help?
--
Stacie
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default random sampling

Hi,

In column 5 enter the formula
=rand()
double click the fill handle and it should autofill down to the length of
column 4
Select all 5 columns and click
Data|sort|column E
and sort the columns
the top 150 will be randomely selected each time you sort

Mike

"staciern" wrote:

Hello

I have a list of 705 patients with four different columns with data in it.
I need a random sample consisting of 150 of those patients. Can someone
please help?
--
Stacie

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default random sampling

In the first column I have ID numbers, in the column where I put rand, I get
an integer(?). Also, will this duplicate the ID numbers and I also want to
be able to place the 150 ID numbers along with names on another spreadsheet.
So how can I accomplish this?
--
Stacie


"Mike H" wrote:

Hi,

In column 5 enter the formula
=rand()
double click the fill handle and it should autofill down to the length of
column 4
Select all 5 columns and click
Data|sort|column E
and sort the columns
the top 150 will be randomely selected each time you sort

Mike

"staciern" wrote:

Hello

I have a list of 705 patients with four different columns with data in it.
I need a random sample consisting of 150 of those patients. Can someone
please help?
--
Stacie

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default random sampling

You'd want to add a column, and put that formula in it, all the way down the
rows. Once you do this go to Data - Sort and sort by this column. Copy and
paste the first 150 rows of data to a new sheet. Then, in the new sheet,
delete the column with the formula.

"staciern" wrote:

In the first column I have ID numbers, in the column where I put rand, I get
an integer(?). Also, will this duplicate the ID numbers and I also want to
be able to place the 150 ID numbers along with names on another spreadsheet.
So how can I accomplish this?
--
Stacie


"Mike H" wrote:

Hi,

In column 5 enter the formula
=rand()
double click the fill handle and it should autofill down to the length of
column 4
Select all 5 columns and click
Data|sort|column E
and sort the columns
the top 150 will be randomely selected each time you sort

Mike

"staciern" wrote:

Hello

I have a list of 705 patients with four different columns with data in it.
I need a random sample consisting of 150 of those patients. Can someone
please help?
--
Stacie

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default random sampling

Thank you both. It worked well, once I relaxed and read the instructions
again.
--
Stacie


"Sean Timmons" wrote:

You'd want to add a column, and put that formula in it, all the way down the
rows. Once you do this go to Data - Sort and sort by this column. Copy and
paste the first 150 rows of data to a new sheet. Then, in the new sheet,
delete the column with the formula.

"staciern" wrote:

In the first column I have ID numbers, in the column where I put rand, I get
an integer(?). Also, will this duplicate the ID numbers and I also want to
be able to place the 150 ID numbers along with names on another spreadsheet.
So how can I accomplish this?
--
Stacie


"Mike H" wrote:

Hi,

In column 5 enter the formula
=rand()
double click the fill handle and it should autofill down to the length of
column 4
Select all 5 columns and click
Data|sort|column E
and sort the columns
the top 150 will be randomely selected each time you sort

Mike

"staciern" wrote:

Hello

I have a list of 705 patients with four different columns with data in it.
I need a random sample consisting of 150 of those patients. Can someone
please help?
--
Stacie



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default random sampling

Hi,

I just seen this post from a while back and I think it should work for me
too. May I just check - do you have any tips for working with large
databases? I am expecting an extract of about 150,000 records with only
about 15 data fields for each. I think it should read into Excel 2007, but I
want to save time by doing analysis on a sample of just 5000 or maybe 10,000.

Many thanks,

Ruth

PS I do like your quote about malice & stupidity!

"Mike H" wrote:

Hi,

In column 5 enter the formula
=rand()
double click the fill handle and it should autofill down to the length of
column 4
Select all 5 columns and click
Data|sort|column E
and sort the columns
the top 150 will be randomely selected each time you sort

Mike

"staciern" wrote:

Hello

I have a list of 705 patients with four different columns with data in it.
I need a random sample consisting of 150 of those patients. Can someone
please help?
--
Stacie

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 Pandorah Excel Discussion (Misc queries) 7 June 30th 07 07:44 AM
How to sort al list in random order for sampling? NJTom Excel Discussion (Misc queries) 1 September 21st 06 10:50 PM
Random Sampling rows [email protected] Excel Discussion (Misc queries) 2 March 16th 06 06:03 AM
Random Sampling Andrea Excel Discussion (Misc queries) 2 November 11th 05 09:52 AM
how to use excel to do random sampling stats Excel Discussion (Misc queries) 2 November 9th 05 10:21 PM


All times are GMT +1. The time now is 04:21 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"