Generate a List of Random Numbers without Duplicates

This post will guide you how to generate a list of random numbers without duplicates in Excel. How do I generate random numbers without duplicates with a formula in Excel.

Generate a List of Random Numbers without Duplicates


If you want to create a list of random numbers without duplicates in a range of cells, you can create a list of numbers in sequential order, and create a list of random numbers with RAND function in another column. Then you can use sort function to sort those list of random numbers. Then the list of random numbers in column A is created. Let’s do the detailed steps:

#1 type one number in Cell A1, assuming that you want to create random numbers and the maximum number is 10. So type the number 1 in cell A1.

generate list random numbers1

#2 go to HOME tab, click Fill command under Editing group. And select Series from the pop up menu list. The Series dialog will open.

generate list random numbers2

#3 type the maximum number 10 in the Stop value text box. And select Columns radio button.  Click OK button.

generate list random numbers3

#4 a list of number has generated in the column A.

generate list random numbers4

#5 type the following formula into another column B to generate another list of random numbers, and then drag the AutoFill Handle over other cells.

=RAND()

generate list random numbers5

#6 select all random numbers in column B, and go to HOME tab, click Sort & Filter command under Editing group. Then select Sort Smallest to Largest or Sort Largest to Smallest from the pop up menu list.

generate list random numbers6

A List of random numbers has been generated in the column A as you need.

generate list random numbers7

Related Functions


  • Excel RAND function
    The Excel RAND function returns a random real number that is greater than or equal to 0 and less than 1. The syntax of the RAND function is as below:=RAND ()…
Related Posts

Extract substring In Excel
Extract substring In Excel1

This post will guide you how to use Excel's MID function is a quick and easy way to extract pieces from your text. Use the Excel formula to extract a substring with MID. Note: If you want to extract just ...

How to Use 3D SUM Multiple Worksheets
3D sum multiple worksheets1

To sum a range of numbers is straightforward for most Excel users, but do you know how to establish a 3D reference to total the same range of numerous sheets. In this post, I will present the steps for this ...

Extract all the matches with helper Column
how to extract all matches with helper column1

With Excel's powerful functions IF, INDEX, and MATCH, we can find exactly what you're looking for with a few clicks of the mouse. This step-by-step tutorial will show how easy it is to extract data using these tools and more! ...

If Cell is This Value or That Value

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of logical test. If you want to see if a cell is A or B, and if one of ...

If Value is Greater Than A Certain Value
If Value is Greater Than A Certain Value 1

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the logical test result. If you want to see if a value in one cell is greater than a specific value, ...

If Cell is Not Blank
If Cell is Not Blank 6

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of created logical test. If you want to see if a cell is blank or not, and leave some ...

If Cell is Blank
If Cell is Blank_1

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of created logical test. If you want to see if a cell is blank or not, and leave some ...

If Cell Equals Certain Text String
If cell equals certain text_1

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of created logical test. If you want to see if cell equals a certain text string like “Win”, you ...

If Cell Contains Either Text1 or Text2
If cell contains text1 or text2_1

IF function is frequently used in Excel worksheet to return “true value” or “false value” based on the logical test result. If you want to see if cell contains certain substring1 like “abc” or substring2 like “def”, and returns true ...

If Cell Contains Certain Text OR Equals Certain Text

IF cell equals certain text IF function is frequently used in Excel worksheet to return “true value” or “false value” based on the logical test result. If you want to test values to see if they equal certain text like ...

Sidebar