Odd bug in Date formula?
So here is something I have been trying to tweek with no success….
I have this column formula which takes the date in column A and gives me the updated date of same month, last day + 2 yrs (ie 11/01/24 becomes 11/30/26)
=DATE(YEAR([Appointment Month]@row) + 2, MONTH([Appointment Month]@row) + 1, 1) - 1
and it works great for every month except December. I am assuming the year changing the next month has something to do with it but I can't figure out the tweek to capture that.
Best Answer
-
It is MONTH([Appointment Month]@row) + 1 part of your formula that is throwing you off. Because you are asking it to take the month and add 1. There is no 13th month, hence the error
Michelle Choate
michelle.choate@outlook.com
Always happy to walk through any project you need help with! Book time with me here: https://calendly.com/michelle-choate
Answers
-
It is MONTH([Appointment Month]@row) + 1 part of your formula that is throwing you off. Because you are asking it to take the month and add 1. There is no 13th month, hence the error
Michelle Choate
michelle.choate@outlook.com
Always happy to walk through any project you need help with! Book time with me here: https://calendly.com/michelle-choate
-
Thank you. That makes sense.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.5K Get Help
- 448 Global Discussions
- 145 Industry Talk
- 481 Announcements
- 5.1K Ideas & Feature Requests
- 85 Brandfolder
- 152 Just for fun
- 73 Community Job Board
- 492 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 304 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!