Reverse Date Calculation
Hi,
I have a formula which uses criteria from a drop-down (Program) and the date in another column (Drop) to populate a secondary date field (Brief) automatically. The issue is when Drop is a different year than the current, I get INVALID DATA ENTRY errors. Here is the formula and screenshots:
=IF(Program@row = "Cultivation", DATE(YEAR(Drop@row) - INT((12 - MONTH(Drop@row) + 6) / 12), MOD(MONTH(Drop@row) - 6 - 1, 12) + 1, DAY(Drop@row)), IF(Program@row = "Acquisition", DATE(YEAR(Drop@row) - INT((12 - MONTH(Drop@row) + 7) / 12), MOD(MONTH(Drop@row) - 7 - 1, 12) + 1, DAY(Drop@row)), IF(OR(Program@row = "Engagement", Program@row = "Stewardship"), DATE(YEAR(Drop@row) - INT((12 - MONTH(Drop@row) + 3.5) / 12), MOD(MONTH(Drop@row) - 3.5 - 1, 12) + 1, DAY(Drop@row)), "")))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!