override regional settings in a calculated column to use dot as decimal instead of comma in calculated column
-
06-10-2020 - |
문제
My SP site's regional settings are set to Germany. In Germany a comma is used as the decimal point instead of a dot. So if I have a calculated column that shows the result of 50/100
it will print 0,5
. My calculated column function is more complex then that but I'm simplifying for the sake of this question.
Is there anyway I can override the regional settings to show a dot instead of a comma? So I'd want the output to be 0.5
?
해결책
SharePoint does not have a SUBSTITUTE
(of multiple characters) like Excel has.
So you have to use the REPLACE
function (which does not have the same syntax as Excel)
=REPLACE( n1 , FIND(",",n1) , 1 , "." )
If you want to do more Replacements you have to nest the statements (and SharePoint has a limitation of 7 nested statements...)
All tested and tried functions that work in SharePoint: https://www.365csi.nl/vm365com/365coach/#/Calculated_Column_Functions_List