=LEFT(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"-",""),"(",""),")",""),".",""),3)&"."&MID(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"-",""),"(",""),")",""),".",""),4,3)&"."&RIGHT(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"-",""),"(",""),")",""),".",""),4)
Try:Code:=LEFT(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"-",""),"(",""),")",""),".",""),3)&"."&MID(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"-",""),"(",""),")",""),".",""),4,3)&"."&RIGHT(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"-",""),"(",""),")",""),".",""),4)
This should convert
xxx-xxx-xxxx
(xxx)xxx-xxxx
(xxx)xxxxxxx
xxxxxxxxxx
xxx.xxx.xxxx
(xxx)xxx.xxxx
etc.
all to xxx.xxx.xxxx