How To Randomize Numbers in Excel in 3 Methods (With Tips)

Select the cells in which you want to get the random numbers. In the active cell, enter =RAND() Hold the Control key and Press Enter. Select all the cell (where you have the result of the RAND function) and convert it to values.

If you need to randomize numbers in Microsoft Excel, you don’t need to look any further. Randomizing numbers in Excel is a simple and straightforward process. Understanding how to randomize numbers in Excel is a valuable tool that can be used in many different scenarios. Whether you’re creating a lottery system, creating a survey, or simply shuffling numbers, this tutorial is here to help.
In this blog post, we’ll discuss what randomizing numbers in Excel is all about, how to use the tools in Excel to randomize numbers, and a few different scenarios in which randomizing numbers can be useful. By the end of this post, you should have a firm understanding of how to randomize numbers in Excel and some ideas for how to use this powerful tool in a variety of ways.

Excel Random Number Generator

How to randomize numbers in Excel

There are several ways to generate randomized numbers using Excel. Decide whether you want to generate a whole number or a decimal number first. You may then follow the appropriate instructions below:

Generate a random decimal between zero and one

Using Excel’s RAND formula, you can produce a random number between 0 and 1. This formula generates highly random and distinctive decimals. This means that there is a low chance of repeating numbers if you generate a set of randomized numbers. To perform this task, use these steps:

Generate a random decimal within a specified range

To generate a random decimal within a range that you specify, you can use a variation of the RAND function. To do this, follow these steps:

Generate a random integer within a specified range

Using Excel’s RANDBETWEEN function, you can also produce a random number greater than 1. This function lets you specify the upper and lower bounds of the range you want to use, and it then generates a random integer between those values. Keep in mind that this method may increase the likelihood of repeated generations compared to the RAND method. You can take the following actions to use this method in Excel to generate random numbers:

Why randomize numbers in Excel?

Excel’s complete objectivity makes it a useful tool for generating random numbers. Situations like computer encryption, gambling, or scientific modeling can all benefit from this. For instance, in a scientific setting, you might create a seed number for a computational program using the randomize numbers function. This statistical technique lets you produce a random starting point for a calculation. To prevent bias in the calculation, it may be useful to generate a seed number at random.

A random number generator is another tool you can use to aid in decision-making. You could, for instance, assign each person in the room a number before using a random number generator to select who will make a delivery or take notes during a meeting.

Tips for randomizing numbers in Excel

The following advice could help you become more knowledgeable about randomizing numbers in Excel:

Set your value

Every time Excel calculates the value of the specified cell after using the RAND or RANDBETWEEN formula to generate a random number, the formula might produce a different number in the specified cell. When you press F9 or choose “Calculate Now” or “Calculate Sheet” from the calculation section of the formulas tab in your toolbar, this could also occur. If you move the cell to a different location in your spreadsheet or press “Enter” after making a change somewhere else on the spreadsheet, it might also produce a new random number.

After generating the random number, you can choose to keep it constant by selecting the relevant cell, clicking the formula bar, and pressing F9. By doing so, the formula is replaced with the number you entered in the formula bar. Alternately, you can choose the cells whose values you want to change, copy those cells to another location, and use the “Values” paste option to only paste randomly generated numbers instead of the RAND or RANDBETWEEN formula.

Generate a list of random numbers

You can easily expand the formula to apply to the entire row or column after using the RAND or RANDBETWEEN techniques to generate a random number in one cell. Click on the cell containing the formula, then move your mouse to the lower right corner to achieve this. By doing this, the white plus sign on the mouse icon turns into a black plus sign. Next, drag the spreadsheet cursor up or down while continuing to click and hold the mouse button.

When you release the mouse, Excel automatically creates a random value for each of the cells you specify. By first expanding the range horizontally and then vertically, you can also expand it to a large rectangular range of cells.

Check a list of random numbers for duplicates

Checking your list for duplicates may be useful if creating a list of unique random values is important to you. Although RAND formula duplicates are uncommon, RANDBETWEEN may duplicate numbers more frequently. Using the RANK function, you can determine whether any numbers have appeared more than once. First, employ one of the methods outlined above to convert your list of randomly generated numbers from formula values to numerical values. Next, enter the formula =RANK. EQ([First Cell Letter][First Cell Number],[First Cell Letter][First Cell Number],[First Cell Letter][First Cell Number]:[Last Cell Letter][Last Cell Number])

Press “Enter,” then broaden the list’s range to correspond to the range of your random number list as described above. For instance, enter the RANK formula as =RANK in cell B12 if a column between A12 and A15 contains a list of random numbers. EQ(A12,$A$12:$A$15), then expand it to cover cells B12 through B15. The largest number may now be ranked as 1 and the smallest number may be ranked as 4 in each cell in your RANK column. If each cell has its own rank, your list won’t contain any duplicate numbers.

Generate an array of random numbers

For multiple cells in an array, you can create random decimals between zero and one using the RANDARRAY function in Excel 365 or Excel 2021. Enter =RANDARRAY([Number of rows], [Number of columns], [Lower Limit], [Upper Limit]) to use this function. For instance, if you wanted to make a random number array with three rows and six columns, you could click on the cell you wanted to be the array’s top left cell and type =RANDARRAY(3,6,10,20). Enter =RANDARRAY(3,6,10,20) to make this array only contain numbers between 10 and 20.

The RANDARRAY function automatically generates decimals inside the given range. By adding the command TRUE to the end of the function command, you can instruct it to only produce whole numbers if that is what you prefer. For instance, the aforementioned array could produce decimals between 10 and 20. You can enter =RANDARRAY(3,6,10,20,TRUE) to make it generate integers between 10 and 20.

Please note that Indeed is not affiliated with any of the businesses mentioned in this article.


How do I setup a randomizer in Excel?

A 9-digit random number between 0 and 1 is entered into the cell by typing =RAND(). The spreadsheet’s function =RAND() will re-randomize whenever you change any other part of it. Excel does this because it updates all values whenever a cell is changed.

How do I generate a random number between 1 and 10 in Excel?

A 9-digit random number between 0 and 1 is entered into the cell by typing =RAND(). The spreadsheet’s function =RAND() will re-randomize whenever you change any other part of it. Excel does this because it updates all values whenever a cell is changed.

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *