#1   Report Post  
Posted to microsoft.public.excel.misc
hmc hmc is offline
external usenet poster
 
Posts: 1
Default Sampling

I am trying to past sample results into a new worksheet; however, I need the
whole row to come over.
Example:
10 columns
10 rows

*random sampling of 5; howver, I need the whole row to come over

Everytime I do it, it states it can't bring over numeric data is there
something else I can try to any other options?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Sampling

Here is a neat trick to sample entire rows. You will need two helper columns
(Y&Z).

Say we have data in rows 1 thru 100 and we want to sample 5 rows.

In Y1 thru Y5 enter 1
In Y6 thru Y100 enter 0
In Z1 thru Z100 enter =rand()

Then sort cols Y & Z by column Z. This will scatter the 1's down the
column. If you switch on AutoFilter, you can pick out the rows with the 1's.
Just copy/paste the visible rows. To get a new sample switch off the
AutoFilter, re-sort, and re-filter.
--
Gary''s Student - gsnu200769


"hmc" wrote:

I am trying to past sample results into a new worksheet; however, I need the
whole row to come over.
Example:
10 columns
10 rows

*random sampling of 5; howver, I need the whole row to come over

Everytime I do it, it states it can't bring over numeric data is there
something else I can try to any other options?

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
Sampling gary53217 Excel Discussion (Misc queries) 5 April 26th 07 09:00 PM
Sampling John Adams Excel Discussion (Misc queries) 1 April 20th 07 08:43 PM
A Sampling Program Miloann Excel Discussion (Misc queries) 2 March 16th 06 06:56 AM
Random Sampling Andrea Excel Discussion (Misc queries) 2 November 11th 05 09:52 AM
Sampling kharrison Excel Discussion (Misc queries) 4 December 21st 04 10:40 AM


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