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
- Customer Resources
- 65.4K Get Help
- 447 Global Discussions
- 144 Industry Talk
- 479 Announcements
- 5.1K Ideas & Feature Requests
- 85 Brandfolder
- 151 Just for fun
- 72 Community Job Board
- 490 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 302 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!