Mar 20 2023 01:45 PM
I am stuck in writing a calculated column. Alist column has a range of blood alcohol content ranging from 0.00-0.500. I originally created this calculation:
=IF([Breath Test Result]<=0.08,"Legal Limit","Illegal Limit")
however, it only worked for 2 arguments and not accounting for the N/A selection. I then adjusted to this one:
=IF([Breath Test Result]<0.80,"Legal",IF(AND([Breath Test Result]>0.081,[Breath Test Result]<=0.500),"Illegal",IF([Breath Test Result]="n/a","no results)))
but SharePoint 365 is telling me that the syntax is wrong. Can anyone please help?
Mar 20 2023 08:55 PM
Mar 21 2023 12:45 AM
@TonyTone365 Try using below formulas and see which one works best for your requirements:
=IF([Breath Test Result]<0.80,"Legal",IF(AND([Breath Test Result]>0.081,[Breath Test Result]<=0.500),"Illegal",IF([Breath Test Result]="N/A","No Results,"")))
OR
=IF(OR(ISBLANK([Breath Test Result]),[Breath Test Result]="N/A"),"No Results,IF(Value([Breath Test Result])<0.80,"Legal",IF(AND(Value([Breath Test Result])>0.081,Value([Breath Test Result])<=0.500),"Illegal","")))
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
Mar 21 2023 08:31 AM
Mar 21 2023 08:37 AM
Mar 22 2023 02:08 AM
Solution@TonyTone365 I missed one double quote ( " ) in my response above, try using this formula:
=IF(OR(ISBLANK([Breath Test Result]),[Breath Test Result]="N/A"),"No Results",IF(Value([Breath Test Result])<0.80,"Legal",IF(AND(Value([Breath Test Result])>0.081,Value([Breath Test Result])<=0.500),"Illegal","")))
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
Mar 22 2023 05:12 AM