Get instant live expert help with Excel or Google Sheets
“My Excelchat expert helped me in less than 20 minutes, saving me what would have been 5 hours of work!”

Post your problem and you’ll get expert help in seconds.

Your message must be at least 40 characters
Our professional experts are available now. Your privacy is guaranteed.
All articles RANDOM A Guide on Using the Excel Random Number Function

A Guide on Using the Excel Random Number Function

Excel allows a user to get a random decimal number between 0 and 1 by using the RAND function. We will also see how to make the function to return a number in any range. This step by step tutorial will assist all levels of Excel users in getting a random number.

Figure 1. The final result of the RAND Function

Syntax of the RAND Function

The generic formula is:

=RAND()

The function has no parameters.

Get a Random Decimal Number between 0 and 1

We want to get a random decimal number between 0 and 1

The formula looks like:

=RAND()

To apply the RAND function, we need to follow these steps:

  • Select cell B3 and click on it
  • Insert the formula: =RAND()
  • Press enter

Figure 2. Get a random decimal number between 0 and 1

Every time we press enter in formula cell, we will get a new decimal number in B3.

Get a Random Number between Two Numbers

We can modify the RAND function to make it return a random number between any two numbers. In our example, we want to get a random number between 1 and 100.

The formula looks like:

=RAND() * (100 - 1) + 1

We could put any two numbers in the formula, the generic formula looks like:

=RAND() * (max - min) + min

To apply the formula, we need to follow these steps:

  • Select cell B3 and click on it
  • Insert the formula: =RAND() * (100 - 1) + 1
  • Press enter

Figure 3. Get a random number between 1 and 100

Every time we press enter in formula cell, we will get a new decimal number between 1 and 100 in B3.

Most of the time, the problem you will need to solve will be more complex than a simple application of a formula or function. If you want to save hours of research and frustration, try our live Excelchat service! Our Excel Experts are available 24/7 to answer any Excel question you may have. We guarantee a connection within 30 seconds and a customized solution within 20 minutes.

Leave a Comment

avatar

Subscribe to Excelchat.co

Get updates on helpful Excel topics

Subscribe to Excelchat.co
Trusted by people who work at
Amazon.com, Inc
Facebook, Inc
Accenture PLC
Siemens AG
Macy's
The Allstate Corporation
United Parcel Service
Dell Inc