Creating Random Numbers in Excel

Creating Random Numbers in Excel

Table of Contents

Have you ever needed to generate random dates in an Excel spreadsheet? You may not need it often, but when you do, this tip is quite handy. This is the kind of training we cover in our Advanced Excel class, and help you with in your office!

To create random numbers, use this formula:
=RANDBETWEEN(DATE(2003,1,1),DATE(2014,9,30))

The first argument, DATE(2003,1,1), is the low end of the range (earliest), and DATE(2014,9,30) was the high end of the range (most recent).

This creates a random date between 1/1/2003 and 9/30/14. Then, format the number so it appears as a “Date” to turn it into an understandable format.

Last, drag the AutoFill Handle (the little dot in the bottom corner of the cell) down to the bottom of my column to duplicate the formula.

If you want just a random number between two values, you would do the same thing, but replace the DATE(2003,1,1) with the low and high numbers.

Creating Random Numbers in Excel

Udemy Course Learn Excel in 3 Hours Flat

 

Need to learn Excel quickly? Check out Alicia’s online course, Learn Excel in 3 Hours Flat. For only $59 you get lifetime access to the course.

Picture of Alicia Katz Pollock
Alicia Katz Pollock
Recently named one of America's Top 50 Women in Accounting, Alicia is a leading expert in QuickBooks Online training with a Masters in Teaching and decades of business consulting. She offers a range of tailored resources from self-paced courses to personalized coaching. Known for her patience and commitment, Alicia simplifies QuickBooks for clients, helping them achieve their financial management goals with ease.
Picture of Alicia Katz Pollock
Alicia Katz Pollock
Recently named one of America's Top 50 Women in Accounting, Alicia is a leading expert in QuickBooks Online training with a Masters in Teaching and decades of business consulting. She offers a range of tailored resources from self-paced courses to personalized coaching. Known for her patience and commitment, Alicia simplifies QuickBooks for clients, helping them achieve their financial management goals with ease.
Don't forget to share this post.
Related Articles
QBOA for ProAdvisors
QuickBooks
Alicia Katz Pollock
Ditch the Desktop Drama: Unveiling the Hidden Gems of QBOA for ProAdvisors

Let’s face it, the recent news about QuickBooks Desktop phasing out has sent ripples of uncertainty through the bookkeeping and accounting world. But before you hit the panic button, let me assure you: millions of us have already embraced QuickBooks Online (QBO) – and for good reason. QBO isn’t just a web-based version of Desktop; it’s a whole new ball

Read More »
eCommerce
QuickBooks
Alicia Katz Pollock
Navigating the eCommerce Jungle: Integrating Your Online Sales with QuickBooks Online

Running an eCommerce business is exciting, but managing the financial side can feel like hacking your way through a dense jungle. Especially when it comes to integrating your eCommerce platforms with your accounting software, the options can be overwhelming. As a bookkeeper or small business owner, you need accurate, up-to-date financials, and that means getting your eCommerce sales data into

Read More »
QuickBooks Online Hacks
QuickBooks
Alicia Katz Pollock
QuickBooks Online Hacks

QuickBooks Online Hacks: Boost Your Efficiency with These Insider Tips Are you a QuickBooks Online user looking to streamline your workflow and save valuable time? This blog post is packed with insider tips and tricks, what I like to call “hacks,” to help you navigate QuickBooks Online more efficiently and effectively. Mastering the Interface: Hidden Tools and Shortcuts Let’s dive

Read More »