Hi, I just have a question about the DATE() function.
If cell A1 has the date of 30/06/2012, then the formulae:
=DATE(YEAR(A1),MONTH(A1)-1+1,) will return the value 31/05/2012
=DATE(YEAR(A1),MONTH(A1)-3+1,) will return the value 31/03/2012
This way correctly calculates the date at the end of last month, and 3 months ago.
Can you explain how this worked perfectly?
Bookmarks