how to add 12 months to a date and in a new cell
I have a fixed date and am trying to add 12 months to the date and show it in a different cell, any ideas on the formula?
Best Answers
-
Let's say your columns are Date and NewDate.
In your NewDate column try this:
=DATE(YEAR(Date@row)+1, MONTH(Date@row), DAY(Date@row))
The DATE function builds a valid date format value from numeric values in year, month, day order, separated by commas. Syntax is: DATE(year, month, day). In this case, using the YEAR, MONTH, and DAY functions to pull the values from the Date column.
Or you could just use
=Date@row + 365
but this won't account for the extra day in those pesky leap years.
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
This worked great, many thanks, also manage to figure out if you want 18 months just place + 6 after the month statement, i'm rocking now 😀
-
@ShaunW Glad I could help.
(If you could mark my answer as accepted, I'd appreciate it!)
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
Answers
-
Let's say your columns are Date and NewDate.
In your NewDate column try this:
=DATE(YEAR(Date@row)+1, MONTH(Date@row), DAY(Date@row))
The DATE function builds a valid date format value from numeric values in year, month, day order, separated by commas. Syntax is: DATE(year, month, day). In this case, using the YEAR, MONTH, and DAY functions to pull the values from the Date column.
Or you could just use
=Date@row + 365
but this won't account for the extra day in those pesky leap years.
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
This worked great, many thanks, also manage to figure out if you want 18 months just place + 6 after the month statement, i'm rocking now 😀
-
@ShaunW Glad I could help.
(If you could mark my answer as accepted, I'd appreciate it!)
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64K Get Help
- 411 Global Discussions
- 220 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 138 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives