Link to home
Start Free TrialLog in
Avatar of cansevin
cansevin

asked on

Take 1 out of the phone number

I have a column of phone numbers that are 10 or 11 digits. Currently they are formatted as text. Some phone numbers have a 1 in the front, some do not.

How can I take the 1 out of the phone numbers that have it? That way they are are consistently 10 digits.

Thanks!
Avatar of Wayne Taylor (webtubbs)
Wayne Taylor (webtubbs)
Flag of Australia image

Try this formula...

  =IF(LEFT(A1, 1)="1", RIGHT(A1, 10), A1)
Another way is you can check the length of the string like this.....
Assuming your phone number string is in A2, then try
=IF(LEN(A2)>10,RIGHT(A2,10),A2)

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Rob Henson
Rob Henson
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
@Rob
Absolutely perfect. :)
Though Rob offered the shortest formula, all the proposed solutions will resolve the question, so point should be split between all the experts.