Cập nhật thông tin chi tiết về **How To Generate Random Value From A Given List In Excel? / 2023** mới nhất trên website Trucbachconcert.com. Hy vọng nội dung bài viết sẽ đáp ứng được nhu cầu của bạn, chúng tôi sẽ thường xuyên cập nhật mới nội dung để bạn nhận được thông tin nhanh chóng và chính xác nhất.

How to generate random value from a given list in Excel?

To generate random number is easily done by the function =RANDBETWEEN(range), but have you ever tried to generate random value from a given list as below screenshot shown?

Generate random value from a given list by formula

Generate random value from a given list by formula

Actually, there are some easy formulas that can help you to quickly generate random value from a given list.

Select a blank cell that will place the random value, type this formula =INDEX($A$2:$A$16, RANDBETWEEN(2, 16)), then press Enter key. See screenshot:

In the formula, A2:A16 is the given list you want to use, 2 and 16 are the starting row number and ending row number of the list.

If you want to generate several random values from the list, you can drag the formula down as you need. See screenshot:

You can press F9 key to refresh the values.

Note: If you want to generate random number based on a list, you can use this formula =INDEX($I$2:$I$7, RANDBETWEEN(1, 6)), and press Enter key.

Relative Articles:

Easily Insert Random Data without duplicates in a range of cells

30 days free trial! Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days.

The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

Reuse:

Quickly insert

complex formulas, charts

and anything that you have used before;

Encrypt Cells

with password;

Create Mailing List

and send emails…

Super Formula Bar

(easily edit multiple lines of text and formula);

Reading Layout

(easily read and edit large numbers of cells);

Paste to Filtered Range

…

Merge Cells/Rows/Columns

without losing Data; Split Cells Content;

Combine Duplicate Rows/Columns

… Prevent Duplicate Cells;

Compare Ranges

…

Select Duplicate or Unique

Rows;

Select Blank Rows

(all cells are empty);

Super Find and Fuzzy Find

in Many Workbooks; Random Select…

Exact Copy

Multiple Cells without changing formula reference;

Auto Create References

to Multiple Sheets;

Insert Bullets

, Check Boxes and more…

Extract Text

, Add Text, Remove by Position,

Remove Space

; Create and Print Paging Subtotals;

Convert Between Cells Content and Comments

…

Super Filter

(save and apply filter schemes to other sheets);

Advanced Sort

by month/week/day, frequency and more;

Special Filter

by bold, italic…

Combine Workbooks and WorkSheets

; Merge Tables based on key columns;

Split Data into Multiple Sheets

;

Batch Convert xls, xlsx and PDF

…

More than 300 powerful features

. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.

Read More… Free Download… Purchase…

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

Enable tabbed editing and reading in Word, Excel, PowerPoint

, Publisher, Access, Visio and Project.

Open and create multiple documents in new tabs of the same window, rather than in new windows.

Increases your productivity by

Read More… Free Download… Purchase…

## How To Select Random Names From A List In Excel? / 2023

How to select random names from a list in Excel?

Supposing you have a list of names locates in column A in Excel, for quickly selecting random name from this list, what would you do? Actually, you can select random name from list with formula. Beside the formula method, we will show you a handy add-in to easily solve this problem.

Select random name from a list with formula Easily select random name from a list with Kutools for Excel

Select random name from a list with formula

Please do as follows to select random name from a list in Excel.

1. Select a blank cell besides the list, copy and paste formula =INDEX($A:$A,RANDBETWEEN(1,COUNTA($A:$A)),1) into the Formula Bar, and then press the Enter key. You can see a random name is displayed in the selected cell.

Notes:

1. Select this cell and press F9 key, you will get different names randomly.

2. You can also select the cell and drag the fill handle down to list the random names you need.

3. The random name will be changed automatically every time you refresh the worksheet.

Select random name from a list with Kutools for Excel

With the Sort Range Randomly utility of Kutools for Excel, you can quickly select random names from list in Excel.

