RANDBETWEEN Function in Excel: Generating Random Numbers Between a Range

6 Mar, 2023
paresh
Paresh @Boloforms
1 min read
BoloForms

Create a free BoloForms account today!

Create your free account today and start creating your own digital signature.

Create Free Account

Generating random numbers is a common need in Excel and the RANDBETWEEN function makes it easy to do. This function will generate a random number between two values that you provide. This is an especially helpful tool when you need to generate a list of numbers for samples, experiments or testing.

The syntax for the RANDBETWEEN function is =RANDBETWEEN(bottom, top). Bottom is the lower range of the number you want to generate, while top is the higher range. For example, if you want to generate a number between 1 and 10, your formula would be =RANDBETWEEN(1,10).

It's important to note that when you use the RANDBETWEEN function, Excel will generate a new random number every time you calculate the sheet. This can lead to unexpected results. To prevent this, you can use the Freeze Panes option to freeze the area where the RANDBETWEEN function is located. This will make sure that the value generated by the function stays the same until you remove the freeze.

In addition to generating random numbers, the RANDBETWEEN function can also be used to generate random dates. To do this, you just need to replace the bottom and top values with dates instead of numbers. For example, if you wanted to generate a random date between Jan 1, 2020 and Dec 31, 2020, the formula would be =RANDBETWEEN("1/1/2020","12/31/2020").

In conclusion, the RANDBETWEEN function is an easy and effective way to generate random numbers or dates in Excel. You can use this function to quickly generate samples, tests or experiments without having to manually enter a long list of numbers or dates.

Limited-time offer
Get lifetime access to BoloForms Signatures for FREE!
Includes :
Collect Signatures inside Forms (5 submissions/mo)
Send for Signature (1 document/mo)
5 Forms- Generate Custom PDFs based on Form Submissions
1 PDF Template
Free Contracts Templates
24/7 support
Notifications and Reminders
Audit Log and History
BoloForms Signature Branding

(act fast as this exclusive offer won't last forever!)

Free Forever
No credit card required