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 ?
Web Applications Stack Exchange is a question and answer site for power users of web applications. It only takes a minute to sign up.
Sign up to join this communityI 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 ?
With some regex :
=REGEXREPLACE(
REGEXREPLACE(A1,"^...","\($0\)")
,"\)-","\) ")
First regexreplace
job is to add some parenthesis.
Second one is to remove the first hyphen -
.