Skip to main content

Excel RAND Function

Author: Sun Last Modified: 2022-03-11

doc workday.intl function 1

If you want to follow along with this tutorial, please download the example spreadsheet.

doc workday.intl function 1

Description

The Excel RAND function returns a random real number between 0 and 1. The result excludes 0 and 1. Every time RAND function returns a new random number when the worksheet is changed or opened.

Syntax and arguments

Formula syntax

RAND()

Arguments

RAND function has no arguments.

Return Value

The RAND function returns to a real number.

Remarks

1. The RAND function calculates a new result when the worksheet is changed, if you want to stop the result changing, copy and paste the result as a value only to convert it to a static result.

2. If you want to use the random number which is returned by RAND function into other formulas, for stopping the result changed by pressing Enter key, you can use F9 key to get the result, it will change the formula result to a static value.

3. RAND function returns a real number less than 1 and greater than 0.

Version

Excel 2003

Usage and Examples

Example 1: basic usage

To get a random number between 0 and 1, please select a cell and type the formula:

=RAND()

Press Enter key to get the random number.

doc workday.intl function 1

Example 2: get random number between two values

The RAND function also can get a random real number between two specified values.

General formula

=RAND()*(b-a)+a

b is the top one in the value range, a is the bottom one, the returned result less than b, but more than a.

To get a random number between 0 and 1, please select a cell and type the formula:

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

Press Enter key to get the random number.

doc workday.intl function 1

Example 3: get random numbers in a selected range

If you want to get random numbers in a selected range at once time, please select a range, and type the RAND function in Formula Bar, then hold Ctrl and press Enter key.

doc workday.intl function 1

doc workday.intl function 1


Relative Functions:

  • Excel FACT Function
    The FACT function eturns the factorial of a given number. For example, FACT(5)=120, equivalent to 5 x 4 x 3 x 2 x 1.

  • Excel FACTDOUBLE Function
    The FACTDOUBLE function returns the double factorial of a given number. For example, FACTDOUBLE(5)=15, equivalent 5 x 3 x 1.

  • Excel FLOOR Function
    The FLOOR function rounds a given number down to the nearest multiple of the specified significance.

  • Excel FLOOR.MATH Function
    The Excel FLOOR.MATH function rounds a given number down to the nearest integer or nearest multiple of the specified significance.


The Best Office Productivity Tools

Kutools for Excel - Helps You To Stand Out From Crowd

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates  |  Delete Blank Rows  |  Combine Columns or Cells without Losing Data  |  Round without Formula ...
Super VLookup: Multiple Criteria  |  Multiple Value  |  Across Multi-Sheets  |  Fuzzy Lookup...
Adv. Drop-down List: Easy Drop Down List  |  Dependent Drop Down List  |  Multi-select Drop Down List...
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  Compare Columns to Select Same & Different Cells ...
Featured Features: Grid Focus  |  Design View  |  Big Formula Bar  |  Workbook & Sheet Manager | Resource Library (Auto Text)  |  Date Picker  |  Combine Worksheets  |  Encrypt/Decrypt Cells  |  Send Emails by List  |  Super Filter  |  Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters ...)  |  50+ Chart Types (Gantt Chart ...)  |  40+ Practical Formulas (Calculate age based on birthday ...)  |  19 Insertion Tools (Insert QR Code, Insert Picture from Path ...)  |  12 Conversion Tools (Numbers to Words, Currency Conversion ...)  |  7 Merge & Split Tools (Advanced Combine Rows, Split Excel Cells ...)  |  ... and more

Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...

Description


Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Leave your comments
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations