Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default selecting random records

Hi

does anyone know how to do this please?

From a spreadsheet consisting of about 800 rows (records) select a
random sample of records(about 50) and also create a data set by
selecting every 10th record.

TIA

Terry
==
Terry Freedman
www.ictineducation.org
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default selecting random records

Terry,

The typical random sample is to insert a column of formulas
=RAND()
and sort on that column, then take the top however-many values you want.

To create a data set, insert a column of formulas
=MOD(ROW(),10)
Copy that column, paste values, then sort on that column and take every
value with the single value, like 1, or 0 or whatever.

HTH,
Bernie
MS Excel MVP

"terry freedman" wrote in message
...
Hi

does anyone know how to do this please?

From a spreadsheet consisting of about 800 rows (records) select a
random sample of records(about 50) and also create a data set by
selecting every 10th record.

TIA

Terry
==
Terry Freedman
www.ictineducation.org



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default selecting random records

Thanks very much, Bernie

That's brilliant!


Terry
On Thu, 1 Apr 2004 20:15:42 -0500, "Bernie Deitrick" <deitbe @
consumer dot org wrote:

Terry,

The typical random sample is to insert a column of formulas
=RAND()
and sort on that column, then take the top however-many values you want.

To create a data set, insert a column of formulas
=MOD(ROW(),10)
Copy that column, paste values, then sort on that column and take every
value with the single value, like 1, or 0 or whatever.

HTH,
Bernie
MS Excel MVP

"terry freedman" wrote in message
.. .
Hi

does anyone know how to do this please?

From a spreadsheet consisting of about 800 rows (records) select a
random sample of records(about 50) and also create a data set by
selecting every 10th record.

TIA

Terry
==
Terry Freedman
www.ictineducation.org



==
Terry Freedman
www.ictineducation.org
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
selecting records Roy Gudgeon[_2_] Excel Discussion (Misc queries) 2 March 9th 10 10:30 AM
Selecting Random Records From an Excel Sreadsheet Trevor Aiston[_2_] Excel Worksheet Functions 3 June 29th 09 11:20 AM
the formula for random selecting Inquiring mind Excel Discussion (Misc queries) 2 March 19th 09 02:33 PM
Selecting Random Data myssieh Excel Worksheet Functions 5 February 13th 08 05:09 PM
Selecting Random Data Willie Excel Worksheet Functions 2 August 18th 05 06:26 PM


All times are GMT +1. The time now is 05:40 PM.

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

About Us

"It's about Microsoft Excel"