Pinterest Pixel

RANDBETWEEN Function

John Michaloudis
What does it do? .

What does it do?

Returns a random integer number between the numbers you specify.

Formula breakdown:

=RANDBETWEEN(bottom number, top number)

What it means:

=RANDBETWEEN(10, 10000)


I use the RANDBETWEEN function all the time whenever I need to create a sample data set.

The cool thing about the RANDBETWEEN function is that if you don’t like the numbers that it has given you, you can press F9 in a cell and it will give you new numbers.  Try it out by downloading the sample workbook!

Download excel workbookRandbetween.xlsx

We want to enter some random numbers from 10 to 10,000.

STEP 1: We need to enter the RANDBETWEEN function in a blank cell:
=RANDBETWEEN(
RANDBETWEEN Function for Excel Dates

 

STEP 2: The RANDBETWEEN arguments:

Bottom_number

What is your minimum value?

For our example it’s 10
=RANDBETWEEN(10,
RANDBETWEEN Function for Excel Dates

Top_number

What is your maximum value?

For our example it’s 10,000
=RANDBETWEEN(10, 10000)
RANDBETWEEN Function for Excel Dates

Apply the same formula to the rest of the cells by dragging the lower right corner downwards. Then drag it to the right to populate all the cells.

RANDBETWEEN Function for Excel Dates

RANDBETWEEN Function for Excel Dates

You now have all of the random numbers!

If you like this Excel tip, please share it


Founder & Chief Inspirational Officer

at

John Michaloudis is a former accountant and finance analyst at General Electric, a Microsoft MVP since 2020, an Amazon #1 bestselling author of 4 Microsoft Excel books and teacher of Microsoft Excel & Office over at his flagship MyExcelOnline Academy Online Course.

See also  Excel VLOOKUP Multiple Columns

Steps To Follow

Star 30 Days - Full Access Star

One Dollar Trial

$1 Trial for 30 days!

Access for $1

Cancel Anytime

One Dollar Trial
  • Get FULL ACCESS to all our Excel & Office courses, bonuses, and support for just USD $1 today! Enjoy 30 days of learning and expert help.
  • You can CANCEL ANYTIME — no strings attached! Even if it’s on day 29, you won’t be charged again.
  • You'll get to keep all our downloadable Excel E-Books, Workbooks, Templates, and Cheat Sheets - yours to enjoy FOREVER!
  • Practice Workbooks
  • Certificates of Completion
  • 5 Amazing Bonuses
Satisfaction Guaranteed
Accepted paymend methods
Secure checkout

Get Video Training

Advance your Microsoft Excel & Office Skills with the MyExcelOnline Academy!

Dramatically Reduce Repetition, Stress, and Overtime!
Exponentially Increase Your Chances of a Promotion, Pay Raise or New Job!

Learn in as little as 5 minutes a day or on your schedule.

Learn More!

Share to...