Adding months (stipulated in one cell) to a date (stipulated in another cell)
I have used this formula:
=DATE(IF(MOD(VALUE(MONTH([Date Approved]@row)) + MTE@row, 12) = 0, -1, 0) + YEAR([Date Approved]@row) + (MONTH([Date Approved]@row) + MTE@row - MOD(MONTH([Date Approved]@row) + MTE@row, 12)) / 12, IF(MOD(VALUE(MONTH([Date Approved]@row) + MTE@row), 12) = 0, 12, MOD(MONTH([Date Approved]@row) + MTE@row, 12)), DAY([Date Approved]@row))
But I get #INVALID COLUMN VALUE
The Date Approved is formatted as a Date Type but the Months cannot be a date value
Best Answer
-
You would take your existing formula and just subtract 1 from it.
=existing_formula - 1
Answers
-
Is the Expiry column set as a date type column?
-
No it wasn't!!! Thanks so much. Do you know if I could deduct 1 day from the answer. For instance I am getting the same day of the month but if it is valid for 24 months then it would be one day earlier - see below where the expiry should be 12 July 2025.
-
You would take your existing formula and just subtract 1 from it.
=existing_formula - 1
-
Done! Thanks a million!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.4K Get Help
- 396 Global Discussions
- 213 Industry Talk
- 448 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 133 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 293 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!