How to Pick a Random Name From a List: Excel, Google Sheets or a Wheel
You have a list of names and you need one winner, or five, or a random order for a presentation. Maybe it is a classroom, a team meeting, a giveaway or a raffle. There are three practical ways to do it, and each one fits a different situation. Here is how each works, what can go wrong, and which one to pick.
To pick a random name from a list in Excel or Google Sheets, use =INDEX(A2:A101, RANDBETWEEN(1, COUNTA(A2:A101))). If you do not want to use formulas, paste the names into the free name picker wheel, press spin, and the winner appears in a few seconds.
Try it now: Random Name Picker Wheel – Paste names and spin to pick one at random.
Method 1: Pick a random name in Excel
Put your names in one column, for example A2 to A101. In any empty cell, type this formula:
=INDEX(A2:A101, RANDBETWEEN(1, COUNTA(A2:A101)))
RANDBETWEEN chooses a random row number between 1 and the number of names, and INDEX returns the name in that row. COUNTA counts the filled cells, so the formula still works if you add or remove names, as long as the range covers them.
To pick several different names at once in Excel 365, shuffle the list and take the top few. This formula returns three names with no repeats: =TAKE(SORTBY(A2:A101, RANDARRAY(ROWS(A2:A101))), 3). Change the 3 to the number of winners you need.
Method 2: Pick a random name in Google Sheets
The single-name formula is the same in Google Sheets: =INDEX(A2:A101, RANDBETWEEN(1, COUNTA(A2:A101))).
For several unique names, shuffle the list with SORT and RANDARRAY, then keep the first rows: =ARRAY_CONSTRAIN(SORT(A2:A101, RANDARRAY(ROWS(A2:A101)), TRUE), 3, 1). That returns three names, each from a different row.
The catch with spreadsheet formulas
RANDBETWEEN and RANDARRAY recalculate every time the sheet changes. Type anything anywhere and the winner changes. If you are drawing a winner in front of other people, copy the result cell and paste it as values only (Paste Special, then Values in Excel; Ctrl+Shift+V in Google Sheets). The name is then fixed and cannot change by accident.
Two more things to check before you draw. If a person appears twice in your list, they have twice the chance, so remove duplicates first. And empty cells in the middle of the range are fine for COUNTA, but a stray note typed into the column counts as a name.
Method 3: Use a random name picker wheel
A wheel is the easiest option when you do not want to build a formula, and it is much better when other people are watching. Open the random name picker wheel, type or paste one name per line, and press spin. Each name has the same chance, and the result is shown on screen so everyone sees it at the same time.
Useful extras on the wheel: remove each winner after the spin so nobody is picked twice, add a name more than once or use a weight such as Sam x3 when someone should have more chances, and skip an absent person by putting a tilde in front of their name, like ~Priya. If you are drawing from social media comments, the comment picker is built for that job.
Which method should you use?
| Situation | Best method | Why |
|---|---|---|
| One winner, nobody watching | Excel or Sheets formula | Fast if the names are already in a spreadsheet |
| Live draw in a class, meeting or stream | Name picker wheel | Everyone sees the result as it happens |
| Several winners with no repeats | Shuffle formula, or wheel with winners removed | Each person can only win once |
| Giveaway where people will ask how you chose | Wheel plus a screen recording | Easy to show and easy to prove |
| Splitting a group into teams | Name picker wheel (team option) | Divides the names into groups for you |
How to make the draw fair
Fairness is mostly about the process, not the tool. Write down who is eligible before you draw, remove duplicates, draw only once, and keep a record such as a screenshot or screen recording with the date visible. Our guide to running a fair giveaway covers rules and record keeping in more detail, and is a spinner wheel truly random explains how the result is chosen.
Other ways to do it
- Paper slips: write each name on a slip, fold them, mix them in a bowl and pull one. It works for a small group and is easy to see.
- Numbered list and a number generator: give every name a number, then use the random number generator to pick a number and read off the name.
- Code: in Python, random.choice(names) picks one name and random.sample(names, 3) picks three different names.
Pick a random order, not just one winner
Sometimes you do not need a winner at all. You need an order: who presents first, who answers first, who goes into which breakout room. In Excel 365 or Google Sheets, put a RANDARRAY next to the names and sort by it. The formula =SORTBY(A2:A21, RANDARRAY(ROWS(A2:A21))) returns the whole list in a new random order. Copy and paste it as values so the order stops changing.
On a wheel, switch on the option that removes each winner after the spin. Spin until the wheel is empty and the order of winners is your random order. It takes a minute for a class of twenty and everyone can see that it is fair.
Pick a random line from a text file
If your names are in a plain text file with one name per line, a Linux or Mac terminal with GNU coreutils can pick one with shuf -n 1 names.txt, or three different ones with shuf -n 3 names.txt. That is the quickest option for people who already work in a terminal, and it never repeats a line within one run.
Clean your list before you draw
Most bad draws come from a messy list, not from the random method. Five minutes of cleaning is worth more than any formula.
- Remove exact duplicates, because a name that appears twice has twice the chance.
- Check for the same person written two ways, such as Jon and Jonathan, or with and without a surname.
- Trim spaces at the start and end of names. Sheets and Excel treat a name with a trailing space as a different entry.
- Delete blank rows so the formula does not land on an empty cell.
- Decide in advance who is eligible, and remove anyone who is not before you draw, not after.
Fair draws for classrooms, teams and giveaways
For a classroom, a visible wheel works best because pupils can see that the pick is not up to the teacher. For a team stand-up, drawing the order of speakers with a spreadsheet formula is fine and saves time. For a giveaway, record the draw: screen-record the spin or take a screenshot of the number and the matching entry, and keep your list. If someone questions the result, you can show exactly how it was done.
Whichever method you use, state the rules before you draw, not after. Say how many winners there are, whether repeats are allowed, and what happens if a winner does not respond. A fair method with unclear rules still causes arguments.
Pick random names online without repeats
Google's results for this search are mostly online pickers, and the common request behind them is a pick with no repeats. Any picker that can remove each winner after the draw does this. Paste one name per line, draw, and the winner leaves the list, so the next draw is among the names still in. For a full shuffle in one go, a list randomizer returns every name in a new random order, which you can read from the top for as many winners as you need.
Free options include our name picker wheel, the list randomizer on random.org, and the pickers on sites such as GigaCalculator and Random Lists. They all do the same basic job. Choose the one that handles your list size, does not ask you to sign up, and, if the names are private, keeps them in your browser.
Pick a random name from a list in Python
For anyone who already writes code, Python does this in two lines. Put the names in a list, then use the standard random module.
import random; names = ['Ana', 'Ben', 'Cleo', 'Dev']; print(random.choice(names))
random.choice returns one name. To pick several different names, use random.sample(names, 3), which never returns the same item twice. For anything where the result must be unguessable, such as a prize with real value, use the secrets module instead: secrets.choice(names) draws from the operating system's secure source.
Quick comparison of every method
| Method | No repeats? | Best for |
|---|---|---|
| Excel or Sheets formula (RANDBETWEEN) | No, unless you shuffle with RANDARRAY | A single quick pick |
| SORTBY with RANDARRAY | Yes | Random order, several winners |
| Name picker wheel | Yes, when winners are removed | Live draws that people watch |
| List randomizer | Yes | Shuffling a whole list at once |
| Python random.sample | Yes | Scripts and automation |
Frequently asked questions
What is the formula to pick a random name from a list in Excel?
Use =INDEX(A2:A101, RANDBETWEEN(1, COUNTA(A2:A101))), changing the range to match your list. It returns one random name each time the sheet recalculates.
How do I pick several random names with no repeats?
In Excel 365 use =TAKE(SORTBY(A2:A101, RANDARRAY(ROWS(A2:A101))), 3). In Google Sheets use =ARRAY_CONSTRAIN(SORT(A2:A101, RANDARRAY(ROWS(A2:A101)), TRUE), 3, 1). On the name picker wheel, turn on removing each winner after the spin.
Why does my random name keep changing?
Spreadsheet random functions recalculate whenever the sheet changes. Copy the result and paste it as values only to lock the name in place.
Is a random name picker wheel fair?
Yes. Every name has the same chance on each spin, and the result comes from your browser's secure random source, not from a pattern.
Can I give one person more chances?
Yes. Add their name more than once, or write a weight such as Sam x3 on the wheel. Only do this if your giveaway rules say some entries count more.
How do I pick a random name from a list without repeats?
In Excel 365 or Google Sheets, shuffle the list with SORTBY and RANDARRAY and take the first rows. On a wheel, turn on the option that removes each winner after the spin.
Can I pick a random name from a list online without Excel?
Yes. Paste one name per line into a free name picker wheel such as the SpinPicker name picker wheel, then press spin. Nothing needs to be installed and the list stays in your browser.
How do I make a random order of names?
Add a column of random numbers next to your names and sort by it, or spin a wheel that removes each winner. The order in which names come out is your random order.
Is there a random name picker with no repeats?
Yes. Use a wheel or picker that removes each winner after the draw, or shuffle the full list and read it from the top. Both guarantee each name appears only once.
How do I pick a random name from a list in Python?
Use random.choice(names) for one name and random.sample(names, 3) for three different names. For prizes, use secrets.choice(names).