Random name picker in Excel
Names in A2 to A31: one formula picks, one shuffles.
How do I pick one name?
=INDEX(A2:A31, RANDBETWEEN(1, COUNTA(A2:A31)))
Why does the name keep changing?
Each calculation picks again: typing anywhere or pressing F9 source. To keep a pick, paste it back as a value.
How do I shuffle the whole list?
=SORTBY(A2:A31, RANDARRAY(COUNTA(A2:A31), 1))
- RANDARRAY makes one random number for each name source; SORTBY sorts the names by them source. Microsoft’s own example does this source.
- The answer spills into the cells below source; its top three are three different names.
- No blank cells in A2 to A31: both ranges must be the same size source.
- Which Excel? Microsoft lists SORTBY for Microsoft 365, the web, 2024 and 2021 source; in older ones, use the first formula.
Groups, or no formulas at all?
Paste the column into the name picker for picks and groups. The same in Google Sheets.