How to pick a random winner from an Excel list
Two reliable formula methods, the pitfalls that catch people out (recalculation, duplicates, missed rows), and a fairer way to run and record the draw from the same spreadsheet.
- Published
- Updated
- Reading time
- 8 min read
On this page
Your entries are already in a spreadsheet: a registration export, a list of survey respondents, an HR file of everyone at the company. Excel can pick a random row from it in seconds. It can also quietly show a different winner every time someone touches the file, count the same person twice, or leave you with no way to show how the winner was chosen.
Below are two formula methods that work in Excel, and in Google Sheets with the same function names, the mistakes to avoid with each, and what to do when the draw needs to be visible and verifiable.
Quick method: shuffle with RAND and freeze the result
Step 1: Clean the list
Put one entry per row with a header in row 1, and remove blank rows and duplicate entries.
Step 2: Add a random number to every row
In an empty column next to your data, enter =RAND() in the first row and fill it down to the last entry.
Step 3: Freeze the random numbers
Copy the random column and paste it back as values only, so the numbers stop changing.
Step 4: Sort by the random column
Sort the whole table by the random column, largest to smallest, keeping every row together.
Step 5: Take the winners from the top
The first data row is the first winner; the rows below it are the next winners or reserves, in order.
Step 6: Save a record
Save a copy of the sorted file named with the date and time, and note who watched the draw.
Prepare the list first
Whatever method you use, the result is only as good as the list. Spend five minutes on it before you write a formula.
- One row per entry. If someone has three entries, they need three rows. If everyone gets one entry, each person must appear exactly once.
- A unique ID column. Email, employee ID or ticket number. You will use it to find duplicates and to identify the winner without any ambiguity.
- No blank rows. A blank row inside the range can be picked as the winner, and it throws off your counts.
- Duplicates removed by ID. Select the table, choose Data > Remove Duplicates and tick only the ID column. Matching on names misses Rob Lee and Robert Lee, and wrongly merges two different people who share a name.
Then count the entries with COUNTA on the ID column and write the number down. It is the size of your draw.
=COUNTA(B2:B401)Method 1: shuffle the list with RAND
This is the most transparent spreadsheet method, because the final order is visible to everyone and you can take several winners in one go.
- Click the first empty column to the right of your data and type a header such as Random.
- In row 2 of that column, enter =RAND() and double-click the fill handle to copy it down to the last entry.
- Select the whole Random column, copy it, then use Paste Special > Values. The numbers are now fixed.
- Select any cell in the table and sort by Random, largest to smallest. Make sure Excel expands the selection so every row moves together.
- Row 2 is your first winner. Rows 3, 4 and 5 are your next winners or reserves, in that order.
=RAND()In Excel for Microsoft 365, one formula can produce a shuffled copy of the whole table and leave the original untouched:
=SORTBY(A2:C401, RANDARRAY(ROWS(A2:C401)))Like RAND, the shuffled copy changes every time the sheet recalculates, so copy it and paste it as values before you announce anything.
Method 2: pick one row with RANDBETWEEN and INDEX
If you only need a single winner and want the result in one cell, combine RANDBETWEEN, which returns a random whole number in a range, with INDEX, which returns the value at a given position in a list.
=INDEX(A2:A401, RANDBETWEEN(1, ROWS(A2:A401)))ROWS counts the cells in the range, so the formula always lands between the first and the last entry. If your list grows, update the range in both places, or format the data as an Excel table and use a structured reference instead:
=INDEX(Entries[Name], RANDBETWEEN(1, ROWS(Entries[Name])))To make the result easier to check, split it into two cells: put the random position in E1 with =RANDBETWEEN(1, ROWS(A2:A401)), then show the name in E2 with =INDEX(A2:A401, E1). Announce the position along with the winner.
Watch out: Picking several winners this way is risky. Each extra formula can land on the same position again, so the same person can be drawn twice. Use Method 1 when you need more than one winner.
Pitfalls that catch people out
- Recalculation. RAND, RANDBETWEEN and RANDARRAY are volatile: they produce new values whenever the workbook recalculates, which happens when you edit any cell, reopen the file or press F9. If you announce a winner and then save, the file may already show someone else. Paste as values first.
- Fishing for a result. Because F9 gives a new winner instantly, it is tempting to press it just once more. Agree in advance that the first result counts, and have someone watch.
- Duplicates. Repeated rows give some people extra chances without anyone deciding they should. Remove them by ID, or flag them with =COUNTIF(B:B, B2)>1 in a helper column.
- Ranges that miss rows. A range of A2:A400 silently ignores entry 401. Check that the last row in your formula matches the last row of your data.
- Hidden and filtered rows. INDEX and the RAND sort include hidden and filtered-out rows. Delete ineligible rows from a copy of the list instead of hiding them.
- No record. A spreadsheet shows its current state, not what happened. Without a saved copy and a witness, you cannot show later how the winner was chosen.
Spreadsheet random functions are built for modelling, not for security, and they are not cryptographically secure. That is fine for a staff-room draw with a box of chocolates. For valuable prizes or a public audience, run the draw in software built for fair, verifiable draws, as described at the end of this guide.
Make a spreadsheet draw verifiable
If you stick with Excel, a few habits make the result much easier to defend:
- Share the entry count before the draw, and ideally the list of ticket numbers.
- Run the draw on a shared screen or with a witness beside you, and accept the first result.
- Paste the random values, sort, and immediately save a copy named with the date and time, such as draw-2026-12-12-1830.xlsx.
- Write down the winners in order with their IDs, followed by any reserves.
Witnesses, records and replacements: the full fair draw checklist
A fairer, recorded way: import the same spreadsheet
When the prizes are valuable or the audience is large, you want the convenience of your spreadsheet without its weak points. RaffleBloom starts from the same file:
- Download the Excel template or upload your own .xlsx or .csv file, and map your columns to name, email, phone or ID.
- Review the import before it is saved. Missing details and duplicates are flagged row by row, and a whole import can be undone.
- Check the eligible pool, with the reason for every exclusion, then freeze it. Its SHA-256 fingerprint is stored with the draw.
- Press Draw. The winner is picked on the server with a cryptographically secure random generator and saved before the presenter screen reveals it.
- Every draw, replacement and change goes into a tamper-evident audit log, and participants can check their own result.
Your spreadsheet stays the source of entries, and the draw itself happens somewhere that cannot recalculate, double-count or forget.
RaffleBloom is a paid subscription: one plan with every feature, billed monthly or yearly, which you can cancel anytime from the billing portal. It earns its place when a draw has to stand up to questions, such as a company annual day, a sponsored giveaway or a public event. For a box of chocolates in the staff room, the spreadsheet methods above are enough.
Key takeaways
- Clean the list first: one row per entry, a unique ID, no blanks or duplicates.
- For several winners, add RAND, paste it as values, sort, and take winners from the top.
- For a single winner, INDEX with RANDBETWEEN and ROWS works, but repeated formulas can pick the same person twice.
- Random functions recalculate on every edit, so freeze the result before you announce it.
- For valuable prizes or a public audience, run the draw from the same spreadsheet in software with secure randomness, a frozen list and an audit log.
Frequently asked questions
Can Excel pick a random name from a list?
Yes. =INDEX(A2:A401, RANDBETWEEN(1, ROWS(A2:A401))) returns a random name from A2:A401. Paste the result as a value before announcing it, because the formula changes every time the sheet recalculates.
Why does my random winner keep changing?
RAND and RANDBETWEEN are volatile functions that recalculate whenever the workbook changes or opens. Copy the cells and use Paste Special > Values to fix the result.
How do I pick several winners without repeats?
Add =RAND() next to each row, paste that column as values, sort by it and take the top rows. Each row appears only once, so nobody can be drawn twice.
Is Excel’s RAND function random enough for a prize draw?
For a casual draw with small prizes it is usually fine. It is not a cryptographically secure generator and it leaves no record, so for valuable or public draws use software that freezes the list, draws securely and keeps a record of every result.
Does this work in Google Sheets?
Yes. RAND, RANDBETWEEN, INDEX, ROWS and COUNTA work the same way. Use Edit > Paste special > Values only to freeze the results.
Can RaffleBloom run the draw from my existing Excel list?
Yes. Upload the .xlsx or .csv file you already have, up to 20,000 rows, match the columns and review every row before it is saved. RaffleBloom is a paid subscription, so importing a list and running draws needs an active plan.