• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Random date excluding days

Papasoc

New Member
Hi,


How can I have a formula in a certain cell to get a random date.

I want to exclude some dates I don't want them to appear.


Thanks
 
Random dates are pretty easy:


=randbetween(X,Y)


for X, 41362 is today's number and Y would be your upper date range. You could also use the today function "Today()" and the function would always generate dates today or beyond. Just format the cell as a date and it will work fine. Hit F9 to recalculate new dates.


If you wanted random dates within one year of today:


=randbetween(today(),today()+365)


When you say "exclude some dates" do you want them just to not appear or to be recalculated if they are randomly selected?
 
Back
Top