A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
Dear Thibaut,
Thank you for reaching out with your query. I understand you’re looking to create a calculated text column in your Microsoft tool to dynamically display text based on the difference between the current date and a release date.
Here’s a formula you can use in SharePoint to achieve this. Assuming your date column is named [DATE], the following formula can be entered in the calculated column:
=IF(DATEDIF([DATE], TODAY(), "m") <= 6, "Latest Version",
IF(DATEDIF([DATE], TODAY(), "m") <= 12, "Recent",
IF(DATEDIF([DATE], TODAY(), "m") <= 24, "Old", "Obsolete")))
- Go to your SharePoint list > click settings icon > list settings
- Create a new column and select Calculated as the column type.
- Paste the formula above into the formula field.
- Set the data type returned to Single line of text.
Here is how it looks after setup.
If you encounter any issues or have additional requirements, feel free to let me know!
Best regards,
Community Moderator | Sophia