Remove Brackets from Telephone Numbers

ambra19

New Member
Joined
May 9, 2003
Messages
40
I have a column where the telephone numbers were entered with brackets and a dash
ie (902) 555-1234
The column is in Text format.
I need a macro that will strip away the brackets and dashes and leave the number only for the entire column (over 3500 rows).

ie (902) 555-1234 to 9025551234

Any help is greatly appreciated.

Thanks.
ambra19
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
assuming number in A1 this formula in A2 will return stripped number

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"(",""),")","")," ",""),"-","")

If you want VBA let us know.
 
Upvote 0
I am dealing with the same thing on a regular basis for list uploads and would love a macro to clean these lists.

Thanks!
 
Upvote 0
I am dealing with the same thing on a regular basis for list uploads and would love a macro to clean these lists.

How would I update this to also eliminate any lead "1","1 ","1-"

Thanks!
 
Upvote 0
You shouldn't need SUBSTITUTE after that, just take the right 10 characters:

=RIGHT(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"-",""),")",""),"(","")," ",""),10)
 
Upvote 0

Forum statistics

Threads
1,213,532
Messages
6,114,177
Members
448,554
Latest member
Gleisner2

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