Advertisement
crexin

Excel-Format Phone Numbers with Extension Formula

Jun 14th, 2018
433
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. Excel Formula - format phone numbers with extensions
  2. Derived from examples at https://www.extendoffice.com/documents/excel/4287-excel-phone-number-format-with-extension.html
  3.  
  4. Change a number like 2124567890x123 to (212) 456-7890 x123 assuming this number is in Cell E5
  5.  
  6. May need to first strip all non-numeric characters first and need to enter next formula with CTRL-SHIFT-ENTER
  7. https://exceljet.net/formula/strip-non-numeric-characters
  8.  
  9. =TEXTJOIN("",TRUE,IFERROR(MID(A2,ROW(INDIRECT("1:100")),1)+0,""))
  10.  
  11. ="("&LEFT(E5,3)&") "&MID(E5,4,3)&"-"&MID(E5,7,4)&" "&MID(E5,11,99)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement