How do I update the year based on status change?

I want to have the year updated when the project status changes to Complete or Cancelled to insert the current year to be automatically updated in the Archive Year column. The column is currently set as a single dropdown with all the years listed, but I want to build a formula to automatically change the column to update when the project status changes. Do I need to change the dropbox to a text/number? I have a workflow created to move the row once a year when the Archive Year is for the prior year. I know it can probably be easy to setup a workflow on this, but I would like to use a formula to have the column updated for the current year whether its 2022, 2023, etc. based on the current year project is complete or cancelled.
Answers
-
This would actually be better pulled off by using an automation and a formula.
The automation would record a date in a separate column, let's call it "Date Closed" and then the Archive Year formula would be, =YEAR([Date Closed]@row)
-
Thanks. I figured the formula to update if the status is complete or cancelled with an end date to input the year in the archive column as:
=IF(OR([Project Status]@row = "Complete", [Project Status]@row = "Cancelled"), YEAR([Actual End]@row))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 66K Get Help
- 429 Global Discussions
- 149 Industry Talk
- 488 Announcements
- 5.2K Ideas & Feature Requests
- 85 Brandfolder
- 152 Just for fun
- 74 Community Job Board
- 499 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 305 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!