在Google电子表格中使用括号转换电话号码

问题描述 投票:-1回答:1

尝试将以下电话号码模式转换为单一模式,使用仅在Google电子表格中使用公式的前3位数字的开括号和右括号。

214-7671378 214660-9212 214.412-2034 (972) 223-6473 214 502 7196

(214) 767-1378 (214) 660-9212 (214) 412-2034 (972) 223-6473 (214) 502-7196

google-sheets
1个回答
2
投票

=text(REGEXREPLACE(TEXT(A1,"@"),"\D+",""),"(###) ###-####")

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.