0

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?

0

=SUBSTITUTE(SUBSTITUTE(A1, "(", ""), ") ", "-")

0

___________________________________________________________

=ARRAYFORMULA(IF(LEN(A1:A), SUBSTITUTE(SUBSTITUTE(A1:A, "(", ""), ") ", "-"), ))

p

  • Please provide an explanation for the syntax of the SUBSTITUTE function, so that readers can follow your answer. – ahorn Mar 8 at 10:08

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.