+ Reply to Thread
Results 1 to 8 of 8

entering telephone numbers

  1. #1
    Registered User
    Join Date
    06-05-2008
    Posts
    6

    Smile entering telephone numbers

    Hi,

    I am inputting a long list of phone numbers and I want to delete the gaps inbetwen them in each cell- for example 796 789 789 to 796789789. I have seen that you can use the substitute or find and replace functions- have tried both- pretty sure I am not entering it correctly! Also if I can then delete the spaces can I then prefix the numbers with a country code rather than having to inout each one by one.

    Thanks!

    Sorry perhaps this was unclear- the list of telephone numbers I am copying in already has the spaces
    Last edited by bella18; 04-19-2010 at 10:57 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: entering telephone numbers

    If you want to get rid of spaces, why are entering them in the first place?

    Why not just enter as 796789789?

    Not sure I follow that part.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    06-05-2008
    Posts
    6

    entering telephone numbers

    Hi,

    I am copying a long list of phone numbers and I want to delete the gaps inbetwen them in each cell- for example 796 789 789 to 796789789. I have seen that you can use the substitute or find and replace functions- have tried both- pretty sure I am not entering it correctly! Also if I can then delete the spaces can I then prefix the numbers with a country code rather than having to inout each one by one.

    Thanks!

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: entering telephone numbers

    Say you have one of the numbers in A1, put this formula anywhere and reply with the result.

    =CODE(MID(A1,4,1))

  5. #5
    Registered User
    Join Date
    04-15-2010
    Location
    Greeley, PA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: entering telephone numbers

    Please Login or Register  to view this content.
    To add a country code of 001 (I also put a space after it, not sure exactly how you want it formatted).

    Please Login or Register  to view this content.
    Last edited by NBVC; 04-19-2010 at 11:12 AM. Reason: Delete quote of original post

  6. #6
    Registered User
    Join Date
    06-05-2008
    Posts
    6

    Re: entering telephone numbers

    Quote Originally Posted by NBVC View Post
    Say you have one of the numbers in A1, put this formula anywhere and reply with the result.

    =CODE(MID(A1,4,1))
    the result is 32

  7. #7
    Registered User
    Join Date
    06-05-2008
    Posts
    6

    Re: entering telephone numbers

    Quote Originally Posted by SpeedingLunatic View Post
    Please Login or Register  to view this content.
    To add a country code of 001 (I also put a space after it, not sure exactly how you want it formatted).

    Please Login or Register  to view this content.
    Ok thanks that worked for cell A1- how to I get it to work for the whole of a column- as I said not great with Excel-
    thank you

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: entering telephone numbers

    If the country code is the same for all, then

    ="01"&Substitute(A1,Char(32),"") or ="01"&Substitute(A1," ","") copied down... where 01 is the country code A1 contains first entry.

    If the country codes are not the same we will need to know how you would determine what country code applies.

    To copy down, enter the formula in first cell, then click, hold and drag down the little black square at bottom right corner of cell....
    Last edited by NBVC; 04-19-2010 at 11:37 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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