Error adding month when going into next year
=IFERROR(Recurs@row = "Monthly", (DATE(YEAR(Due@row), MONTH(Due@row) + 1, DAY(Due@row))),IFERROR(Recurs@row="Annually",(DATE(YEAR(Due@row)+1, MONTH(Due@row), DAY(Due@row)))))
Works like a charm until a date in December would happen in January, then it throws an error.
Best Answer
-
Try this instead...
=IF(Recurs@row = "Monthly", IFERROR(DATE(YEAR(Due@row), MONTH(Due@row) + 1, DAY(Due@row)), DATE(YEAR(Due@row) + 1, 1, DAY(Due@row))), DATE(YEAR(Due@row) + 1, MONTH(Due@row), DAY(Due@row)))
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Answers
-
Try this instead...
=IF(Recurs@row = "Monthly", IFERROR(DATE(YEAR(Due@row), MONTH(Due@row) + 1, DAY(Due@row)), DATE(YEAR(Due@row) + 1, 1, DAY(Due@row))), DATE(YEAR(Due@row) + 1, MONTH(Due@row), DAY(Due@row)))
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
Thanks @Paul Newcome that's what I wasn't getting was that IFERROR syntax which I'm trying to make sound like it's something I knew about before today but I didn't and that's fantastic and thanks!
-
Happy to help. ποΈ
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.7K Get Help
- 371 Global Discussions
- 205 Industry Talk
- 436 Announcements
- 4.5K Ideas & Feature Requests
- 137 Brandfolder
- 129 Just for fun
- 129 Community Job Board
- 448 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 282 Events
- 32 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!