+ Reply to Thread
Results 1 to 7 of 7

formatting issue / rookie player

  1. #1
    Registered User
    Join Date
    09-07-2008
    Location
    washington
    Posts
    2

    formatting issue / rookie player

    i am running excel 2003 and have limited knowledge of all it's functions thus seeking expert advice having exhausted my attempts to trouble shoot on my own.

    i have a database of leads i converted from notepad/text to excel, a feat in itself i'm proud to have completed.

    my problem:
    the data contains a string of phone numbers in it's own column in which i am seeking to convert from, e.g. (123) 456-7890 to read 1234567890.

    i have tried numerous times from the toolbar: format; cells; special; phone number; and custom without any success removing the characters noted above; parentheses and hyphen contained in the phone number.

    is there a simple solution?

    thank you for your help, scott

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Hi,

    Try this

    =MID(A1,2,3)&MID(A1,7,3)&MID(A1,11,4)
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Registered User
    Join Date
    09-07-2008
    Location
    washington
    Posts
    2
    thanks oldchippy,

    could you tell me please where to insert code?

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Hi,

    If your text is listed in column A, then you would put this in B1, then auto-fill the formula down the column, Then select the range in column B, copy and paste special > values, then delete column A

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    in case they are not in same format eg (123) 456-7890 (0123) 456-7890
    you can also use =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1," ",""),"(",""),")",""),"-","")

  6. #6
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Or with some code

    Press Alt + F11 > insert Module > paste in the below > select a cell in the column > press Alt + F8 > select run ChangeString

    Please Login or Register  to view this content.
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  7. #7
    Registered User
    Join Date
    05-26-2011
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: formatting issue / rookie player

    I'm having the same problem. I created a report from our database at work and the format is with parentheses and dashes. I tried both formulas listed and was out of luck. I thought maybe formatting under "custom" and putting something similar to [<=(999)]###-####; ########## would work.
    This is driving my nuts.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 11
    Last Post: 10-17-2012, 07:56 AM
  2. Complex formatting issue
    By SOS in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-29-2008, 06:36 PM
  3. Conditional Formatting Issue
    By Gavin Ling in forum Excel General
    Replies: 3
    Last Post: 05-12-2007, 10:13 AM
  4. need advice on formatting issue
    By needhelp1243 in forum Excel General
    Replies: 1
    Last Post: 01-31-2007, 12:02 AM
  5. conditional formatting issue
    By associates in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-22-2006, 03:45 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1