Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
thank you a log but I would like to use datediff between the first date
and and now today but I have a strange result I do not undestand why Do While datedifferencee 0 currendatemonth = Month(currentdate) currentdateyear = Year(currentdate) difference = datediff("m", todaydate, currentdate) datedifferencee = CInt(difference) currentdate = DateSerial(Year(currentdate), Month(currentdate) + i, 0) currendatemonth = currendatemonth + 1 Loop Ina |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Now is Date not todaydate. Also your code makes no sense to me, I am not
seeing the link between this code and your original request. What exactly are you trying to do? -- HTH Bob Phillips (remove nothere from email address if mailing direct) "ina" wrote in message ups.com... thank you a log but I would like to use datediff between the first date and and now today but I have a strange result I do not undestand why Do While datedifferencee 0 currendatemonth = Month(currentdate) currentdateyear = Year(currentdate) difference = datediff("m", todaydate, currentdate) datedifferencee = CInt(difference) currentdate = DateSerial(Year(currentdate), Month(currentdate) + i, 0) currendatemonth = currendatemonth + 1 Loop Ina |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Date(Year,Month,Day) not returnign correct date | Excel Discussion (Misc queries) | |||
count month when date is in day/month/year format | Excel Worksheet Functions | |||
Tell me which "season" (Month/Day through Month/Day) a date(Month/Day/Year) falls in (any year)??? | Excel Discussion (Misc queries) | |||
Sort month/date/year data using month and date only | Excel Discussion (Misc queries) | |||
Using '=MIN(DATE(YEAR(A1),MONTH(A1)+{7,6},DAY(A1)*{0,1}))' | Excel Worksheet Functions |