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!
How can I take the 1 out of the phone numbers that have it? That way they are are consistently 10 digits.
Thanks!
Another way is you can check the length of the string like this.....
Assuming your phone number string is in A2, then try
Assuming your phone number string is in A2, then try
=IF(LEN(A2)>10,RIGHT(A2,10),A2)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
@Rob
Absolutely perfect. :)
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.
=IF(LEFT(A1, 1)="1", RIGHT(A1, 10), A1)