W
WLMPilot
I was given a formula for one of my questions a while back and I am trying to
understand what it is doing. Below is the formula:
=DATE(YEAR(A42),MONTH(A42)+1,0)
If A42 = 1/15/09, then the above formula returns 1/31/09. My two questions
are:
1) Why doesn't MONTH(A42)+1 change the month to Feb?
2) What purpose does 0 in the day spot of DATE serve?
Thanks,
Les
understand what it is doing. Below is the formula:
=DATE(YEAR(A42),MONTH(A42)+1,0)
If A42 = 1/15/09, then the above formula returns 1/31/09. My two questions
are:
1) Why doesn't MONTH(A42)+1 change the month to Feb?
2) What purpose does 0 in the day spot of DATE serve?
Thanks,
Les