Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to add a calendar month 2

Status
Not open for further replies.

junkmail

Programmer
Jan 7, 2001
134
US
Is there an easy way to add a calendar month to a cell based on another cell? To be clear if I have a date of 1/31/2014 I wanted the next value to be 2/28/2014 and not 3/3/2014.
 
Hi,

So what are the rules?

If you add a "calendar month" to 1/29 thru 1/31, then would the result for those 3 dates be 2/28 or 2/29 in a leap year?

In that event, might be something like this...
[tt]
=MIN(DATE(YEAR(A1),MONTH(A1)+1,DAY(A1)),DATE(YEAR(A1),MONTH(A1)+2,0))
[/tt]

Skip,

[glasses]Just traded in my OLD subtlety...
for a NUance![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top