+ Reply to Thread
Results 1 to 13 of 13

How to put the number 0 in front of telephone numbers please?

  1. #1
    Registered User
    Join Date
    02-02-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    9

    How to put the number 0 in front of telephone numbers please?

    Hi

    I have my database but for some reason on this particular sheet it has left out the number 0 in from of each number

    So the list looks like this (These are examples)

    7000228478
    7017012740
    7017400845

    How can i get a 0 put on front of all the numbers in the list

    Thanks people

    :-)

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: How to put the number 0 in front of telephone numbers please?

    Assuming they're in cells A1:A3, put this in B1 and copy down: =0&A1

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Valued Forum Contributor Lemice's Avatar
    Join Date
    04-13-2013
    Location
    Somewhere.
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: How to put the number 0 in front of telephone numbers please?

    Hello,

    If you want to copy paste / type a phone number with at least one 0 in front of a number, you will have to format the entire column as "Text" (Which can be done through selecting the whole column, Ctrl-1 and select Text).

    If you want to convert existing number like in your example, assuming they are in column A starting from A1, you can use this formula
    =0&A1
    Paste it on B1 and drag it down
    (copy pasta from Ford)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools

    Regards,
    Lem

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to put the number 0 in front of telephone numbers please?

    format => last option => format as 00000000000 (11 zero's)
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  5. #5
    Registered User
    Join Date
    02-02-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: How to put the number 0 in front of telephone numbers please?

    Quote Originally Posted by Lemice View Post
    Hello,

    If you want to copy paste / type a phone number with at least one 0 in front of a number, you will have to format the entire column as "Text" (Which can be done through selecting the whole column, Ctrl-1 and select Text).

    If you want to convert existing number like in your example, assuming they are in column A starting from A1, you can use this formula
    =0&A1
    Paste it on B1 and drag it down

    Hi

    This seems to work for 1 number but i am not sure how to drag it down,

    Any ideas please

  6. #6
    Registered User
    Join Date
    05-12-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: How to put the number 0 in front of telephone numbers please?

    select the cells, press CTRL + 1, click Custom, in the box type 00000000000 (11 zeros- which is your 10 digit phone number plus the extra zero) then click OK.

  7. #7
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: How to put the number 0 in front of telephone numbers please?

    Hi mobilewebpage

    There is no need to turn it into a text value, such as "0&A1"
    As posts #4 & #6 format the cells as "00000000000" or if you want to separate the mobile code, format as "00000 000000" (without the quotes)
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

  8. #8
    Registered User
    Join Date
    02-02-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: How to put the number 0 in front of telephone numbers please?

    Quote Originally Posted by Marshy3300 View Post
    select the cells, press CTRL + 1, click Custom, in the box type 00000000000 (11 zeros- which is your 10 digit phone number plus the extra zero) then click OK.
    Fantastic that worked wonders but when i save the excel spread sheet it says it is not compatable as a .csv file

    I would like to save as a .csv file if possible?

    Thanks people
    Last edited by mobilewebpage; 05-13-2013 at 06:32 PM.

  9. #9
    Registered User
    Join Date
    02-02-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: How to put the number 0 in front of telephone numbers please?

    I am going to open a new thread people as i want to explain the issue more

  10. #10
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to put the number 0 in front of telephone numbers please?

    in that case you could use a ' before the 11 zero's.

    (in the box format => last option)

  11. #11
    Registered User
    Join Date
    02-02-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: How to put the number 0 in front of telephone numbers please?

    Quote Originally Posted by oeldere View Post
    in that case you could use a ' before the 11 zero's.

    (in the box format => last option)
    That works and makes them like this

    '07000228478
    '07017012740
    '07017400845
    '07043542543
    '07050383202

    I need to put the .csv into some software but i dont think it will work with the ' in front if the 0's

  12. #12
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to put the number 0 in front of telephone numbers please?

    Did you tried it?

  13. #13
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: How to put the number 0 in front of telephone numbers please?

    @mobilewebpage,

    no need for the 'apostrophe'.

    format your data with the "Custom" format suggested elsewhere.

    then, click on Save As.

    in the "File Name" field, enter the desired file name with quotes around it, followed by the CSV extension - such as, "book1.csv".

    now, click on Save button. the file should save without a whimper.

    the next item is VERY important - DO NOT attempt to open the file in Excel - once you open it in Excel, the formatting will GO AWAY.

    if you need to inspect the file, open it in Notepad or Wordpad instead.
    Last edited by icestationzbra; 05-13-2013 at 10:11 PM.
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

+ 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