LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.misc
B. R.Ramachandran
 
Posts: n/a
Default Is it possible to do a random sample of non-numeric data in Excel?

Hi,

If your non-numeric data start at A2 (and extend down to say A101), create a
range of random numbers in B2:B101 (for this, in B2 enter =RAND() and
autofill the formula down to B101). In C2 enter the formula,

=INDIRECT("A"&MATCH(LARGE($B$2:$B$101,ROW(A1)),$B$ 2:$B$101,0)+1)

Modify the range "$B$2:$B$101" to suit to your data; however don't change
the "ROW(A1)" in the formula.

The formula would return in C2 a random sample from column A. Drag the
formula in C2 to as many random samples as you want (e.g., if you want 10
samples, autofill the formula down to C11).

If your data start not at row 2 but in some other row, you have to modify
the formula appropriately. The "1" at the very end of the formula should be
changed to one less than the starting row number (e.g., if your data start at
A6, the number should be changed as "5").

Regards,
B. R. Ramachandran


"Terri G" wrote:

Is it possible to do a random sample of non-numeric data in Excel? If so,
what do I do?



 
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 2002; copy formulas to one workbook to another diff data SinnetBS Excel Worksheet Functions 1 November 25th 05 08:31 PM
Data from Excel 2000 Worksheet with external links is not displayed when opened in Excel 2003 Rich Rodberg Links and Linking in Excel 1 October 21st 05 07:53 AM
Match Each Numeric occurrence and Return Individual Rows of Data Sam via OfficeKB.com Excel Worksheet Functions 4 October 13th 05 04:22 AM
Linking the data from one excel to another mrbalaje Excel Discussion (Misc queries) 2 June 13th 05 10:44 AM
How can deleted data reappear in a refreshed pivot table in Excel excel_user123456 Excel Discussion (Misc queries) 3 February 23rd 05 08:34 PM


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