Reputation: 37
I am needing to create a formula that removes the leading 1 from a 11 digit phone number as shown below.
I would also like the formula to exclude any 10 numbers that doesn't have a leading 1.
I am trying to have my list all the same with just 10 digits.
Upvotes: 2
Views: 42459
Reputation: 152525
Use this simple formula:
=--Right(E2,10)
The Right() Function turns it into text so the --
turns it back to a number.
Upvotes: 2
Reputation:
Try,
=IFERROR(--TEXT(--RIGHT(E2, 10), "[>1999999999]0000000000;;;"), "")
Upvotes: 2
Reputation: 1645
Try this if you are sure the value are clean and no spaces and dash
=IF(LEN(A1)=11, RIGHT(A1,10),A1)
Upvotes: 5