Forum Discussion

MichaelW's avatar
MichaelW
Brass Contributor
Oct 12, 2023

Sharepoint List - Single line of text starts with +49

Hi there,

 

is there a way to define in an already created column "phone-number" which is the type (single line of text), that if a new assett is created, the value in the column must contain or start with"+49"?

 

I tried to use this formula: 

=IF(ISNUMBER(FIND("+49",[phone-number])), "OK", "Not OK")

but it doesnt accept the synthax.

 

It seems like this synthax is only accepted if the type of column is calculated (from other columns) but I dont want to calculate from other columns I just want that the typed in value with a new assetts only accepts values if the "+49" land code is included.

 

 

can someone help or explain me this?

 

thanks

  • Its working now, I inserted the formula into the web page UI of the list and selected the column, as shown in the screenshot

    =WENN(LINKS(Rufnummer;3)="+49";WAHR;FALSCH)

     

     

    Formula is working correctly:

     

  • MichaelW Use column validation formula like this: 

     

    =IF(LEFT([Rufnummer],3)="+49",TRUE,FALSE)

     

    As you are using German language, you will need to use semicolons instead of commas like: 

     

    =IF(LEFT([Rufnummer];3)="+49";TRUE;FALSE)

     

    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.

    • MichaelW's avatar
      MichaelW
      Brass Contributor

      ganeshsanap 

       

      I tried it and couldnt save the column 

       

      We could not edit the column, please try again

      • MichaelW It is working fine for me with English language SharePoint site.

         

        Can you try using this once: 

         

        =WENN(LINKS([Rufnummer];3)="+49";TRUE;FALSE)

         

        Make sure you are using correct name of your column in place of Rufnummer in above formula.


        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.

Resources