Date formula not working when passing through years
Hi, I have two columns 'start date' and 'target completion date', I want the target completion date to auto populate three months on from the start date and have used the following formula:
=DATE(YEAR([Start Date]@row), MONTH([Start Date]@row) + 3, DAY([Start Date]@row))
When the start date is after 30th September it shows #INVALID VALUE like it cannot register it needs to go to the next year.
Does anyone have any idea what I need to change to fix this error?
Thanks
Best Answer
-
Try this:
=IFERROR(DATE(YEAR([Start Date]@row), MONTH([Start Date]@row) + 3, DAY([Start Date]@row)), DATE(YEAR([Start Date]@row) + 1, MONTH([Start Date]@row) - 9, DAY([Start Date]@row)))
Answers
-
Try this:
=IFERROR(DATE(YEAR([Start Date]@row), MONTH([Start Date]@row) + 3, DAY([Start Date]@row)), DATE(YEAR([Start Date]@row) + 1, MONTH([Start Date]@row) - 9, DAY([Start Date]@row)))
-
That's worked perfectly thank you
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.5K Get Help
- 430 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 146 Just for fun
- 63 Community Job Board
- 466 Show & Tell
- 32 Member Spotlight
- 2 SmartStories
- 301 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!