- Trending Categories
- Data Structure
- Operating System
- MS Excel
- C Programming
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to Generate Random Dates Quickly in Excel?
Random data is a type of data generated randomly. For this article, the focus is to generate random date. Random data can be either created in between a specified range or can be generated abstractly to demonstrate some data to the user. In this article, two examples are used to demonstrate the method by using which user can easily generate random dates between the two specified dates. The first example focuses on the use of formula by using the RANDBETWEEN() method, and the second example focuses on the use of KuTool.
To Show you Some Examples
To understand the process of generating a random number. Let’s create a sample excel sheet with beginning and ending dates. Both these dates are used as a range and the newly generated random date should lie between these two dates.
Go to the D2 cell, and type the formula “=RANDBETWEEN(B2,C2)”.
Explanation for RANDBETWEEN Method
It is a predefined method available in the MS excel. It allow user to create a random data value from the specified range. It can accept data in two ways, either user can directly pass the date values, by writing it inside the formula bracket or simply provide cell reference as done in the provided example.
After typing the formula. Press “Enter” key. This will print a random date between the provided data range. Consider below depicted image to understand the generated results:
Go to the D2, cell and drag the right bottom corner of the cell to the D5 row. This step will allow excel to same formula, as specified in the D2 cell with different row value.
To understand this method, consider a blank worksheet and select any empty cell to print the generated random date.
To generate the random date. Go to the Kutool tab and Select Editing option. Inside the “Editing” option, click on Insert Random Data.
The above step will open the Insert Random Data dialog box. This dialog box allow user to enter two inputs. These inputs are basically range.
Since, this task is based on generating date. So, user need to select the Date tab. Doing this will automatically convert the input section to “date” type.
This will change the input type to “Date”.
Select starting and end date to generate the random data. By clicking on the drop-down arrow as shown in below image.
Select both dates and click on OK.
This will display a random date from the specified range to the worksheet. Consider below depicted image:
This article provides two simple examples to generate random date. Random data is important to understand the pattern and it also allow the user to study different type of data.
First method, is based on the use of available function, and second strategy allow user to use the KuTool extension, to generate the random date.
Kickstart Your Career
Get certified by completing the courseGet Started