Need to format telephone numbers into 10 digit number only.

tamwink

New Member
Joined
Dec 19, 2019
Messages
11
Office Version
  1. 365
Platform
  1. Windows
How do I remove the country codes, hyphens, and "+1" from a column of data?
All information appreciated.
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Hi & welcome to MrExcel
It would help if you could some representative data. ;)
Follow the XL2BB link in the quick reply window & you can use that to put copyable data in your post.
 
Upvote 0
17206292779,
1-678-416-8080,
1(334) 662-9740,
p:+117579209003
and I need them all to be 10 digit phone numbers.
 
Upvote 0
How about
Book1
AB
1OldNew
217206292779,7206292779
31-678-416-8080,6784168080
41(334) 662-9740,3346629740
5p:+1175792090037579209003
Mon
Cell Formulas
RangeFormula
B2:B5B2=RIGHT(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A2,",",""),"-",""),"(",""),")","")," ",""),10)
 
Upvote 0
My apology but I can't seem to make the XL2BB work for me.
I tried using that formula in the cells but nothing changed in my data.
Am I doing something else incorrectly?
I really do know how to operate in Excel. :(
 
Upvote 0
Is your data laid as shown in post#4?
 
Upvote 0
What does the formula return?
 
Upvote 0
When I insert the formula (=RIGHT(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A2,",",""),"-",""),"(",""),")","")," ",""),10)), it changes a few cells of numbers but not all of them. Still missing about 30,000 lines that need to be changed. Am I doing something incorrectly?
 
Upvote 0
Also, due to running this formula, now I can't manually edit the spreadsheet. Does this seem right to you?
 
Upvote 0

Forum statistics

Threads
1,223,671
Messages
6,173,725
Members
452,529
Latest member
jpaxonreyes

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