+ Reply to Thread
Results 1 to 3 of 3

sample

  1. #1
    Registered User
    Join Date
    06-24-2008
    Posts
    10

    sample

    Hello,

    I have a excel sheet with about 1000 rows and 60 columns. in each row, the first column is a UserID and the rest of the columns have some information for that UserID. I want make a sample of 500 of 1000 records. how can I do it?
    example:
    say this is my dataset before sampling:

    userID spsID Name
    668 41089 Playing
    2329 41627 Eating
    681 38411 Driving
    674 38481 Drinking
    674 38459 Sleeping
    672 41736 Reading
    672 41228 Sitting
    731 38867 Driving
    672 38323 Sitting
    749 39044 Driving

    after sampling I want to have something like this:
    userID spsID Name
    674 38481 Drinking
    749 39044 Driving
    2329 41627 Eating
    668 41089 Playing
    672 38323 Sitting
    Note: I have also downloaded Data analysis for my excel.

    Thanks a lot

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Please read the forum rules and revise your title to be more descriptive of your question...
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Valued Forum Contributor
    Join Date
    08-26-2008
    Location
    singapore
    Posts
    626
    you can use the "rand" function

    Insert a column for Random Serial No.

    add the formula like bellowing
    Please Login or Register  to view this content.
    Then select all your data together with the Serial No column
    Sot by the Serial No.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Email stock database to user when sample expires using lotus notes
    By richardpeers in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-07-2008, 04:21 AM
  2. create a random sample...
    By HenryH in forum Excel General
    Replies: 1
    Last Post: 03-30-2008, 11:59 AM
  3. draw sample from populatin
    By rooster2005 in forum Excel General
    Replies: 1
    Last Post: 08-30-2007, 04:54 AM
  4. calculating depreciation
    By manda in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-18-2007, 11:24 AM
  5. How to pull from a sample set?
    By Ticktockman in forum Excel General
    Replies: 8
    Last Post: 01-12-2007, 02:13 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1