Solved

Convert Ph Numbers

Posted on 2014-04-01
2
151 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

717 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