Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save discarn8/9f5eeb8332c3458249284ba429ac18fe to your computer and use it in GitHub Desktop.
Save discarn8/9f5eeb8332c3458249284ba429ac18fe to your computer and use it in GitHub Desktop.
EXCEL_FORMULA_Convert_to_e164_non-hypenated
=CONCATENATE("+1",SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE((SUBSTITUTE(C2,"(","")),")","")," ",""),"-",""),".",""),"x",";ext="))
Adds leading parenthesis
=CONCATENATE("+1(",SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE((SUBSTITUTE(C2,"(","")),")","")," ",""),"-",""),".",""),"x",";ext="))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment