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
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67K Get Help
- 441 Global Discussions
- 153 Industry Talk
- 501 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 155 Just for fun
- 79 Community Job Board
- 511 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!