• Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us

No products in the cart.

  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us

No products in the cart.

  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us

No products in the cart.

  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us
Excel

Excel’s Random Functions (RAND and RANDBETWEEN)

0 Comments

Do you want to create random numbers? Excel’s random functions (RAND and RANDBETWEEN) can help you do this easily. Let’s explore the formula, usage, and examples for this interesting group of random functions in Excel with Buffcom.net!

RAND Function in Excel

RAND stands for Random in English. This function will return a random decimal number within the range you specify.

RAND Formula in Excel

The RAND function syntax to return a decimal number greater than or equal to 0 and less than 1 is:

=RAND()

If you want to create a random decimal number greater than or equal to 0 and less than n, use the following syntax: =RAND()*n

General rule: To create a random real number between a and b, use the formula =RAND()*(b-a)+a

Note:

  • This function has no arguments.
  • When the worksheet is updated (such as when a formula/data is entered into another cell, when the Excel file is opened or closed…), the result of the RAND function will change.
  • If you use the RAND function to generate a random number but do not want the result to change every time the cell is recalculated, after entering the formula, press F9 -> Enter. The result in the cell will return as a value and will not change.

Examples of RAND Function

Returns a random decimal number greater than or equal to 0 and less than 1:

Excels Random Functions 1Returns a random decimal number greater than or equal to 3 and less than 200:

Excels Random Functions 2Generating Random Integer by Combining INT and RAND Functions

So how can we generate a random integer using the RAND function? We will combine the RAND function with the integer extraction function (INT) in Excel.

For example, to get a random integer less than 100 and greater than or equal to 0 (0<=x<100, where x is an integer), enter the syntax: =INT(RAND()*100)

Excels Random Functions 3Generating a Random Character using RAND, INT, and CHAR Functions

Instead of generating a random decimal number, what if you want the result to be a character in the alphabet?

To get a random character in the English alphabet consisting of 26 letters, first, we need to get a random integer between 1 and 26. Combining the RAND and INT functions as mentioned above, we have the formula: =INT(RAND() * 26 + 1)

According to the ANSI table, uppercase letters (A to Z) range from ANSI code 65 to ANSI code 90. Use the CHAR function with the formula: =CHAR(INT(RAND() * 26 + 1) + 64)

Similarly, lowercase letters from a to z range from ANSI code 97 to ANSI code 122. Use the CHAR function with the formula:

=CHAR(INT(RAND() * 26 + 1) + 96)

Excels Random Functions 4
RANDBETWEEN Function in Excel

The RANDBETWEEN function returns a random integer within a specified range. The returned integer can be negative or positive. It is much simpler than combining the INT and RAND functions, isn’t it?

RANDBETWEEN Function Formula

Syntax of RANDBETWEEN function:
=RANDBETWEEN(upper limit, lower limit)

Upper limit: (required) the largest integer that the function will return

Lower limit: (required) the smallest integer that the function will return

Note:

  • Like the RAND function, the result of the RANDBETWEEN function also changes when the worksheet is updated (for example, by entering a formula or data into another cell, or opening and closing the Excel file). If you do not want the result to change, press F9 -> Enter after entering the formula to return the function in an unchanged value format.
  • The RANDBETWEEN function can be used to randomly select dates

Example for RANDBETWEEN Function

Get a random integer between -10 and 10

Excels Random Functions 5Conclusion

Through this article, we hope you have learned the syntax and how to use the random function group in Excel, including the RAND and RANDBETWEEN functions. Follow Buffcom.net to update useful office computer knowledge.

In addition, if your job is closely related to office computer knowledge but the software does not meet your needs, please contact Buffcom.net to find a suitable product for your needs!

Rate this post
27
273 Views
Summing Values by Month in Excel with SUMIF and SUMPRODUCTPrevSumming Values by Month in Excel with SUMIF and SUMPRODUCTApril 25, 2023
Creating a Running Total in Excel: A Step-by-Step GuideApril 25, 2023Creating a Running Total in Excel: A Step-by-Step GuideNext

Leave a Reply Cancel reply

You must be logged in to post a comment.

Buy Windows 11 Professional MS Products CD Key
Buy Office 2021 Professional Plus Key Global For 5 PC
Top rated products
  • Kaspersky Total Security 2021 1 year 1 device key Global Kaspersky Total Security 2021 1 year 1 device key Global
    Rated 5.00 out of 5
    $27.00
  • Avast Ultimate Suite 2021 2 Years 10 Devices Global Avast Ultimate Suite 2021 2 Years 10 Devices Global
    Rated 5.00 out of 5
    $77.00
  • Buy Windows 11 Pro CD Key License Buy Windows 11 Pro CD Key License
    Rated 5.00 out of 5
    $6.00
  • Kaspersky Total Security 2021 1 year 5 devices key Global Kaspersky Total Security 2021 1 year 5 devices key Global
    Rated 5.00 out of 5
    $46.00
  • Avast Premium Security 2021 Avast Premium Security 2021 1 Device 1 Year Global
    Rated 5.00 out of 5
    $11.00
Products
  • Microsoft Visual Studio 2022 Professional Key Microsoft Visual Studio 2022 Professional Key $19.00
  • Microsoft Visio Professional 2021 Key 1PC Microsoft Visio Professional 2021 Key 1PC $13.00
  • Microsoft Visio Professional 2016 Key 1PC Microsoft Visio Professional 2016 Key 1PC $9.00
  • Microsoft SQL Server 2019 Enterprise Microsoft SQL Server 2019 Enterprise $39.00
  • Project Professional 2021 Microsoft Project Professional 2021 - 1 PC $13.00
  • Kaspersky Plus - 1 Device 1 Year - GLOBAL Kaspersky Plus - 1 Device 1 Year - GLOBAL $23.00
  • Buy Office 2021 Professional Plus Key Global Bind To Your Microsoft Account Buy Office 2021 Professional Plus Key Global Bind To Your Microsoft Account
    Rated 4.71 out of 5
    $99.00
  • Windows Server 2019 Remote Desktop Services 50 USER Connections Key Global Windows Server 2019 Remote Desktop Services 50 USER Connections Key Global
    Rated 4.75 out of 5
    $20.00
  • Microsoft Visual Studio Enterprise 2019 For 1 PC Microsoft Visual Studio Enterprise 2019 For 1 PC
    Rated 4.88 out of 5
    $15.00
  • Project Standard 2021 Microsoft Project Standard 2021 - 1 PC $13.00
Product categories
  • Anti Virus
  • Microsoft Office
  • Microsoft Project
  • Microsoft Visio
  • Microsoft Visual
  • Microsoft Windows
  • Other Software
  • Uncategorized

Buffcom.net always brings the best digital products and services to you. Specializing in Office Software and online marketing services

BIG SALE 50% IN MAY

Microsoft Office
Microsoft Windows
Anti-Virus
Contact Us

Visit Us:

125 Division St, New York, NY 10002, USA

Mail Us:

buffcom.net@gmail.com

TERMS & CONDITIONS | PAYMENT GUIDE  | SHIPPING POLICY  | REFUND POLICY

Copyright © 2019 buffcom.net  All Rights Reserved.