# Learn How to Sort by Random in Microsoft Excel

Written by | 0 Comments | 240 Views

In this article, you will learn how to evaluate things in Dynamic Arrays with formulas in Microsoft Excel using a single/combination(s) of functions. You will also know How to Sort by Random and see the generic formula.

Learn How to Sort by Random in Microsoft Excel

The main purpose of this formula is to sort a list or table in random order. Here we will learn how to sort by random order in the given data range in the workbook in Microsoft Excel. That implies, with the help of a formula based on the SORTBY and RANDARRAY functions you can able to sort a list or table in random order. So, with the help of this formula, you can able to sort by random order in the given data range in the workbook in Microsoft Excel.

General Formula to Sort by Random

=SORTBY(rng,RANDARRAY(COUNTA(rng)))

The Explanation to Sort by Random

So we know that with the help of the given formula above you can able to sort a list or table in random order. Here we will learn how to sort by random order in the given data range in the workbook in Microsoft Excel. As we know that the SORTBY function allows the sorting based on one or more "sort by" arrays, as long as dimensions are compatible with the source data. In the example given here, we are unable to use the named range "custom" directly in SORTBY, so we are using the COUNTA function. So, with the help of this formula, you can able to sort a list or table in random order. So now you have learned how to sort by random order, in the given data range in the workbook in Microsoft Excel.