Forum Discussion
Jonas_Daragas
Mar 28, 2023Copper Contributor
Get the year from other column
Hi I'm creating a new column in my Sharepoint List. I'm using a calculated value for this column that extracts the year from a 'date' column. Example: Date column: 23-02-2023 ...
ganeshsanap
Mar 28, 2023MVP
Note:
- Sometimes comma( , ) does not work in formula (it is based on language or regional settings on your site). So in that case use semicolon( ; ) instead of comma( , ). 2. Use correct display names of your columns in the formula.
Documentation: Calculated Field Formulas
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
For SharePoint/Power Platform blogs, visit: Ganesh Sanap Blogs
- Jonas_DaragasMar 28, 2023Copper ContributorI don't mean in the formula. I mean the result is showing a , (in your example), mine shows a . (because of my region). So the problem is in the result.
- ganeshsanapMar 28, 2023MVP
Jonas_Daragas Try using formula in this format:
=IF(ISBLANK([Date]),"",TEXT([Date],"yyyy"))Output:
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
For SharePoint/Power Platform blogs, visit: Ganesh Sanap Blogs
- Jonas_DaragasMar 28, 2023Copper ContributorSyntaxis error