+ Reply to Thread
Results 1 to 7 of 7

Mexcel-2010, 16 digit number's last digit changes to zero, format cell doesn't help

  1. #1
    Registered User
    Join Date
    02-03-2019
    Location
    India
    MS-Off Ver
    microsoft offcie professional plus 2010
    Posts
    8

    Mexcel-2010, 16 digit number's last digit changes to zero, format cell doesn't help

    Hi,

    I have to sane large number(16 digit number) in excel 2010. However, the last digit always changes to zero and second last digit also changes some time. I know that it must be due to limitation of saving numbers upto 15 digits and then rounding it of. As a workaround, i tried formatting the cell as text, but then it is shown in exponential format like : 4.9169E+15. The actual number is 4916895528499807, but it is saved as 4916895528499810. Here last two digits are changed. How to solve this issue as save the number 4916895528499807 as it is. I have to save such 5000 numbers, so manual work will not help..Please help.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Mexcel-2010, 16 digit number's last digit changes to zero, format cell doesn't help

    Are these credit card numbers or similar?
    Do you need to conduct any kind of calculation with them?
    Where are you importing them from and how?

    These are all questions we would need answered before we can provide a "non manual work" solution.

    BSB

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Mexcel-2010, 16 digit number's last digit changes to zero, format cell doesn't help

    For real numbers, excel only accepts 15 digits. After that, all digits are converted to 0's
    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
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    02-03-2019
    Location
    India
    MS-Off Ver
    microsoft offcie professional plus 2010
    Posts
    8

    Re: Mexcel-2010, 16 digit number's last digit changes to zero, format cell doesn't help

    Hi,
    these are the unique serial numbers (with first 12 digits as the unique website id) of some of the database records of our website hits. each connection (hit) to our website is recorded in database along with its ip. The number will keep growing and so worried as to how to save it as actual numbers? I am importing them from mysql database. Any workaround?
    Last edited by pansee517; 02-03-2019 at 05:28 AM.

  5. #5
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Mexcel-2010, 16 digit number's last digit changes to zero, format cell doesn't help

    You will need to format the range as text before importing and if it still shows up as 4.9169E+15 then you'll just need to make the column wide enough to hold 16 digits.

    BSB

  6. #6
    Registered User
    Join Date
    02-03-2019
    Location
    India
    MS-Off Ver
    microsoft offcie professional plus 2010
    Posts
    8

    Re: Mexcel-2010, 16 digit number's last digit changes to zero, format cell doesn't help

    thanks..it has helped.

  7. #7
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Mexcel-2010, 16 digit number's last digit changes to zero, format cell doesn't help

    Happy to help

    BSB

+ 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. Color a single digit in a mult-digit number cell
    By Phyllis in forum Excel General
    Replies: 8
    Last Post: 09-30-2022, 04:22 PM
  2. Replies: 17
    Last Post: 02-02-2016, 05:05 AM
  3. Convert 3 digit or 4 digit number to time format
    By dubcap01 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-04-2015, 04:30 AM
  4. [SOLVED] format cell: 8 digit and 12 digit.
    By choy96 in forum Excel General
    Replies: 5
    Last Post: 06-25-2015, 08:56 AM
  5. [SOLVED] LOTTERY FILTER#4, Find if 1 Digit Sum of 2 Digit or 3 Digit, Single Cell w/ dash
    By david gonzalez in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-08-2014, 12:57 AM
  6. [SOLVED] Set Cell To Display Number(s) Entered In Four-Digit Format
    By swordswinger710 in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 06-29-2012, 12:59 PM
  7. Replies: 2
    Last Post: 06-17-2010, 08:36 PM

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