EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Certification Courses
  • 120+ Courses All in One Bundle
  • Login

Excel RAND Function

By Jeevan A YJeevan A Y

Home » Excel » Blog » Maths Function in Excel » Excel RAND Function

RAND in Excel

RAND Function (Table of Contents)

  • RAND in Excel
  • RAND Formula in Excel
  • How to Use RAND Function?

RAND in Excel

Rand function in excel generates random numbers. As the name of the function is RAND which is used in short for Random value, RAND function generates the values which are between 0 and 1 only. The important thing about the RAND function is the generated value by this function always generates a unique value which is never repeated in the same iterations.

Start Your Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

RAND Formula in excel:

Below is the RAND Formula:

RAND Formula

This function does not include any of the arguments; it assumes numbers greater than or equal to zero but less than 1. Unlike the RANDOMBETWEEN function, we need not to specify the bottom value and top value to the RAND function. The range of these numbers varies from between 0 and 0.99999999…

As an analyst and excel trainer, it always a handy function to generate some quick numbers to teach my students. However, it is not the most used formula in corporate offices because the need for RAND function may not arise at all for somebody in the office.

How to Use the RAND Function in Excel?

This function is very simple and easy to use. Let us now see how to use the RAND Function with the help of some examples.

You can download this RAND Function in Excel Template here – RAND Function in Excel Template

Example #1

As a trainer to teach SUM function to my students, I need to generate some numbers from 0 to less than 1. I quickly do that with the RAND function.

Example 1-1

Here I have generated numbers from A2 to E17 and applied the SUM formula for each column in row 18. SUM is taking the range as A2:A17, B2:B17, and so on until E2:E17.

Popular Course in this category
Sale
Excel Advanced Training (16 Courses, 23+ Projects)16 Online Courses | 23 Hands-on Projects | 140+ Hours | Verifiable Certificate of Completion | Lifetime Access
4.8 (11,416 ratings)
Course Price

View Course

Related Courses
Excel for HR Training (8 Courses, 10+ Projects)

RAND Example 1-2

The Answer I got is mentioned in the below image.

RAND Example 1-3

Example #2

Assume you are running a lottery shop, and you need to assign some of the numbers against each lottery ticket and select only the numbers greater than 0.95.

Example 2-1

Now, we need to generate numbers and chose the winner. Let us go ahead and apply the RAND function to generate numbers.

RAND Example 2-2

Note: Since RAND is a volatile function, once you generate the numbers, copy and paste only values using the paste special method.

Now we have generated random numbers in column C.

RAND Example 2-3

Now we need to find the winner, and the criteria are if the RAND number is greater than 0.95, then they will be declared as the winner.

Now, again we need to apply one more formula to get this done and declare the winner. We need to use the IF condition to declare the winner.

IF condition doing here is testing whether the values in column C are greater than or equal to zero and if that logical test is true.

With IF condition Example 2-4

Then it will return the result as Winner. In the above table, the winner is Rihu. Since her score is greater than 0.95, so the formula declared her as the Winner.

RAND Example 2-5

If the logical result is false

RAND Example 2-6

Then it will return the result as Better Luck Next Time.

RAND Example 2-7

Example #3

Using this function, we can generate numbers that less than 1. What if we want to generate an integer number less than 100. In order to generate random numbers from 10 to 100, we need to use the function INT to get the numbers that are full numbers, i.e. no decimals in place.

Example 3-1

Here INT function eliminates the decimal places, and our highest value is 100, and our lowest value is 10.

RAND Example 3-2

Things to Remember

  • It is one of the many volatile functions in excel. It keeps varying if there are any cell value changes within the excel worksheet.
  • Since it is a volatile function, it may reduce the speed of the workbook.
  • Turn off auto calculation in excel to avoid volatile changes in the formula.
  • It is a useful formula to use when you want to generate random percentages from 0% to 100%.
  • Use the ey to change the RAND from formula to value. Edit the formula and press F9.
  • You need to do the paste special option to eliminate the volatility of the function. Copy the data and paste it as values only.
  • If you want to generate the two random, numbers use the RANDOMBETWEEN formula, which requires both the bottom value and the highest value in a single formula.

Recommended Articles

This has been a guide to RAND Function. Here we discuss the RAND Formula and how to use RAND Function along with practical examples and downloadable excel templates. You can also go through our other suggested articles –

  1. FLOOR Excel Function
  2. LOG Excel Function
  3. OR Excel Function
  4. Excel IF AND Function

All in One Excel VBA Bundle (120+ Courses, 30+ Projects)

120+ Online Courses

30+ Projects

500+ Hours

Verifiable Certificates

Lifetime Access

Learn More

1 Shares
Share
Tweet
Share
Primary Sidebar
Excel Functions
  • Maths Function in Excel
    • Calculating Investment Return In Excel
    • Sumif Function Examples
    • MROUND in Excel
    • SUM Cells in Excel
    • MMULT in Excel
    • MINVERSE in Excel
    • Trunc in Excel
    • SUMIF with Text
    • COS Function in Excel
    • RANDBETWEEN in Excel
    • Excel SUMIF with OR
    • Excel DEGREES Function
    • Calculations in Excel
    • Sumif Between Two Dates
    • Calculate Income Tax in Excel
    • PRODUCT Function in Excel
    • How to Sum Multiple Rows in Excel
    • Matrix in Excel
    • ROUND Formula in Excel
    • How to SUM in Excel
    • SUMPRODUCT Formula in Excel
    • Excel Running Total
    • Excel Rounding
    • Excel Exponents
    • Excel SIN Function
    • Excel Square Root Function
    • Excel ROUNDUP Function
    • ROUND Excel Function
    • Excel ROUNDDOWN Function
    • ODD Excel Function
    • SUMPRODUCT Function in Excel
    • AGGREGATE Function in Excel
    • ABS Function in Excel
    • Excel TAN Function
    • COMBIN Function in Excel
    • CEILING Function in Excel
    • INT Excel Function
    • SUBTOTAL Function in Excel
    • LN Function in Excel
    • Excel RAND Function
    • TANH Function in Excel
    • SUMIF Function in Excel
    • SUM Function in Excel
    • POWER Function in Excel
    • EVEN Function in Excel
    • LOG Function in Excel
    • FLOOR Excel Function
  • Excel Functions (12+)
  • Excel Tools (114+)
  • Financial Functions in Excel (17+)
  • Logical Functions in Excel (14+)
  • Lookup Reference Functions in Excel (34+)
  • TEXT and String Functions in Excel (26+)
  • Date and Time Function in Excel (23+)
  • Statistical Functions in Excel (59+)
  • Information Functions in Excel (4+)
  • Excel Charts (56+)
  • Excel Tips (222+)
  • Workplace Productivity (4+)
  • Microsoft Office Tools (15+)
  • Excel Formula and Functions (21+)
  • MS Excel Shortcuts (4+)
Excel Functions Courses
  • Online EXCEL ADVANCED Certification
  • Excel for HR Training
Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Corporate Training
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Excel Charts
  • Excel Tips
  • All Tutorials
Certification Courses
  • All Courses
  • Excel VBA Course - All in One Bundle
  • VBA Course
  • Excel Data Analysis Course
  • Excel for Marketing Course
  • Excel for Finance Course
  • Excel for HR Training

© 2022 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA

Download RAND Function in Excel Template

EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA Login

Forgot Password?

By signing up, you agree to our Terms of Use and Privacy Policy.

Let’s Get Started

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

डाउनलोड RAND Function in Excel Template

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more

Independence Day Offer - Online EXCEL ADVANCED Certification Learn More