Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Creating a Random Sample in Excel: A Step-by-Step Guide, Study notes of MS Microsoft Excel skills

Learn how to create a random sample in excel using the rand function and sorting the data. This guide includes screenshots and detailed instructions.

What you will learn

  • What is the purpose of creating a random sample in Excel?
  • What is the key step in replacing the function with the actual values in Excel?
  • How do you assign random numbers to a column in Excel?

Typology: Study notes

2021/2022

Uploaded on 09/27/2022

karthur
karthur 🇺🇸

4.8

(8)

230 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1|Page
CreatingaRandomSampleinExcel
Usingyourreportthatcontainsthecompletesetofcases:
1. AddrowtotherightoftheColumnofnumbersyouwanttosampleandnameit
whateveryouwanttocallit(i.e.RandomSample).
Theexampleherecontains45uniquevisitnumbers.
2. InB2typeintheformula=RAND()andthenpressentertoassignarandomnumber.

3. DoubleclickonthelittleboxinthelowerrightcorneroftheB2cell.Thiswillrepeatthe
functionforalltherowsinyourreport.Makesuretherearenoblankrows.
SeesampleonPage2.
pf3

Partial preview of the text

Download Creating a Random Sample in Excel: A Step-by-Step Guide and more Study notes MS Microsoft Excel skills in PDF only on Docsity!

Using your report that contains the complete set of cases:

  1. Add row to the right of the Column of numbers you want to sample and name it whatever you want to call it (i.e. Random Sample). The example here contains 45 unique visit numbers.
  2. In B2 type in the formula =RAND() and then press enter to assign a random number.
  3. Double click on the little box in the lower right corner of the B2 cell. This will repeat the function for all the rows in your report. Make sure there are no blank rows. See sample on Page 2.

4. Key step – replace the function with the value a. Go back to the top of column B and left click to highlight the entire column. b. With column B highlighted do Ctrl+C (or right click and select Copy). c. Click on the bottom portion of Paste to bring up the paste options. Select Paste Values. The numbers won’t change, but this step is still necessary. Depending on what version you are working in this option might look different. The key is to copy and select “Past Values”. This replaces the function with the actual value. If this isn’t done, whenever anything changes on the page it will generate a new number.