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
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 142 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!