I have to generate 10000 random dates in Excel. I found some website to do that, but the problem is I need fill out two columns ( pickup date, return date).
How can I coordinate between them where return date must be greater than pickup date?
Is there any website or functions in Excel to do it?
相关问题
- Excel sunburst chart: Some labels missing
- Error handling only works once
- Excel formula in VBA code
- Excel VBA run time error 450 from referencing a ra
- DoCmd.TransferSpreadsheet is not recognizing works
相关文章
- Get column data by Column name and sheet name
- programmatically excel cells to be auto fit width
- Unregister a XLL in Excel (VBA)
- How to prevent excel from truncating numbers in a
- numeric up down control in vba
- Declare a Range relative to the Active Cell with V
- What's the easiest way to create an Excel tabl
- How to create a hyperlink to a different Excel she
You can use the
RANDBETWEEN
function to generate dates between a certain range e.g.:Then, in the second column, use the value in the first column as the date lower bound e.g.:
Note that the output of
RANDBETWEEN
is a number that is Excel's underlying date representation, therefore you need to format the output cells as a date.Use a custom written script in Python, perl, or whatever you know or can learn, and create a CSV file. Import this CSV file into Excel. If you don't know how to program this might be a little too complex of a task, but this is the only direction of advice which is on-topic on this site.
If you need help post a new question with you attempt of a solution.