Before applying Kutools for Excel, please download and install it firstly.

2. In the Sort/Select Range Randomly dialog box and under the Select tab, please configure as follows.

Specify number of cells you want to select in the No. of cells to select box;

Choose Select random cells option in the Select Type section;

Now the specified number of cells in the name list are selected randomly.

Note: If you want to list the randomly selected names together, please copy and paste them to other cells.

Office Tab brings the tabbed interface as seen in web browsers such as Google Chrome, Internet Explorer new versions and Firefox to Microsoft Excel. It will be a time-saving tool and irreplaceble in your work. See below demo:

Easily select random name from a list with Kutools for Excel

Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails…

More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.

Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.

Open and create multiple documents in new tabs of the same window, rather than in new windows.

## How To Randomize A List In Excel: Sort Randomly Cells, Rows And Columns / 2023

The tutorial will teach you two quick ways to randomize in Excel: perform random sort with formulas and shuffle data by using a special tool.

Microsoft Excel provides a handful of different sorting options including ascending or descending order, by color or icon, as well as custom sort. However, it lacks one important feature – random sort. This functionality would come in handy in situations when you need to randomize data, say, for an unbiased assigning of tasks, allocation of shifts, or picking a lottery winner. This tutorial will teach you a couple of easy ways to do random sort in Excel.

How to randomize a list in Excel with a formula

Although there is no native function to perform random sort in Excel, there is a function to generate random numbers (Excel RAND function) and we are going to use it.

Assuming you have a list of names in column A, please follow these steps to randomize your list:

Insert a new column next to the list of names you want to randomize. If your dataset consists of a single column, skip this step.

In the first cell of the inserted column, enter the RAND formula: =RAND()

Either way, Excel automatically expands the selection and sorts the names in column A as well:

Tips & notes:

Excel RAND is a volatile function, meaning that new random numbers are generated every time the worksheet is recalculated. So, if you are not happy with how your list has been randomized, keep hitting the sort button until you get the desired result.

To prevent the random numbers from recalculating with every change you make to the worksheet, copy the random numbers, and then paste them as values by using the Paste Special feature. Or, simply delete the column with the RAND formula if you don’t need it any longer.

The same approach can be used to randomize multiple columns. To have it done, place two or more columns side by side so that the columns are contiguous, and then perform the above steps.

How to shuffle data in Excel with Ultimate Suite

If you don’t have time to fiddle with formulas, use the Shuffle Cells tool included in our Ultimate Suite for Excel to do a random sort faster.

The Shuffle pane will appear on the left side of your workbook. You select the range where you want to shuffle data, and then choose one of the following options:

Cells in each row – shuffle cells in each row individually.

Cells in each column – randomly sort cells in each column.

Entire rows – shuffle rows in the selected range.

Entire columns – randomize the order of columns in the range.

All cells in the range – randomize all cells in the selected range.

In this example, we need to shuffle cells in column A, so we go with the third option:

And voilà, our list of names is randomized in no time:

If you are curious to try this and explore a lot more fascinating features included with Ultimate Suite for Excel, you are welcome to download a 14-day trial version.

You may also be interested in

## Random Number Generator Excel In Functions And Data Analysis / 2023

We have got a sequence of numbers consisting of virtually independent elements that obey a certain counting distribution. As a rule, it’s a uniform distribution.

There are different ways to generate random numbers in Excel. Let’s view the best of them.

Random Number Function In Excel

The function RAND() returns a random real number of a uniform distribution. It will be less than 1, and greater than or equal to 0.

The function RANDBETWEEN returns a random integer number.

Let’s view some examples of their practical application.

Selection of random numbers using RAND

This function doesn’t require arguments.

For example, to generate a random real number in the range 1 to 10, use the following formula: =RAND()*(5-1)+1.

The returned random number is distributed uniformly on the interval [1,10].

Each time the sheet is calculated or the value is changed in any cell within the sheet, a new random number is returned. If you want to save the generated set of numbers, replace the formula with its value.

Select the formula in the formula bar.

