Subtract 1 month from the date expire for a task
I have a column that calculates a due date that uses this simple formula:
=DATE(YEAR([Date Expired]@row), MONTH([Date Expired]@row) - 1, DAY([Date Expired]@row))
It works great but for some reason returns #INVALID VALUE when the date expired is any day in January. any other month seems to be fine I'm guessing because the month prior is in a prior year. what argument will fix this?
Best Answer
-
@Paul Newcome as ussual, your insights are invaluable. Thank you for the assist!
Answers
-
Try this:
=IFERROR(DATE(YEAR([Date Expired]@row), MONTH([Date Expired]@row) - 1, DAY([Date Expired]@row)), DATE(YEAR([Date Expired]@row) - 1, 12, DAY([Date Expired]@row)))
-
@Paul Newcome as ussual, your insights are invaluable. Thank you for the assist!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!