How to generate random date between two dates quickly in Excel?
When you use an Excel file, sometimes you want to generate random date for some purpose, of course, you can enter the date manually one by one, but if you need to insert multiple dates, this method will be time-consuming and boring. How to quickly generate random date on earth in Excel?
Generate random date between two dates in cells with formula
Generate random date between two dates in cells a with useful feature
Generate random date between two dates in cells with formula
In Excel, you can mix the Randbetween and Date function to create random date, please do as follows:
1. Select a cell that you want to insert a random date, and enter this formula:
Note: in the function, (2019, 1, 1) is the starting date, and (2019, 10, 20) is the ending date, you can replace them as you need.
2. Then, drag the fill handle down to the cells that you want to fill this formula, it displays a five-digit number in the cell, see screenshot:
3. And then, you should format the numbers to date format, please select the cell, and right-click, choose Format Cells from the context menu.
4. In the Format Cells dialog box, click Number tab, and select Date from the Category, then select a date format you need from the Type drop-down list. See screenshot:
5. Click OK, the numbers have been converted to the normal dates. And the dates between the given two dates have been generated randomly. See screenshot:
- Tips: If you want to generate random workdays excluding the weekends, please apply the below formula:
- =WORKDAY(RANDBETWEEN(DATE(2019, 1, 1),DATE(2019, 10, 1))-1,1)
Generate random date between two dates in cells a with useful feature
It seems that the above method is some troublesome, is there an easier and quicker way to solve this problem? Don’t worry, with Kutools for Excel’s Insert Random Data tool, you can quickly insert the random date as below demo shown. Click to download Kutools for Excel!
Tips:To apply this Insert Random Date feature, firstly, you should download the Kutools for Excel, and then apply the feature quickly and easily.
After installing Kutools for Excel, please do as this:
1. Select a list of cells that you want to insert the random date.
2. Click Kutools > Insert > Insert Random Data, see screenshot:
3. In the popping up Insert Random Data dialog box, click Date tab, then specify the date scope, and choose the date type (workday date, weekend date or unique date) as you need. Then, click OK button, and the dates between the specific two dates have been inserted randomly. See screenshots:
Click to Download Kutools for Excel and free trial Now!
More relative random data articles:
- Insert Random (Integer) Numbers Between Two Numbers
- Do you need to insert random numbers in Microsoft Excel? There are several methods to insert random numbers in a range as follows.
- Generate Random Character Strings In A Range
- Sometimes you may need to generate random strings in cells, such as different passwords. This article tries to show you some tricks to generate different random strings in Excel.
- 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 Yes Or No In Excel
- In some special cases, we may want to generate random Yes or No in a range in Excel, here I will tell you some formulas to quickly generate random Yes or No in Excel.
Best Office Productivity Tools
Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time. Click Here to Get The Feature You Need The Most...
Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!