Randomize List of Names in Excel

“randomize list of names in excel” comes up constantly, so this page leads with the exact answer, gives you a tool to try it on your own numbers, and only then explains the detail. Everything works in Excel on Windows and Mac and maps almost one-to-one to Google Sheets. Copy the answer above and get back to work, or read on to turn a one-off fix into something you never have to look up again.

Exact answer

In Excel: use =RANDBETWEEN(1,100) for a whole number in a range, =RAND() for a decimal between 0 and 1, or =RANDARRAY(10,1,1,100,TRUE) in Microsoft 365 for a whole block at once.

ƒxRandom Numbers & List ShufflerLive
Result
6

Seed: 20260101

=RANDBETWEEN(A2,B2)
=RANDBETWEEN(1,100)
Ctrl+CthenCtrl+Shift+V+Cthen+Ctrl+VPaste values · WindowsMac

What this does

Excel has three generators. RAND() returns a decimal ≥0 and <1. RANDBETWEEN(bottom, top) returns a whole number in an inclusive range. RANDARRAY(rows, columns, min, max, whole_number) spills a whole grid in Microsoft 365. All three are volatile: they produce a new value on every recalculation, every edit and every file open. To freeze a draw, copy the cells and Paste Special ▸ Values. To shuffle a list rather than generate numbers, add a =RAND() helper column and sort by it — or use =SORTBY(A2:A50, RANDARRAY(49)) in Microsoft 365. The same idea underpins a lot of everyday Excel work, so the few minutes spent getting it right here pay back across every sheet you build afterwards. Treat it as a pattern, not a one-off, and it stops being something you look up and starts being something you reach for. For “randomize list of names in excel”, the reliable version is a short checking loop, not just the first command that appears to work. Run it on a deliberately small range first, watch how the affected list change, and only then apply the same setup to the full sheet. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. That is what makes a layout choice that keeps the sheet readable and sortable useful in real work: repeatable, auditable, and not dependent on memory or luck.

A worked example

Ten random whole numbers from 1 to 100: enter =RANDBETWEEN(1,100) in A2 and fill down to A11. Press F9 and all ten change. To keep one particular draw, select A2:A11, Ctrl+C, then Home ▸ Paste ▸ Values. To pick 5 winners from a list of names in A2:A200 without repeats: =INDEX($A$2:$A$200, RANK(B2, $B$2:$B$200)) beside a =RAND() column, or simply =SORTBY(A2:A200, RANDARRAY(199)) and take the top 5. Random numbers drive sample selection, prize draws, test data and Monte Carlo models — and the two things that catch people out, volatility and repeated values, are both easy to control once you know they are there. If there is any chance you will reuse this, drop it into a small template tab right now: a labelled input area on the left and the formula beside it, checked once against the tool above. Next time the same question comes up, the answer is a single paste away instead of a rebuild from memory.

In Google Sheets

Everything above works in Google Sheets too. Excel and Sheets share the formula syntax used here; only the surrounding menus are arranged differently. That portability is deliberate — learn it once and it follows you between the two tools and across Windows and Mac. Nothing on this page is behind a login: the tool runs entirely in your browser, the formula is shown in full with one-click copy, and the steps work the same on Windows and Mac. That is the whole promise here — the exact answer, a way to prove it on your own numbers, and just enough context to make it stick. If you take one thing from this page on “randomize list of names in excel”, make it the habit rather than the keystrokes: set the problem up with labelled inputs, reference those cells, and let Excel do the recomputing. Bookmark the page for the syntax, but do the example once in a blank sheet and check it against the tool above — five minutes of hands-on practice fixes the method in memory far better than re-reading, and it surfaces the small snags while they are still harmless. After that the technique is genuinely yours: faster than searching for it again, and reliable enough to drop into work that other people depend on.

Common mistakes

  • Forgetting the functions are volatile, so the "random sample" in a report changes the next time anyone opens the file.
  • Assuming RANDBETWEEN gives unique values — it draws with replacement, so duplicates are expected. Use a RAND helper column plus RANK, or SORTBY with RANDARRAY, when you need distinct picks.
  • Building a big sheet on thousands of volatile cells, which makes every keystroke recalculate the workbook.
  • Treating Excel's generator as cryptographically secure; it is fine for sampling and demos, not for keys or passwords.
  • Referencing a random cell from another formula and wondering why the two disagree — they were evaluated on different recalculations.

Frequently asked questions

How do I generate a random number in Excel?

=RANDBETWEEN(1,100) gives a whole number from 1 to 100 inclusive. =RAND() gives a decimal between 0 and 1. Both redraw on every recalculation.

How do I stop random numbers from changing?

Select the cells, copy them, then Home ▸ Paste ▸ Values. That replaces the volatile formulas with the numbers they last produced.

How do I randomise a list of names?

Add =RAND() in a helper column beside the list, sort the list by that column, then delete the helper. In Microsoft 365, =SORTBY(A2:A50, RANDARRAY(49)) does it in one formula.

How do I get random numbers without duplicates?

Generate a =RAND() value per row and rank them: =INDEX($A$2:$A$200, RANK(B2,$B$2:$B$200)). Ranking a set of distinct random decimals yields distinct picks, unlike RANDBETWEEN.