You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

randbetween date

how to RANDBETWEEN between two dates?


originally I wanted to use DATEVALUE to generate the serial number of the date but instead of generating number it still returns date


help me, pls

Posted on Feb 8, 2023 1:51 AM

Reply
Question marked as Top-ranking reply

Posted on Feb 8, 2023 3:46 AM

Hi cavalera2010,

you could try something like this.

It will create a random date that is between start and end date.


Formula for C2=A2+RANDBETWEEN(1,DATEDIF(A2,B2,"D")−1)



Based on your region the , or the ; will be used to separate the different sections of a formula. If you write one thousand as 1,000.00 then the , is used as your formula separator. If you write one thousand as 1.000,00 then the ; is used as your formula separator.


Hope this will solve your question, please let me know if this worked for you or if something in unclear.


Regards Ralf

1 reply
Question marked as Top-ranking reply

Feb 8, 2023 3:46 AM in response to cavalera2010

Hi cavalera2010,

you could try something like this.

It will create a random date that is between start and end date.


Formula for C2=A2+RANDBETWEEN(1,DATEDIF(A2,B2,"D")−1)



Based on your region the , or the ; will be used to separate the different sections of a formula. If you write one thousand as 1,000.00 then the , is used as your formula separator. If you write one thousand as 1.000,00 then the ; is used as your formula separator.


Hope this will solve your question, please let me know if this worked for you or if something in unclear.


Regards Ralf

randbetween date

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.