Solved

Take 1 out of the phone number

Posted on 2016-09-01
7
32 Views
Last Modified: 2016-09-29
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!
0
Comment
Question by:cansevin
  • 3
7 Comments
 
LVL 47

Expert Comment

by:Wayne Taylor (webtubbs)
ID: 41780895
Try this formula...

  =IF(LEFT(A1, 1)="1", RIGHT(A1, 10), A1)
0
 
LVL 28

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41781063
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

0
 
LVL 32

Accepted Solution

by:
Rob Henson earned 500 total points
ID: 41781171
Don't need the IF statement, just:

=RIGHT(A1,10)

will suffice.

If the value is 11 characters then the first will be dropped, if it is 10 characters then you get it all.

Thanks
Rob
1
 
LVL 28

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41781172
@Rob
Absolutely perfect. :)
0
 
LVL 28

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41821088
Though Rob offered the shortest formula, all the proposed solutions will resolve the question, so point should be split between all the experts.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now