The SORTBY and RANDARRAY functions are not available in Excel 2019. So using a column with =RAND() is the way to go. You have to create that column only once; after that you only need to press F9 to recalculate, then sort.
How to Randomize A List of Names In Excel
I have a list of names I wish to randomise in Excel. I will need to do this many times. I did find a way using the =Rand() function but it seems a very long winded way of doing things*. Is there a simpler way? It would be nice if there was a random way to sort the rows in a column similar to A-Z sort. Your advice would be appreciated.
Kind regards
Chris
Microsoft 365 and Office | Excel | For business | Windows
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
4 additional answers
Sort by: Most helpful
-
HansV 462.4K Reputation points MVP Volunteer Moderator2023-02-11T21:04:54+00:00 If you have Microsoft 365 or Office 2021, you can use the following formula in the first target cell:
=SORTBY(name_range,RANDARRAY(COUNTA(name_range)))
For example with names in B2:B11:
=SORTBY(B2:B11,RANDARRAY(COUNTA(B2:B11)))
-
Anonymous
2023-02-14T10:10:29+00:00 Thank you very much for your help. Once it is set up F9 recalculates and works great!
Kind regards
Chris
PS Hopefully in the furure Excel 2019 might be updated to include RANDARRAY functions.
-
HansV 462.4K Reputation points MVP Volunteer Moderator2023-02-14T10:37:20+00:00 I'm afraid Microsoft won't do that.
The subscription version Microsoft 365 gets regular feature updates, but the buy-once versions such as Office 2019 and Office 2021 don't, they only get bug fixes and security updates.