Solved

Convert Ph Numbers

Posted on 2014-04-01
2
146 Views
Last Modified: 2014-04-01
Hello experts,

What's the best way to convert phone numbers, e.g. (513) 555-1212 to straight digits (see sample for addnl conversions)?  Keep it simple.

Note some phone numbers end with zeros.

Thanks,
Gary
Profit-Center-Master-List-EE-4-1.xlsx
0
Comment
Question by:garyrobbins
2 Comments
 
LVL 23

Accepted Solution

by:
NBVC earned 500 total points
ID: 39970351
A few nested SUBSTITUTE functions:

in B2:

=TRIM(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A2,"+",""),"(",""),")",""),"-","")," ",""),".",""))

Or if you want to do it in-situ,

Select Column, then CTRL+H  replace each character with nothing, one at a time.
0
 

Author Closing Comment

by:garyrobbins
ID: 39970484
NBVC,
thanks for the simple solution.
is-situ -- dah1

Gary - Cincinnati
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

776 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