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.

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๎˜ƒ
๎˜ƒ
Creating๎˜ƒa๎˜ƒRandom๎˜ƒSample๎˜ƒin๎˜ƒExcel๎˜ƒ๎˜ƒ
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.๎˜ƒ
๎˜ƒ
๎˜ƒ
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.