Press F9. Then Enter.

Let us check the uniformity of distribution of the random numbers from the first selection using a distribution bar chart.

We round the values that the function =RAND() returns. To do this, we use the function: =ROUND().And fill this formula with the big range: A2:A201.

Form the ranges to contain the values (bin). The first such range is 0-0.1. For the subsequent ones use the formula =B2+$B$2.

Determine the frequency of random numbers in range A2:A201. In cell C2 use the array formula: After input formula, select range C2:C11, press key F2 and press hot keys: CTRL+SHIFT+ENTER. We will execute the formula in the array Excel.

Form the ranges with the use of the concatenation character (=”[0,0-“&C2&”]”).

Build a distribution bar chart for the 200 values obtained with the use of the RAND() function.

The vertical values represent the frequency. The horizontal ones represent the ranges.

RANDBETWEEN function

The syntax of the RANDBETWEEN function is as follows: (lower limit; upper limit). The first argument must be less than the second. Otherwise, the function will return an error. It is assumed that the limits are integers. The formula discards the fractional part.

An example of the function’s application:

Random numbers with an accuracy of 0.1 and 0.01:

How To Create Random Number Generator In Excel

Let’s create a random number generator that generates values from a certain range. Use a formula of the following form:

The formula randomly selects any of the numbers in the range A1:A10.

Let’s create a random number generator in the range 0-100, with a step of 10.

It’s required to select 2 random text values from the list. Using the RAND() function, let’s match the text values in the range A1:A7 with random numbers.

Use the =INDEX function to select two random text values from the initial list.

To select one random value from the list, apply the following formula:

Generator Of Standard Distribution Random Numbers

The RAND and RANDBETWEEN functions return random numbers with a single distribution. There’s an equal probability for any value to fall into the lower or upper limit of the requested range. The variation of the target value turns out to be huge.

A standard distribution means most of the generated numbers are close to the target number. Let’s adjust the RANDBETWEEN formula and create an array of data with a standard distribution.

The prime cost of the X product is $100. The entire batch is subject to a standard distribution. The random variable also obeys a standard probability distribution.

Under such conditions, the average value of the range is $100. Let’s generate an array and build a chart that obeys a standard distribution with a standard deviation of $1.5.

Use the function:

Excel calculates the values in the range of probabilities. As the probability of manufacturing a product with a prime cost of $100 is maximal, the formula returns values that are close to 100 more often than other values.

Let’s proceed to building the chart. First of all, you need to create a table containing the categories. To do this, split the array into periods:

Determine the minimum and maximum values in the range using the =MIN(A2:102) and =MAX(A2:102) functions.

Indicate the value of each period or step. In our example, it’s equal to 1.

The number of categories is 10.

The lower limit of the table containing the categories is the nearest multiple number rounded down. Enter the formula =ROUNDDOWN(C2,0) into the E1 cell.

In the E2 cell and below, the formula will look as follows: That is, each subsequent value is increased by the specified step size.

Let’s calculate the number of variables in the given interval. Use the function: The formula will look as follows:

Based on the obtained data, we can build a chart with a normal distribution. The value axis represents the number of variables in the interval; the category axis represents the periods.

A chart with a normal distribution is built. As it should be, its shape resembles a bell.

There’s a much simpler way to do the same with the help of the “Data Analysis” package. Select “Random Number Generation”.

Fill in the generation parameters. Set the distribution as “Normal”.

The obtained result is as follows:

Download random number generators in Excel

An Excel chart with a standard distribution has been built.

Bạn đang xem bài viết **How To Generate Random Value From A Given List In Excel? / 2023** trên website Trucbachconcert.com. Hy vọng những thông tin mà chúng tôi đã chia sẻ là hữu ích với bạn. Nếu nội dung hay, ý nghĩa bạn hãy chia sẻ với bạn bè của mình và luôn theo dõi, ủng hộ chúng tôi để cập nhật những thông tin mới nhất. Chúc bạn một ngày tốt lành!