Phone Number Format Changes

rehsas

New Member
Joined
Jan 1, 2009
Messages
1
I have phone numbers entered in the (222) 333-4444 format and need to change them to the 222-333-4444 format. Is there a Find/Replace or other formula that can accomplish this? If so, please provide an example. Thx!
 

Some videos you may like

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

mole999

Moderator
Joined
Oct 23, 2004
Messages
10,275
Office Version
2019, 2016, 2013
Platform
Windows
I'm sure you can do ") " to "-" find /replace, then "(" to ""

test it one at a time, for the first few then use replace all

speech marks are for emphasis and not required
 

Datsmart

Well-known Member
Joined
Jun 19, 2003
Messages
7,985
This will work for data in Column A:
Code:
Sub Test1()
Dim Rng As Range
Set Rng = Range("A:A")
Rng.Replace What:="(", Replacement:=""
Rng.Replace What:=") ", Replacement:="-"
End Sub
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
44,404
Office Version
365
Platform
Windows
I have phone numbers entered in the (222) 333-4444 format and need to change them to the 222-333-4444 format. Is there a Find/Replace or other formula that can accomplish this? If so, please provide an example. Thx!
rehsas

Welcome to the MrExcel board!

You have suggestions for a manual method and a vba method. To round it out, here is a formula method. Formula is copied down.

Excel Workbook
AB
1(222) 333-4444222-333-4444
2(323) 569-6588323-569-6588
Phone Numbers
 

Watch MrExcel Video

Forum statistics

Threads
1,095,201
Messages
5,443,002
Members
405,212
Latest member
Arnie58

This Week's Hot Topics

  • Copy entire row if CountA <>0 to another sheet
    [B]I want to copy entire row if CountA <>0 for column J7:AM7 (headers on J6:AM6) and so on till the last used cell is column D and paste the...
  • Select last used Row in Table
    I have created a Table in a Worksheet which is locked to prevent user errors and protect formula. Some of the cells require freetext entries which...
  • excel workbook: do not allow certain file name
    Hello all, Don't think this has ever been asked before, but how do I restrict file save [Before_Save Event] if the name of the file being saved...
  • fixing problem autofilter
    hello i need help about my code when i search by code in textbox it doesn't show anything this is my data [ATTACH type="full"...
  • “Weight”
    Hi, i’ve got a long sheet filled with weights such as kg,g,L & ml. i can build a formula to convert kg into g and liter into ml. How ever, my...
  • How to capitalize everything before a certain character?
    In column A, I have some text: Hello good day.mp3 Hello good day.flac etc. I'd like to capitalize everything before the period. I don't need the...
Top