I am attempting to use a date in a column to calculate 6 months after that date into another column
My formula works as long as it is in the original date is in the first 6 months of the year, but if it is in the last half of the year, my formula is not looping to the next year.
Example: I need 6 months from 08/01/2022 which would be February of 2023
Here is the formula I have been using: =DATE(YEAR([Approval Date]1), MONTH([Approval Date]1) + 6, DAY([Approval Date]1))
Answers
-
Tyr this:
=IFERROR(DATE(YEAR([Approval Date]1), MONTH([Approval Date]1) + 6, DAY([Approval Date]1)), DATE(YEAR([Approval Date]1) + 1, MONTH([Approval Date]1) - 6, DAY([Approval Date]1)))
-
Hi @Paul Newcome ! I was searching for this exact formula and came across your comment. I used it and it worked beautifully to calculate the date 6 months in the future. I then tried to convert it to a column formula and received the message "the column formula syntax isn't quite right, see our help article...(regarding column formulas)". The column that I am using in my formula is the auto created date. Do you think that is the reason?
Thank you so much for the help!
-
Column Formulas need to have generic row references so it can apply to every row. In the formula above, the cell reference has a 1 next to it, indicating the cell is in row 1. Instead, replace this with @row!
=IFERROR(DATE(YEAR([Approval Date]@row), MONTH([Approval Date]@row) + 6, DAY([Approval Date]@row)), DATE(YEAR([Approval Date]@row) + 1, MONTH([Approval Date]@row) - 6, DAY([Approval Date]@row)))
Let me know if that works now!
Cheers,
Genevieve
Join us at Smartsheet ENGAGE 2024 🎉
October 8 - 10, Seattle, WA | Register now -
@Genevieve P. Oh man, can't believe I didn't see that!! Thank you!
-
No problem at all 🙂
Join us at Smartsheet ENGAGE 2024 🎉
October 8 - 10, Seattle, WA | Register now
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.1K Get Help
- 351 Global Discussions
- 198 Industry Talk
- 427 Announcements
- 4.4K Ideas & Feature Requests
- 133 Brandfolder
- 127 Just for fun
- 127 Community Job Board
- 443 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 283 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!