Gypo
RE: Didn't think much of your arguments about what constitutes a month, though.
Then offer an alternative argument.
RE: One month is not a fixed number of days as you well know.
I don't recall ever saying it was.
RE: It seems to me that an end of a month is the last day of that month
Well of course it is, but what's your point. I think you are getting confused. The idea is to take 'one month' from consecutive dates, not automatically go to the last day of the preceeding month if the beginning month is the last day of that month.
RE: can't really see how it can be something else.
You really have to other some sort of logic for this line of thinking, you cannot just say, 'well, it just is'
When we put a date in a cell and take 'one month' off that date the 'month'we are going to take must be x number of days. If adding one month to say 31/Oct/02 using EDATE we get 30/NoV/02 , it has added 30 days (the number of days in Nov. the resulting month).
If we now put 30/Nov/02 in a cell and use EDATE to return a date one month BEFORE this date we get 30/Oct/02 , it has taken 31 days (the number of days in Oct. The resulting month again)
This same trend continues until you hit 30/Mar/02, the preceeding month is Jan (which only has 28 days) so EDATE can not use this resulting month because this would result in 2/Mar/02 and hence uses 30 days.
So as you can see I am certainly not saying "a month is a fixed number of days".
jonasmckee, may well want to always get the last day of the preceeding month if the beggining month is the last day of that month (hence my alternative), but technically this isn't returning the date one month preceeding consecutive months.
_________________
Kind Regards
Dave Hawley
OzGrid Business Applications
Microsoft Excel/VBA Training
This message was edited by Dave Hawley on 2002-03-29 15:10