Forum Discussion
robrkhw
Mar 06, 2023Copper Contributor
Calculated column - IF statement
I am trying to create an calculated column which returns a piece of text based on the number in a different field - 1-4 = Manageable 5-19 = Material 20 - 39 = Severe 40+ = Very Severe The nu...
- Mar 06, 2023
Can you try below formula:
=IF(ISBLANK([Initial Risk Score]),"",IF([Initial Risk Score]<5,"Manageable",IF(AND([Initial Risk Score]>=5,[Initial Risk Score]<=19),"Material",IF(AND([Initial Risk Score]>=20,[Initial Risk Score]<=39),"Severe",IF([Initial Risk Score]>=40,"Very Severe","")))))Hope it will helpful to you and if so then Please mark my response as Best Response & Like to help others in this community
ganeshsanap
Mar 06, 2023MVP
robrkhw Based on conditions mentioned in your question, use formula like:
=IF(ISBLANK([Initial Risk Score]),"",IF(AND([Initial Risk Score]>0,[Initial Risk Score]<5),"Manageable",IF(AND([Initial Risk Score]>=5,[Initial Risk Score]<20),"Material",IF(AND([Initial Risk Score]>=20,[Initial Risk Score]<40),"Severe",IF([Initial Risk Score]>=40,"Very Severe","")))))
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( , ).
- Make sure you are using correct display name of columns in your formula (case sensitive).
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
robrkhw
Mar 07, 2023Copper Contributor
Thanks for your response