Hi - Dave here.

Excel has several functions for generating random numbers, including RANDBETWEEN, and RANDARRAY. However, there is no guarantee that the numbers from these functions will be unique. To get a list of unique random numbers, you need a more robust formula.

For example, the formula below generates 1000 random numbers starting at 10,000, sorts the numbers randomly, then extracts the first 12 numbers. Because the original numbers are unique, the final numbers contain no duplicates.

Formula to generate unique random numbers

[Download the workbook and read the full explanation]

Note: The formula above requires Excel 365 or Excel 2021. In older versions of Excel you can take a more manual approach. The article and worksheet explain a formula based on INDEX and MATCH with the LARGE function.

More Excel formulas

We maintain a large list of working formulas here.

If you need more structure, we also offer video training.

Have a fun and relaxing weekend.

Dave

 

Exceljet Logo
Exceljet
P.O. Box 4804
Salt Lake City, UT 84110

Copyright © 2021 Exceljet, All rights reserved.
You received this email because you are subscribed to our newsletter.
To unsubscribe, click the link below.