Skip to main content
Hi, I need a validation rules for the Mobile and Phone fields that prevents you from entering the first two digits of the number as two 00 but accepts 01,02,03 and 10,20,30.
3 件の回答
  1. 2021年1月17日 15:21
    hi Luca, 

     

    You can try

     

    OR(MID(Phone, 2, 2)  = "00",

     

    NOT(REGEX(Phone, "\\([0-9]{3}\\) [0-9]{3}-[0-9]{4}")) 

     

    )

     

    It should throw error if phone number is not in US  number format or if first 2 digit is 00

     

    or if there is some other number format, and you just want to check starting 2 digit, you can use

     

    OR(

     

    extsting validation for phone number ,

     

    Left(Phone , 2) = "00"

     

    )

     

    Thanks
0/9000