How to unformat telephone numbers

JayBoston

New Member
Joined
Oct 22, 2002
Messages
33
First spreadsheet: I have a spreadsheet with thousands of phone numbers on it. The phone numbers are formatted with dashes: 555-555-1212 I need to remove the dashes so the phone numbers look like this: 5555551212

Second spreadsheet: I have a second spreadsheet with phone numbers formatted with a "1" in front of all the phone numbers: 15555551212 i want to remove the 1's to make the phone numbers look like this: 5555551212

How? I'm a newbie, so please dumb down your answer. I just need the cell code. Thanks.
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
for the first one simply use Find /Replace
Find -
Replace with leave the dialog box blank
for the 2nd one, try this and copy down as far as required



Excel 2007
AB
1155555512125555551212
Sheet1
Cell Formulas
RangeFormula
B1=MID(A1,2,99)
 
Upvote 0
Here you have 2 formulas for the 2 cases


Excel 2010
AB
1555-555-12125555551212
2
3155555512125555551212
Sheet2
Cell Formulas
RangeFormula
B1=SUBSTITUTE(A1,"-","")
B3=RIGHT(A3,LEN(A3)-1)
 
Upvote 0

Forum statistics

Threads
1,214,913
Messages
6,122,207
Members
449,074
Latest member
cancansova

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