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
Check out the Formula Handbook template!