-1

I have a list of phone numbers entered into Google Spreadsheet in this format: 404-313-2974

How can I convert this entered cell into (404) 313-2974 ?

1

With some regex :

=REGEXREPLACE(
     REGEXREPLACE(A1,"^...","\($0\)")
  ,"\)-","\) ")

First regexreplace job is to add some parenthesis.
Second one is to remove the first hyphen -.


enter image description here

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.