Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default how to randomly select data in excel

how do we select a small sample of data randomly froma given set of large
data in excel
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default how to randomly select data in excel

Let's say the data is in A1:A100 and you want a sample of 4
In B1 enter =RANDBETWEEN(1,1000) and copy down the column
In C1:C4 enter 1,2,3,4
In D1 enter =INDEX($A$1:$A$100,LARGE($B$1:$B$100,C1), copy down to D4
This gives four from the data, press F9 to resample
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"random selection of data" <random selection of
wrote in message
...
how do we select a small sample of data randomly froma given set of large
data in excel



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 27
Default how to randomly select data in excel

Hi Bernard,

I tried the solution as given below but I am not getting any solution in
Column D as mentioned below, instead I am getting the error message as #Ref!

Please tell me where I am going wrong.

Cheers,
Mandeep Dhami

"Bernard Liengme" wrote:

Let's say the data is in A1:A100 and you want a sample of 4
In B1 enter =RANDBETWEEN(1,1000) and copy down the column
In C1:C4 enter 1,2,3,4
In D1 enter =INDEX($A$1:$A$100,LARGE($B$1:$B$100,C1), copy down to D4
This gives four from the data, press F9 to resample
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"random selection of data" <random selection of
wrote in message
...
how do we select a small sample of data randomly froma given set of large
data in excel




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default how to randomly select data in excel

One option:

Insert a new column next to your data.
Enter the formula: =Rand()
Copy the formula down for all data
Sort your data by the new column

You can then look at the first 5 lines, or 10, or 100... whatever sample
size you need.

HTH,
Elkar


"random selection of data" wrote:

how do we select a small sample of data randomly froma given set of large
data in excel

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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
TRYING TO SET UP EXCEL SPREADSHEET ON MY COMPUTER MEGTOM New Users to Excel 5 October 27th 05 03:06 AM
Help PLEASE! Not sure what answer is: Match? Index? Other? baz Excel Worksheet Functions 7 September 3rd 05 03:47 PM
SELECT large amount of data in a worksheet OTS Excel Discussion (Misc queries) 3 August 13th 05 04:43 PM
Using keyboard to select using excel 02 data... pdow Excel Worksheet Functions 1 December 16th 04 12:37 AM


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