Formula Request for Phone Number Formatting

claybwagner28

Board Regular
Joined
Sep 25, 2014
Messages
68
Office Version
  1. 365
Platform
  1. Windows
Hello,
I received a list of phoje numbers from a vendor in the following format: +1 (615) 555-5555. I would like to convert the phone numbers to 615-555-5555, removing the +1,(), and spaces.
I tried using SUBSTITUTE but I can't quite get it correct.
Any help would be appreciated.
Thanks!
Clay
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
How about
-.xlsm
AB
5+1 (615) 555-5555615-555-5555
Data
Cell Formulas
RangeFormula
B5B5=SUBSTITUTE(REPLACE(A5,1,FIND("(",A5),""),") ","-")
 
Upvote 1
Book1
AB
1+1 (615) 555-5555615-555-5555
Sheet7
Cell Formulas
RangeFormula
B1B1=TEXTJOIN("-",,DROP(TEXTSPLIT(A1,{"(";") "}),,1))
 
Upvote 1
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,174
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top