+ Reply to Thread
Results 1 to 11 of 11

Problem in Integer Value

  1. #1
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Problem in Integer Value

    Hi All,

    I have some list of numbers which is generated by application while creating a Emp Id's and when i am trying to convert that value in Number/General format the last digit is replacing with zero.

    exactly i don't know why this happening but as per my understand that digit exceeding the integer limit and help is more appreciate.

    attached file will give u the clear picture.

    Thanks,
    Naveed.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Problem in Integer Value

    why do you want convert them ?
    If solved remember to mark Thread as solved

  3. #3
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Problem in Integer Value

    why because while generating the id's in each numbers in starting (space & single cote) is coming and when i am removing spaces and single cote the last digit(means 1 is replacing with 0).

    once you copy by pressing F2 and copy only number & paste in other cell and check it out u will come to know

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.85 (24051214))
    Posts
    8,833

    Re: Problem in Integer Value

    its because the cell is showing as text
    when you try to change to a number the most that can be used is 15 significant digits in a number, so with
    http://support.microsoft.com/kb/269370

    MS chose to limit display to 15
    digits to avoid questions when unrepresentable 16 digit numbers, such as
    2^53+1 = 9007199254740993
    get changed to different 16 digit numbers (9007199254740992) that are
    representable.

  5. #5
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Problem in Integer Value

    Hello Naveed Raza,

    When I open your workbook, I see all the digits. You do have some values entered as text and others as numbers. Perhaps this is causing the problem.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  6. #6
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Problem in Integer Value

    sir, any solution for the same is more appreciate

  7. #7
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.85 (24051214))
    Posts
    8,833

    Re: Problem in Integer Value

    no solution, if you are turning the text into a number, thats a limit in excel -

    otherwise you would need to split the text across two cells

    still not sure what you are trying to do, as its text and why convert to a number ?

    I notice that the last digit is a 1 and then a lot of zeros in between
    perhaps you could just extract the part with the numbers and use those and then recombine to make a new ID

  8. #8
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Problem in Integer Value

    I tried this only sir and using the function like (trim,clean,right) and its working perfectly if u kept the formula in cell but my manager does not want formula in cell.

    anyway thanks for this valuable clarification, this excel forum has very much talented masters. thank you once again !

  9. #9
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.85 (24051214))
    Posts
    8,833

    Re: Problem in Integer Value

    in which case you will needto use VBA , if you cant have a formula in the cell

    can you use VBA at all - is that not allowed at your company ...

    I dont know enough about VBA- very rusty now and not competent to post on a forum to help others

  10. #10
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Problem in Integer Value

    I am not well good in VBA , i am just good in VBA and i tried with that also but still that last digit getting replace.

    if u provide the code for the same then i appreciate sir.

  11. #11
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.85 (24051214))
    Posts
    8,833

    Re: Problem in Integer Value

    As i said I cant do VBA here
    and how have you split and cleaned the cells using formulas - thats what you would need to replicate in VBA - the 15 digits still apply in VBA

+ 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