Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to quickly generate random time in Excel?

In Excel, in a common situation, most of us may need to insert random numbers, date or text strings as our desired. But sometimes, have you ever tried to insert times randomly in a range of cells? Actually, we can apply some formulas to insert random time into the worksheet.

Generate random time in Excel with formulas

Generate random time in Excel with handy tool – Kutools for Excel


Insert Random numbers / text strings / dates / Times into worksheet:

Kutools for Excel’s Insert Random Data feature can help you quickly generate random numbers, text strings, date, time and custom list as you need.

doc-generate-random-time1

Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!


Generate random time in Excel with formulas


The following formulas can help you to generate random time in a range of cells, please do as these:

Generate random time in Excel

1. Please enter this formula in a blank cell =TEXT(RAND(),"HH:MM:SS"), see screenshot:

doc-generate-random-time1

2. Then drag the fill handle over to the range cells that you want to fill with the random time.

doc-generate-random-time1

Generate random time between two times in Excel

If you want to generate random time between two given times, such as generate time from 6 o’clock to 9 o’clock, you can use below formula.

Type this formula: =TEXT(RAND()*(9-6)/24+6/24,"HH:MM:SS") into a blank cell, and drag the fill handle over to the range that you want to insert the time.

And you will get the random time which between 6 o’clock and 9 o’clock. See screenshot:

doc-generate-random-time1

Note: In the above formula =TEXT(RAND()*(9-6)/24+6/24,"HH:MM:SS "), the numbers 9 and 6 stand for the two given time. You can change them as you need.

Generate random date and time between two dates in Excel

Here is also a formula which can help you to generate random date and time in the worksheet.

Please enter this formula: =TEXT(RAND()*("2014-05-31 12:00:00"-"2014-4-1 9:00")+"2014-4-1 9:00:00","yyyy-mm-dd h:m:s") into a blank cell, (in this formula, 2014-05-31 12:00:00 stands for the end date and time, and 2014-4-1 9:00:00 is the start date and time, you can modify them to your need), then drag the fill handle to the cells that you want to insert the date and time.

doc-generate-random-time1


Generate random time in Excel with handy tool – Kutools for Excel

If you are tired of the formulas, here, I can talk about an easy way to solve it. With Kutools for Excel’s Insert Random Data utility, you can quickly insert random numbers, date, time, and other text strings.

Kutools for Excel : with more than 300 handy Excel add-ins, free to try with no limitation in 60 days

If you have installed Kutools for Excel, please do as follows:

1. Select a blank range of cells that you want to insert random time.

2. Click Kutools > Insert > Insert Random Data, see screenshot:

doc-generate-random-time1

3. In the Insert Random Data dialog box, click Time tab, and then enter the start time into the From box, and type the end time into the To box, see screenshot:

doc-generate-random-time1

Tips: To insert some random distinct time, please check Unique values option.

4. Then click Ok or Apply button, the random time has been inserted into the cells. See screenshot:

doc-generate-random-time1

Download and free trial Kutools for Excel Now !


Demo: Generate random times / numbers / dates / strings with Kutools for Excel

Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!


Related articles:

How to insert random numbers in a range in Excel?

How to generate random character strings in a range in Excel?

How to generate random date quickly in Excel?


Recommended Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 71%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 82% Excel problems.

  •  Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  •  Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  •  Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  •  Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  •  No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  •  Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  •  60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  •  Change the way you work now, and give you a better life immediately!

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Edinho · 4 years ago
    Thanks for the post, i really needed random hour, and this helped me a lot!!