One approach ..
In A1: =RANDBETWEEN(--"1-Jan-2007",--"31-Dec-2010")
In B1:
=IF(AND(DAY(A1)<1,A1<DATE(YEAR(A1),MONTH(A1)+1,0 )),A1,A1+2)
B1 returns the random date screened off first/end day of month
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Sebation" wrote in message
...
hi,
how can get the random date if i give a start date(2007-01-01) to the end
date(2010-12-31)?futher,how can i achieve that the random date is not the
first date of month or the end date of month.
i.e start date 01-01-2007 end date 12-31-2007 i want get 02-01-2007 or
02-29-2008
can anybody give me a guide?
regards,
sebation