We get a lot of questions around here about random samples and how to create them (which tells us a thing or two about our customers and how survey smart they are). We have a fast, easy trick for you to generate a random sample right in Excel, but first let’s provide a bit of background about random sampling and why you should use it when you survey.

#### A Crash Course in Sampling

What is a random sample, you may be asking, and why would you need one? Well let’s say, for example, that you want to **survey your customers** to understand how you’re meeting their needs, and how you could do better. Your whole customer base is a **population**. You’re obviously not going to survey every single person in this population. Maybe you don’t have all of their contact information. Maybe they won’t all reply to your survey. Whatever the reason, the group of customers you have the ability to contact with your survey is your **sampling frame**. And the people you actually contact with your survey and who actually fill it out are your **sample**. You want to make sure your sample is randomly selected (hence, a **random sample**) to make sure that everyone in your sampling frame has an equal chance of being selected.

You don’t want to just select a “convenience sample,” the last 20 people who ordered from you, the last 20 customers when they’re listed alphabetically, etc. All these methods are inherently biased. If you sample the last 20 customers for example, they may be your newest customers who are only familiar with your most recent products or website design. By generating a random sample, you’re minimizing the bias that results from picking an convenience sample from your sampling frame.

#### How to Generate a Random Sample Using Excel

This can sound daunting, but you don’t actually need to be a statistician or mathlete to do this. All you need is an Excel spreadsheet! Just put your sampling frame—the customers you have contact info for—into your spreadsheet. Once you have your sampling frame (potential survey respondents) in Excel, you can easily select a random sample of them. For example, if you have 3,000 customers and you would like to select a random sample of 500 to receive a customer satisfaction survey, follow these steps:

- Add a new column within the spreadsheet and name it Random_number
- In the first cell underneath your heading row, type “= RAND()”
- Press “Enter,” and a random number will appear in the cell
- Copy and paste the first cell into the other cells in this column
- Once each row contains a random number, sort the records by Random_number column
- Choose the first 500 emails. Those will be the random 500 out of 3000 emails.

To make sure the number of respondents in your random sample are statistically significant, check out **this blog post**. Random samples make it easy to get feedback from a large population for any of the following:

*There you have it, survey-makers. Have you tried it out and have a use case for us? Share them with us in the comment section below. We’d love to hear your stories.*

#### Do a Better Job with SurveyMonkey Enterprise

Give yourself—and the rest of your team—the answers you need to make smarter decisions. Access our most powerful tools with SurveyMonkey Enterprise. Learn More →

Tags: population, random sample, sample, sampling frame, statistics, survey methodologist

Excel is OK for most cases, but it’s not truly ‘random’ as it uses a calculation to create the numbers.

Using all-organic random numbers is (statistically) better for the enviroment! :)

I employ a similar principle but I use the formula =mid(cell,3,3) where cell is the email address field i.e. using 3 characters of the email address starting at the third character. I then pick a block of the required number of records starting at some random point in the spreadsheet.

Poor clarity here. Two points:

– Bullet points 3 and 4 are identical.

– Paste only works here if it’s Paste Special/Values. Otherwise it just redoes the randomisation: very frustrating.

Dave – Thanks for pointing this out. We’ve taken out the redundant bullets.

I believe Excel’s default setting is to automatically recalculate formulas on refreshing the file; so users may want to go to File/Options/Formulas to choose manual calculations; then the sorting by random number will “work” just fine.

I’ve followed this procedure and everything seems to work, however the random number column does not actually seem to sort lowest to highest or highest to lowest. It gives the cases a good shuffling, but the resulting order, in and of itself, seems random. I’m I doing something wrong?

Thanks for the question, Greg! Working on an answer for you and will get back to you soon. Thanks for reading!

Every time you do something in Excel (like sort), it recalculates formulas; this includes the random value function. What you get is a sorting by the original randomization, then a new (different) randomization. So it still looks random. You can check this by trying it with a short list and tracking one of the values.

One way to avoid this was mentioned earlier; generate the random numbers, then insert a blank column. Copy the random column and paste values only instead of a regular paste. Then the new list of random numbers in the second column won’t change, and you can sort by those!

Or you can take it on faith that the first sorting was random. It works fine, it just looks a little funny!

Wow, thank you so much, Carl-E! This was an Excel mystery but so glad there’s an answer. Greg- I hope this helps you with your project.

Hi, I just stopped by to review this website. It looks really full of great content and I had

a good time browsing it, thanks for the helpful article!

You’re welcome! Have a great week.

Thanks for the tips. If you generate the random rumbers as suggested originally, then just paste only values in a seperate column(not formulas) you can sort them.

Awesome, you’re welcome! And thank you for the tip too. :)