+ Reply to Thread
Results 1 to 5 of 5

How to generate a random sample and repeat it 1000 times

  1. #1
    Registered User
    Join Date
    08-14-2013
    Location
    just let me register
    MS-Off Ver
    Excel 2003
    Posts
    1

    How to generate a random sample and repeat it 1000 times

    So im a excel noob and since i mostly use stata. Anyways im trying to create a simple random sample from my data set of size n=100 and then i need to repeat that step a 1000 times to make a new data set that i can transfer over to stata. Everything I have seen on the internet involves generating random numbers which isnt what i want. I need to be able to generate a random sample that i can analyze

    Currently my excel spreadsheet consists of 4 columns with 200 entries in each column.

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: How to generate a random sample and repeat it 1000 times

    Select the range first where Random numbers are required, then use =Randbetween(Bottom Value,Top Value) & hit Ctrl+Enter

    The syntax of the same if very easy to understand..

    Hope it helps!

    Deep
    Cheers!
    Deep Dave

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: How to generate a random sample and repeat it 1000 times

    Please attach a sample workbook with enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

    Note: Please don't attach documents containing confidential data like (address, telephone, ID#s, etc.).


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: How to generate a random sample and repeat it 1000 times

    What are the characteristics of your data? It's hard to understand how you need to generate random data but generating random numbers isn't what you want.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  5. #5
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: How to generate a random sample and repeat it 1000 times

    Assuming your data set is in A1:D200, put this in a cell:
    =INDEX($A$1:$D$200,RANDBETWEEN(1,200),RANDBETWEEN(1,4))
    Then drag down 100 and across 1000 (or use the ctrl-enter technique described by msexcelathome above)
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

+ 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. Replies: 2
    Last Post: 02-05-2013, 04:27 PM
  2. Replies: 6
    Last Post: 12-06-2012, 08:14 PM
  3. [SOLVED] Generate random 6-16-byte random hexadecimal number
    By jsamuelshn in forum Excel General
    Replies: 6
    Last Post: 07-20-2012, 10:38 AM
  4. cannot iterate random numbers 1000 times
    By jane657 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 04-30-2009, 04:11 PM
  5. generate a random number and use if function to generate new data
    By Dogdoc1142 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-25-2006, 10:50 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