+ Reply to Thread
Results 1 to 6 of 6

Converting text into number

  1. #1
    Registered User
    Join Date
    08-25-2009
    Location
    krakow, Poland
    MS-Off Ver
    Excel 2003
    Posts
    16

    Converting text into number

    Hello,
    I have a long number: 030809106601002028
    and I would like to keep it exactly as it is, as a number, without changing it into a text. If I put it as a number, excel sets it to: 30809106601002000

    Could someone please have a look at this?
    Thank you
    Last edited by Mula; 08-26-2009 at 06:54 AM.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Converting text into number

    Excel has a numeric precision of 15 decimal places. Not enough to accommodate your 30 quadrillion number. Consequently, using text-formatting is your only option.
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    08-25-2009
    Location
    krakow, Poland
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Converting text into number

    Thank you Ron. Can't I customize this number so that it accepts 18 digits?
    Last edited by Mula; 08-26-2009 at 07:19 AM.

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Converting text into number

    It's an Excel limit, not a setting.

    For more information, search Excel help for:
    Excel specifications and limits

  5. #5
    Forum Contributor
    Join Date
    08-27-2009
    Location
    South Africa
    MS-Off Ver
    Office 2010
    Posts
    217

    Re: Converting text into number

    Right Click on the cell, Format Cells, Number, Custom --> insert "0"# in Type.

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Converting text into number

    Sniper, I think that's missing the fundamental point, ie the issue is not to preserve leading zeroes rather it is the fact XL only stores to precision of 15 digits - ie 30809106601002028 becomes 30809106601002000

+ 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