How to Generate Random Dates in Google Sheets

To generate random dates in Google Sheets, you can use the RANDBETWEEN and DATE functions together. Here's a step-by-step guide on how to do this:

  1. Open Google Sheets and create a new file or open an existing one.
  2. Click on the cell where you want to insert the random date.
  3. Type the following formula:
=RANDBETWEEN(DATE(yyyy, mm, dd), DATE(yyyy, mm, dd))

Replace "yyyy" with the desired start and end years, "mm" with the desired start and end months, and "dd" with the desired start and end days. The RANDBETWEEN function will generate a random date within the specified range.

For example, to generate a random date between January 1, 2020, and December 31, 2020, use the following formula:

=RANDBETWEEN(DATE(2020, 1, 1), DATE(2020, 12, 31))
  1. Press the Enter key, and the cell will display a random date within the specified range.

Example

In this example, we will generate random dates between April 1, 2019, and March 31, 2020:

  1. Open Google Sheets and create a new file or open an existing one.
  2. Click on the cell where you want to insert the random date.
  3. Type the following formula:
=RANDBETWEEN(DATE(2019, 4, 1), DATE(2020, 3, 31))
  1. Press the Enter key, and the cell will display a random date within the specified range.

You can also copy the formula to other cells if you need to generate multiple random dates. Simply click on the cell containing the formula, then drag the fill handle (the small blue square in the bottom-right corner of the cell) over the desired range.

Did you find this useful?