I am trying to build a formula to calculate expiry date based on conditionality.
So, if someone fills out the type of PRC as 'VSC', formula should add 'PRC issue date +3 years' to get PRC Expiry date,
another condition is, if staff fills out type of PRC as 'CRIC/CIPIC', the formula should add PRC issue date +6 months
=IF([PRC Type]@row = "VSC", DATE(YEAR([PRC Issue Date]@row) + 3, MONTH([PRC Issue Date]@row), DAY([PRC Issue Date]@row)), DATE(YEAR([PRC Issue Date]@row), MONTH([PRC Issue Date]@row) + 6, DAY([PRC Issue Date]@row)))
Does this look good or we can perfect it.
Best Answer
-
Hi @Amandeep kaur,
Try this.
=IF([Type of PRC]@row = "VSC", DATE(YEAR([PRC Issue Date]@row) + 3, MONTH([PRC Issue Date]@row), DAY([PRC Issue Date]@row)), IF([Type of PRC]@row = "CRC/CIPIC", DATE(YEAR([PRC Issue Date]@row), MONTH([PRC Issue Date]@row) + 6, DAY([PRC Issue Date]@row))))
Hope that helps,
Dave
Answers
-
Hi @Amandeep kaur,
Try this.
=IF([Type of PRC]@row = "VSC", DATE(YEAR([PRC Issue Date]@row) + 3, MONTH([PRC Issue Date]@row), DAY([PRC Issue Date]@row)), IF([Type of PRC]@row = "CRC/CIPIC", DATE(YEAR([PRC Issue Date]@row), MONTH([PRC Issue Date]@row) + 6, DAY([PRC Issue Date]@row))))
Hope that helps,
Dave
-
Thanks Dave, that was very helpful.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.5K Get Help
- 424 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 146 Just for fun
- 63 Community Job Board
- 465 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 301 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!