Home > Topics > excel > body text

How to randomly generate decimals within a range in excel

王林
Release: 2020-04-11 15:04:42
Original
72192 people have browsed it

How to randomly generate decimals within a range in excel

1. Select a cell range;

As shown in the figure below, generate a random number between 10-100 with two decimal places in this range.

How to randomly generate decimals within a range in excel

#2. Use the Randbetween function in Excel to generate integers within a specified range. To generate decimals, just generate an integer first and then divide it by a multiple of 10. So enter the formula =randbetween in Excel, as shown in the figure below.

How to randomly generate decimals within a range in excel

3. Set the upper and lower limits of random numbers;

Set the first parameter of the randbetween function, that is, the lower limit of random numbers to 1000, and the second parameter is The upper limit of random numbers is 9999, as shown in the figure below.

How to randomly generate decimals within a range in excel

4. Divide the function result by the specified multiple of 10;

How to randomly generate decimals within a range in excel

5. Press the Ctrl and Enter keys Fill in the formula to get random decimals.

How to randomly generate decimals within a range in excel

Recommended tutorial: excel tutorial

The above is the detailed content of How to randomly generate decimals within a range in excel. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template