function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Shruti Vaishya 4Shruti Vaishya 4 

How to use picklist value in formula?

I have a picklist with values : 5%, 10%, 15%
And I want to use it in the formula field in percent format only like 5/100.
So please suggest what syntax should I write?
 
Best Answer chosen by Shruti Vaishya 4
Maharajan CMaharajan C
Hi Shruti,

Please try the below formula:
 
VALUE( SUBSTITUTE(TEXT( Piclist Field API ), "%", '') ) / 100

One more suggestion is you can change the API Name of the picklist values for ex: Label is 5% and API Name is 5. Then no formula is required to convert this values directly you can refer in formula.

Thanks,
Maharajan.C