+ Reply to Thread
Results 1 to 3 of 3

Random Sampling

  1. #1
    Registered User
    Join Date
    03-26-2007
    Posts
    1

    Random Sampling

    How do you make a random sample of a set of data in excel?
    I have a list of people, with serial numbers and heights and weights. Is there an excel function that will make the sample for me?

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Please read forum rules below.
    Only your duplicate post has being deleted this time.....

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    To generate random numbers (integers) between two numbers, you can use

    =RANDBETWEEN(x,y)

    where x and y are your lower and upper limits. You can then fill this formula down and across as many rows/columns as you need.

    Note, however, that RANDBETWEEN is a volatile function. This means that anytime the spreadsheet changes or recalculates, those numbers will change. To avoid them changing after you've gotten the random data, select all of those cells and choose Copy, then click Edit-PasteSpecial-Values. This will over-write all of those cells with their values, removing the RANDBETWEEN formula.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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